2024-01-06 08:49:05 +01:00
|
|
|
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
|
|
|
|
|
|
|
Name: perl-Data-OptList
|
2024-01-06 08:49:05 +01:00
|
|
|
Version: 0.113
|
2024-01-06 08:49:05 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: Data::OptList - parse and validate simple name/value option pairs
|
|
|
|
Group: System/Libraries/Perl
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Automatic Build System <autodist@mambasoft.it>
|
2024-01-06 08:49:05 +01:00
|
|
|
URL: https://www.cpan.org/
|
|
|
|
Source: https://cpan.metacpan.org/modules/by-module/Data/Data-OptList-%{version}.tar.gz
|
2024-01-06 08:49:05 +01:00
|
|
|
License: GPL, Artistic
|
|
|
|
Requires: perl >= %perl_major_ver
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
2024-01-06 08:49:05 +01:00
|
|
|
BuildRequires: libperl
|
2024-01-06 08:49:05 +01:00
|
|
|
BuildRequires: perl-Params-Util
|
|
|
|
BuildRequires: perl-Sub-Install
|
2024-01-06 08:49:05 +01:00
|
|
|
BuildRequires: perl-devel
|
2024-01-06 08:49:05 +01:00
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
%description
|
|
|
|
Hashes are great for storing named data, but if you want more than one entry for a name, you have to use a list of pairs.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
|
|
|
%setup -q -n Data-OptList-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
|
|
|
|
%make
|
|
|
|
%make test
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%makeinstall_perl
|
|
|
|
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
|
2024-01-06 08:49:05 +01:00
|
|
|
* Sun Jan 01 2023 Automatic Build System <autodist@mambasoft.it> 0.113-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 08:49:05 +01:00
|
|
|
* Sat Jun 26 2021 Automatic Build System <autodist@mambasoft.it> 0.112-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 08:49:05 +01:00
|
|
|
* Tue Aug 02 2016 Automatic Build System <autodist@mambasoft.it> 0.110-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-06 08:49:05 +01:00
|
|
|
* Sat Dec 21 2013 Automatic Build System <autodist@mambasoft.it> 0.109-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Wed Jul 10 2013 Automatic Build System <autodist@mambasoft.it> 0.108-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Mon Nov 12 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.107-2mamba
|
|
|
|
- perl 5.16 mass rebuild
|
|
|
|
|
|
|
|
* Sun May 08 2011 Automatic Build System <autodist@mambasoft.it> 0.107-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Sat Apr 17 2010 Automatic Build System <autodist@mambasoft.it> 0.106-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Sat Jan 23 2010 Automatic Build System <autodist@mambasoft.it> 0.105-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Thu Feb 05 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 0.104-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Tue Nov 04 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.103-2mamba
|
|
|
|
- automatic rebuild by autodist
|
|
|
|
|
|
|
|
* Mon Oct 20 2008 gil <puntogil@libero.it> 0.103-1mamba
|
|
|
|
- package created by autospec
|