perl-XML-XPath/perl-XML-XPath.spec

66 lines
1.9 KiB
RPMSpec

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-XML-XPath
Version: 1.44
Release: 1mamba
Summary: XML::XPath - a set of modules for parsing and evaluating XPath
Group: Development/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.cpan.org
Source: https://cpan.metacpan.org/modules/by-module/XML/XML-XPath-%{version}.tar.gz
License: GPL
Requires: perl >= %perl_major_ver
## AUTOBUILDREQ-BEGIN
BuildRequires: libperl
BuildRequires: perl-XML-Parser
BuildRequires: perl-devel
## AUTOBUILDREQ-END
%description
This module aims to comply exactly to the XPath.
%prep
%setup -q -n XML-XPath-%{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}
%files -f .packlist
%defattr(-,root,root)
%changelog
* Wed Feb 24 2021 Automatic Build System <autodist@mambasoft.it> 1.44-1mamba
- automatic version update by autodist
* Tue Nov 13 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.13-4mamba
- perl 5.16 mass rebuild
* Thu Nov 06 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.13-3mamba
- automatic rebuild by autodist
* Thu Nov 15 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 1.13-2mamba
- rebuilt
* Tue Oct 26 2004 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> 1.13-1qilnx
- package created by autospec