perl-File-Which-vl.spec 2.0 KB

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