package created by autospec [release 1.09-1mamba;Fri Feb 18 2011]
This commit is contained in:
parent
5ae539a3cb
commit
c4e85ddf17
@ -1,2 +1,8 @@
|
|||||||
# perl-File-Which
|
# 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'.
|
||||||
|
|
||||||
|
57
perl-File-Which.spec
Normal file
57
perl-File-Which.spec
Normal file
@ -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 <puntogil@libero.it>
|
||||||
|
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 <puntogil@libero.it> 1.09-1mamba
|
||||||
|
- package created by autospec
|
Loading…
Reference in New Issue
Block a user