1 | Name: perl-File-Which
|
---|
2 | Version: 1.22
|
---|
3 | Release: 1%{?dist}
|
---|
4 | Summary: Portable implementation of the 'which' utility
|
---|
5 | Group: Development/Libraries
|
---|
6 | License: GPL+ or Artistic
|
---|
7 | URL: https://metacpan.org/release/File-Which
|
---|
8 | Source0: https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/File-Which-%{version}.tar.gz
|
---|
9 | BuildArch: noarch
|
---|
10 | #BuildRequires: perl-interpreter
|
---|
11 | BuildRequires: perl-generators
|
---|
12 | BuildRequires: perl(ExtUtils::MakeMaker)
|
---|
13 | BuildRequires: perl(strict)
|
---|
14 | # Run-time:
|
---|
15 | BuildRequires: perl(constant)
|
---|
16 | BuildRequires: perl(Exporter)
|
---|
17 | BuildRequires: perl(File::Spec) >= 0.60
|
---|
18 | BuildRequires: perl(warnings)
|
---|
19 | # Tests:
|
---|
20 | #BuildRequires: perl(Env)
|
---|
21 | #BuildRequires: perl(Config)
|
---|
22 | #BuildRequires: perl(Test::More) >= 0.80
|
---|
23 | #Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
---|
24 | #Requires: perl(File::Spec) >= 0.60
|
---|
25 |
|
---|
26 | # Remove under-specified dependencies
|
---|
27 | %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(File::Spec\\)$
|
---|
28 |
|
---|
29 | %description
|
---|
30 | File::Which is a portable implementation (in Perl) of 'which', and can
|
---|
31 | be used to get the absolute filename of an executable program
|
---|
32 | installed somewhere in your PATH, or just check for its existence.
|
---|
33 |
|
---|
34 | %prep
|
---|
35 | %setup -q -n File-Which-%{version}
|
---|
36 |
|
---|
37 | %build
|
---|
38 | perl Makefile.PL INSTALLDIRS=vendor
|
---|
39 | make %{?_smp_mflags}
|
---|
40 | make manifypods
|
---|
41 |
|
---|
42 | %install
|
---|
43 | make pure_install DESTDIR=%{buildroot}
|
---|
44 | find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
---|
45 | chmod -R u+w %{buildroot}
|
---|
46 |
|
---|
47 | %check
|
---|
48 | #make test
|
---|
49 |
|
---|
50 | %files
|
---|
51 | %doc Changes README
|
---|
52 | %{perl_vendorlib}/File/
|
---|
53 | %{_mandir}/man3/*Which.3*
|
---|
54 |
|
---|
55 | %changelog
|
---|
56 | * Sat Oct 27 2018 Elbert Pol <elbert.pol@gmail.com> 1.22-1
|
---|
57 | - First OS/2 rpm release
|
---|