diff --git a/README.md b/README.md index 62807b7..f83f1b7 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ # perl-XML-LibXML +This module is an interface to the gnome libxml2 DOM and SAX parser and the DOM tree. +It also provides an XML::XPath-like findnodes() interface, providing access to the XPath API in libxml2. +The module is split into several packages which are not described in this section. + diff --git a/perl-XML-LibXML.spec b/perl-XML-LibXML.spec new file mode 100644 index 0000000..253ee4a --- /dev/null +++ b/perl-XML-LibXML.spec @@ -0,0 +1,120 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-XML-LibXML +Version: 2.0108 +Release: 1mamba +Summary: XML::LibXML - Perl binding for libxml2 +Group: System/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: Stefano Cotta Ramusino +URL: http://search.cpan.org/dist/XML-LibXML +Source: http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/XML-LibXML-%{version}.tar.gz +License: Artistic, GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libxml2-devel +BuildRequires: libz-devel +BuildRequires: perl-devel +BuildRequires: perl-XML-NamespaceSupport +BuildRequires: perl-XML-SAX +BuildRequires: perl-XML-Sax-Base +## AUTOBUILDREQ-END +Requires: perl >= %perl_major_ver +Provides: perl-XML-LibXML-Common +Obsoletes: perl-XML-LibXML-Common +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +This module is an interface to the gnome libxml2 DOM and SAX parser and the DOM tree. +It also provides an XML::XPath-like findnodes() interface, providing access to the XPath API in libxml2. +The module is split into several packages which are not described in this section. + +%prep +%setup -q -n XML-LibXML-%{version} + +%build +export SKIP_SAX_INSTALL=1 +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 + +%post +if [ $1 -eq 1 ] ; then + for parser in XML::LibXML::SAX::Parser XML::LibXML::SAX ; do + perl -MXML::SAX -e "XML::SAX->add_parser(q($parser))->save_parsers()" 2>/dev/null || : + done +fi +: + +%preun +if [ $1 -eq 0 ] ; then + for parser in XML::LibXML::SAX::Parser XML::LibXML::SAX ; do + perl -MXML::SAX -e "XML::SAX->remove_parser(q($parser))->save_parsers()" 2>/dev/null || : + done +fi +: + +%files -f .packlist +%defattr(-,root,root) + +%changelog +* Wed Dec 18 2013 Automatic Build System 2.0108-1mamba +- automatic update by autodist + +* Tue Sep 10 2013 Automatic Build System 2.0105-1mamba +- automatic update by autodist + +* Thu Aug 29 2013 Automatic Build System 2.0103-1mamba +- automatic update by autodist + +* Thu Aug 15 2013 Automatic Build System 2.0101-1mamba +- automatic update by autodist + +* Mon Jul 08 2013 Automatic Build System 2.0019-1mamba +- automatic version update by autodist + +* Wed May 22 2013 Automatic Build System 2.0018-1mamba +- automatic version update by autodist + +* Sat Apr 13 2013 Automatic Build System 2.0016-1mamba +- automatic version update by autodist + +* Thu Jan 10 2013 Automatic Build System 2.0014-1mamba +- automatic version update by autodist + +* Sun Nov 18 2012 Silvan Calarco 2.0012-1mamba +- update to 2.0012 + +* Fri Feb 05 2010 Silvan Calarco 1.70-1mamba +- update to 1.70 +- obsolete perl-XML-LibXML-Common + +* Mon Jan 05 2009 Silvan Calarco 1.69-1mamba +- update to 1.69 + +* Thu Nov 06 2008 Silvan Calarco 1.66-2mamba +- automatic rebuild by autodist + +* Wed Jul 16 2008 gil 1.66-1mamba +- update to 1.66 + +* Sun Jul 01 2007 Stefano Cotta Ramusino 1.63-1mamba +- package created by autospec