diff --git a/README.md b/README.md index 2ed5c96..5119684 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # perl-XML-XPath +This module aims to comply exactly to the XPath. + diff --git a/perl-XML-XPath.spec b/perl-XML-XPath.spec new file mode 100644 index 0000000..fba373e --- /dev/null +++ b/perl-XML-XPath.spec @@ -0,0 +1,63 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-XML-XPath +Version: 1.13 +Release: 4mamba +Summary: XML::XPath - a set of modules for parsing and evaluating XPath +Group: Development/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.cpan.org +Source: http://www.cpan.org/authors/id/M/MS/MSERGEANT/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 +BuildRoot: %{_tmppath}/perl-root + +%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 +* Tue Nov 13 2012 Silvan Calarco 1.13-4mamba +- perl 5.16 mass rebuild + +* Thu Nov 06 2008 Silvan Calarco 1.13-3mamba +- automatic rebuild by autodist + +* Thu Nov 15 2007 Silvan Calarco 1.13-2mamba +- rebuilt + +* Tue Oct 26 2004 Alessandro Ramazzina 1.13-1qilnx +- package created by autospec