perl-Config-File/perl-Config-File.spec

71 lines
2.1 KiB
RPMSpec
Raw Normal View History

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-Config-File
Version: 1.54
Release: 1mamba
Summary: Config::File - Parse a simple configuration file
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/Config/Config-File-%{version}.tar.gz
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: libperl
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRequires: perl-devel >= %{perl_major_ver}
Requires: perl >= %{perl_major_ver}
%description
Config::File parses a simple configuration file and stores its values in an anonymous hash reference.
%prep
%setup -q -n Config-File-%{version}
%build
%{__perl} Build.PL installdirs=vendor
./Build
./Build test
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
./Build install destdir=%{buildroot}
packlist=`find %{buildroot} -name .packlist`
[ -z "$packlist" ] && exit 1 || cat $packlist | \
sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \
sort -u > .packlist && rm $packlist
strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'`
for dir in `find %{buildroot} -type d | grep $strid`; do
echo "%dir ${dir#%buildroot}" >> .packlist
done
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
rm -f .packlist
%files -f .packlist
%defattr(-,root,root)
%changelog
* Sun May 16 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.54-1mamba
- update to 1.54
* Wed Jan 02 2019 Automatic Build System <autodist@mambasoft.it> 1.51-1mamba
- automatic update by autodist
* Tue Nov 13 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.50-2mamba
- perl 5.16 mass rebuild
* Mon Mar 02 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.50-1mamba
- automatic update by autodist
* Tue Nov 04 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4-2mamba
- automatic rebuild by autodist
* Thu Jul 05 2007 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 1.4-1mamba
- package created by autospec