perl-File-Which-vl.spec 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. Summary: Portable implementation of the `which' utility
  2. Name: perl-File-Which
  3. Version: 0.05
  4. Release: 1%{_dist_release}
  5. Group: Development/Libraries
  6. URL: http://search.cpan.org/~pereinar/File-Which/
  7. License: distributable
  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
  12. Requires: perl
  13. Vendor: Project Vine
  14. Distribution: Vine Linux
  15. %description
  16. File::Which is a portable implementation (in Perl) of `which', and can
  17. be used to get the absolute filename of an executable program
  18. installed somewhere in your PATH, or just check for its existence. It
  19. includes the command-line utility `pwhich' which has the same function
  20. as `which'.
  21. %prep
  22. %setup -q -n File-Which-%{version}
  23. %build
  24. perl Makefile.PL INSTALLDIRS=vendor
  25. make %{?_smp_mflags}
  26. %install
  27. rm -rf $RPM_BUILD_ROOT
  28. make install DESTDIR=$RPM_BUILD_ROOT
  29. find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
  30. find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
  31. #chmod -R u+w $RPM_BUILD_ROOT/*
  32. %check
  33. make test
  34. %clean
  35. rm -rf $RPM_BUILD_ROOT
  36. %files
  37. %defattr(-,root,root,-)
  38. %doc Changes README
  39. %{_bindir}/pwhich
  40. %dir %{perl_vendorlib}/File
  41. %{perl_vendorlib}/File/*
  42. %{_mandir}/man1/*
  43. %{_mandir}/man3/*
  44. %changelog
  45. * Thu May 1 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 0.05-1
  46. - rebuilt with perl-5.10.0.
  47. * Tue Dec 5 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.05-0vl1
  48. - First build for Vine Linux