[521] | 1 | Summary: Portable implementation of the `which' utility |
---|
| 2 | Name: perl-File-Which |
---|
[9070] | 3 | Version: 1.09 |
---|
| 4 | Release: 1%{_dist_release} |
---|
| 5 | License: GPL+ or Artistic |
---|
[521] | 6 | Group: Development/Libraries |
---|
| 7 | URL: http://search.cpan.org/~pereinar/File-Which/ |
---|
[9070] | 8 | |
---|
[521] | 9 | Source0: http://search.cpan.org/CPAN/authors/id/P/PE/PEREINAR/File-Which-%{version}.tar.gz |
---|
| 10 | BuildArch: noarch |
---|
| 11 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
[9070] | 12 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
| 13 | BuildRequires: perl(File::Spec) >= 0.60 |
---|
| 14 | BuildRequires: perl(Test::More) >= 0.80 |
---|
| 15 | BuildRequires: perl(Test::Script) >= 1.05 |
---|
| 16 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
[521] | 17 | |
---|
| 18 | Vendor: Project Vine |
---|
| 19 | Distribution: Vine Linux |
---|
| 20 | |
---|
| 21 | %description |
---|
| 22 | File::Which is a portable implementation (in Perl) of `which', and can |
---|
| 23 | be used to get the absolute filename of an executable program |
---|
| 24 | installed somewhere in your PATH, or just check for its existence. It |
---|
| 25 | includes the command-line utility `pwhich' which has the same function |
---|
| 26 | as `which'. |
---|
| 27 | |
---|
| 28 | %prep |
---|
| 29 | %setup -q -n File-Which-%{version} |
---|
| 30 | |
---|
| 31 | %build |
---|
| 32 | perl Makefile.PL INSTALLDIRS=vendor |
---|
| 33 | make %{?_smp_mflags} |
---|
| 34 | |
---|
| 35 | %install |
---|
| 36 | rm -rf $RPM_BUILD_ROOT |
---|
| 37 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
| 38 | find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' |
---|
[9070] | 39 | find $RPM_BUILD_ROOT -type f -name perllocal.pod -exec rm -f {} ';' |
---|
[521] | 40 | find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' |
---|
| 41 | #chmod -R u+w $RPM_BUILD_ROOT/* |
---|
| 42 | |
---|
| 43 | %check |
---|
| 44 | make test |
---|
| 45 | |
---|
| 46 | %clean |
---|
| 47 | rm -rf $RPM_BUILD_ROOT |
---|
| 48 | |
---|
| 49 | |
---|
| 50 | %files |
---|
| 51 | %defattr(-,root,root,-) |
---|
| 52 | %doc Changes README |
---|
| 53 | %{_bindir}/pwhich |
---|
| 54 | %dir %{perl_vendorlib}/File |
---|
| 55 | %{perl_vendorlib}/File/* |
---|
| 56 | %{_mandir}/man1/* |
---|
| 57 | %{_mandir}/man3/* |
---|
| 58 | |
---|
| 59 | |
---|
| 60 | %changelog |
---|
[9070] | 61 | * Sat Nov 8 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.09-1 |
---|
| 62 | - updated to 1.09 |
---|
| 63 | - built with perl 5.16.3 |
---|
| 64 | |
---|
[3736] | 65 | * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.05-2 |
---|
| 66 | - rebuild with perl-5.12.3 |
---|
| 67 | |
---|
[521] | 68 | * Thu May 1 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 0.05-1 |
---|
| 69 | - rebuilt with perl-5.10.0. |
---|
| 70 | |
---|
| 71 | * Tue Dec 5 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.05-0vl1 |
---|
| 72 | - First build for Vine Linux |
---|