2024-01-06 09:55:04 +01:00
|
|
|
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
|
|
|
|
|
|
|
Name: perl-XML-Simple
|
2024-01-06 09:55:04 +01:00
|
|
|
Version: 2.22
|
|
|
|
Release: 1mamba
|
2024-01-06 09:55:04 +01:00
|
|
|
Summary: XML::Simple - Easy API to read/write XML (esp config files)
|
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: http://www.cpan.org
|
|
|
|
Source: http://www.cpan.org/modules/by-module/XML/XML-Simple-%{version}.tar.gz
|
|
|
|
License: GPL
|
|
|
|
BuildRequires: perl-devel >= %perl_major_ver
|
|
|
|
Requires: perl >= %perl_major_ver
|
|
|
|
BuildRequires: perl-XML-Parser
|
|
|
|
BuildRequires: perl-XML-SAX
|
|
|
|
BuildRequires: perl-XML-NamespaceSupport
|
|
|
|
BuildRequires: perl-Tie-IxHash
|
|
|
|
BuildRoot: %{_tmppath}/perl-root
|
|
|
|
|
|
|
|
%description
|
|
|
|
Easy API to read/write XML (esp config files).
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n XML-Simple-%{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 09:55:04 +01:00
|
|
|
* Sat Jan 02 2016 Automatic Build System <autodist@mambasoft.it> 2.22-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-06 09:55:04 +01:00
|
|
|
* Sun Nov 11 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 2.20-2mamba
|
|
|
|
- perl 5.16 mass rebuild
|
|
|
|
|
|
|
|
* Mon Jun 25 2012 Automatic Build System <autodist@mambasoft.it> 2.20-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Thu Nov 06 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 2.18-2mamba
|
|
|
|
- automatic rebuild by autodist
|
|
|
|
|
|
|
|
* Thu Sep 20 2007 Aleph0 <aleph0@openmamba.org> 2.18-1mamba
|
|
|
|
- update to 2.18
|
|
|
|
|
|
|
|
* Sun Jul 18 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 2.12-1qilnx
|
|
|
|
- first build
|