diff --git a/README.md b/README.md index 1ac64d5..4d81852 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # perl-XML-Simple +Easy API to read/write XML (esp config files). + diff --git a/perl-XML-Simple.spec b/perl-XML-Simple.spec new file mode 100644 index 0000000..fe7355f --- /dev/null +++ b/perl-XML-Simple.spec @@ -0,0 +1,67 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-XML-Simple +Version: 2.20 +Release: 2mamba +Summary: XML::Simple - Easy API to read/write XML (esp config files) +Group: Development/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +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 +* Sun Nov 11 2012 Silvan Calarco 2.20-2mamba +- perl 5.16 mass rebuild + +* Mon Jun 25 2012 Automatic Build System 2.20-1mamba +- automatic version update by autodist + +* Thu Nov 06 2008 Silvan Calarco 2.18-2mamba +- automatic rebuild by autodist + +* Thu Sep 20 2007 Aleph0 2.18-1mamba +- update to 2.18 + +* Sun Jul 18 2004 Silvan Calarco 2.12-1qilnx +- first build