diff --git a/README.md b/README.md index e30d4a6..1780081 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # perl-libxml +libxml-perl is a collection of Perl modules, scripts, and documents for working with XML in Perl. +libxml-perl software works in combination with XML::Parser, PerlSAX, XML::DOM, XML::Grove, and others. + diff --git a/perl-libxml.spec b/perl-libxml.spec new file mode 100644 index 0000000..b5fbb28 --- /dev/null +++ b/perl-libxml.spec @@ -0,0 +1,66 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-libxml +Version: 0.08 +Release: 5mamba +Summary: libxml-perl - A collection of Perl modules, scripts, and documents for working with XML in Perl +Group: System/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.cpan.org +Source: http://search.cpan.org/CPAN/authors/id/K/KM/KMACLEOD/libxml-perl-%{version}.tar.gz +License: Artistic, GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: perl-devel +BuildRequires: perl-XML-Parser +## AUTOBUILDREQ-END +Requires: perl >= %perl_major_ver +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +libxml-perl is a collection of Perl modules, scripts, and documents for working with XML in Perl. +libxml-perl software works in combination with XML::Parser, PerlSAX, XML::DOM, XML::Grove, and others. + +%prep +%setup -q -n libxml-perl-%{version} + +%build +perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor +%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 +* Tue Nov 13 2012 Silvan Calarco 0.08-5mamba +- perl 5.16 mass rebuild + +* Wed Nov 05 2008 Silvan Calarco 0.08-4mamba +- automatic rebuild by autodist + +* Tue Oct 14 2008 Silvan Calarco 0.08-3mamba +- rebuilt + +* Tue Jul 25 2006 Stefano Cotta Ramusino 0.08-2qilnx +- specfile fixed and updated + +* Tue Oct 26 2004 Alessandro Ramazzina 0.08-1qilnx +- package created by autospec