167 lines
5.4 KiB
RPMSpec
167 lines
5.4 KiB
RPMSpec
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
|
|
|
Name: perl-XML-LibXML
|
|
Version: 2.0210
|
|
Release: 1mamba
|
|
Summary: XML::LibXML - Perl binding for libxml2
|
|
Group: System/Libraries/Perl
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: https://metacpan.org/dist/XML-LibXML/view/LibXML.pod
|
|
Source: https://cpan.metacpan.org/modules/by-module/XML/XML-LibXML-%{version}.tar.gz
|
|
License: Artistic, GPL
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: liblzma-devel
|
|
BuildRequires: libperl
|
|
BuildRequires: libxml2-devel
|
|
BuildRequires: libz-devel
|
|
BuildRequires: perl-Encode
|
|
BuildRequires: perl-Scalar-List-Utils
|
|
BuildRequires: perl-XML-NamespaceSupport
|
|
BuildRequires: perl-XML-SAX
|
|
BuildRequires: perl-XML-Sax-Base
|
|
BuildRequires: perl-devel
|
|
## AUTOBUILDREQ-END
|
|
BuildRequires: perl >= 2:5.36.0
|
|
BuildRequires: perl-Alien-Libxml2
|
|
Requires: perl >= %perl_major_ver
|
|
Provides: perl-XML-LibXML-Common
|
|
Obsoletes: perl-XML-LibXML-Common < 2.0207
|
|
|
|
%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
|
|
|
|
find %{buildroot} -name *.so -exec chmod u+w {} \;
|
|
|
|
%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
|
|
* Thu Jan 25 2024 Automatic Build System <autodist@openmamba.org> 2.0210-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Jul 15 2023 Automatic Build System <autodist@mambasoft.it> 2.0209-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Apr 15 2023 Sdk Build System <sdk@mambasoft.it> 2.0208-2mamba
|
|
- rebuilt with perl 5.36.0
|
|
|
|
* Tue Mar 14 2023 Automatic Build System <autodist@mambasoft.it> 2.0208-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Jun 19 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0207-1mamba
|
|
- update to 2.0207
|
|
|
|
* Wed Nov 15 2017 Automatic Build System <autodist@mambasoft.it> 2.0132-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Fri Nov 11 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0128-1mamba
|
|
- update to 2.0128
|
|
|
|
* Wed Nov 09 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0123-2mamba
|
|
- rebuilt with perl 5.24
|
|
|
|
* Mon Feb 01 2016 Automatic Build System <autodist@mambasoft.it> 2.0123-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Thu May 07 2015 Automatic Build System <autodist@mambasoft.it> 2.0121-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Wed Mar 04 2015 Automatic Build System <autodist@mambasoft.it> 2.0118-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Thu Nov 06 2014 Automatic Build System <autodist@mambasoft.it> 2.0117-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Sun May 25 2014 Automatic Build System <autodist@mambasoft.it> 2.0116-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Wed Dec 18 2013 Automatic Build System <autodist@mambasoft.it> 2.0108-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Tue Sep 10 2013 Automatic Build System <autodist@mambasoft.it> 2.0105-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Thu Aug 29 2013 Automatic Build System <autodist@mambasoft.it> 2.0103-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Thu Aug 15 2013 Automatic Build System <autodist@mambasoft.it> 2.0101-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Mon Jul 08 2013 Automatic Build System <autodist@mambasoft.it> 2.0019-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed May 22 2013 Automatic Build System <autodist@mambasoft.it> 2.0018-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Apr 13 2013 Automatic Build System <autodist@mambasoft.it> 2.0016-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Jan 10 2013 Automatic Build System <autodist@mambasoft.it> 2.0014-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sun Nov 18 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0012-1mamba
|
|
- update to 2.0012
|
|
|
|
* Fri Feb 05 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 1.70-1mamba
|
|
- update to 1.70
|
|
- obsolete perl-XML-LibXML-Common
|
|
|
|
* Mon Jan 05 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.69-1mamba
|
|
- update to 1.69
|
|
|
|
* Thu Nov 06 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.66-2mamba
|
|
- automatic rebuild by autodist
|
|
|
|
* Wed Jul 16 2008 gil <puntogil@libero.it> 1.66-1mamba
|
|
- update to 1.66
|
|
|
|
* Sun Jul 01 2007 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 1.63-1mamba
|
|
- package created by autospec
|