perl-File-Which/perl-File-Which.spec

63 lines
1.9 KiB
RPMSpec

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-File-Which
Version: 1.27
Release: 1mamba
Summary: File::Which - Portable implementation of the which utility
Group: System/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.cpan.org
Source: https://cpan.metacpan.org/modules/by-module/File/File-Which-%{version}.tar.gz
License: GPL, Artistic
## AUTOBUILDREQ-BEGIN
BuildRequires: libperl
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::Script)
Requires: perl >= %perl_major_ver
%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)
%{perl_vendorlib}/File/
%{_mandir}/man3/*.3pm*
%doc LICENSE
%changelog
* Sun May 09 2021 Automatic Build System <autodist@mambasoft.it> 1.27-1mamba
- automatic version update by autodist
* Sat Mar 20 2021 Automatic Build System <autodist@mambasoft.it> 1.24-1mamba
- automatic version update by autodist
* Tue Dec 08 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.23-1mamba
- update to 1.23
* Fri Feb 18 2011 gil <puntogil@libero.it> 1.09-1mamba
- package created by autospec