diff --git a/README.md b/README.md index 9d794fb..f4cc7bd 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,8 @@ # perl-File-Which +File::Which is a portable implementation (in Perl) of 'which', and can +be used to get the absolute filename of an executable program +installed somewhere in your PATH, or just check for its existence. It +includes the command-line utility 'pwhich' which has the same function +as 'which'. + diff --git a/perl-File-Which.spec b/perl-File-Which.spec new file mode 100644 index 0000000..a50ac46 --- /dev/null +++ b/perl-File-Which.spec @@ -0,0 +1,57 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-File-Which +Version: 1.09 +Release: 1mamba +Summary: File::Which - Portable implementation of the `which' utility +Group: System/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: gil +URL: http://www.cpan.org +Source: http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/File-Which-%{version}.tar.gz +License: GPL, Artistic +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Test::Script) +BuildRequires: perl-devel +Requires: perl >= %perl_major_ver +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +File::Which is a portable implementation (in Perl) of 'which', and can +be used to get the absolute filename of an executable program +installed somewhere in your PATH, or just check for its existence. It +includes the command-line utility 'pwhich' which has the same function +as 'which'. + +%prep +%setup -q -n File-Which-%{version} + + +%build +perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor +%make +%make test + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall_perl + +find %{buildroot} -type f -name .packlist -exec rm -f {} ';' +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' +chmod -R u+w %{buildroot}/* + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_bindir}/pwhich +%{perl_vendorlib}/File/ +%{_mandir}/man1/*.1* +%{_mandir}/man3/*.3pm.gz +%doc Changes LICENSE README + +%changelog +* Fri Feb 18 2011 gil 1.09-1mamba +- package created by autospec