67 lines
2.1 KiB
RPMSpec
67 lines
2.1 KiB
RPMSpec
|
%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 <silvan.calarco@mambasoft.it>
|
||
|
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 <silvan.calarco@mambasoft.it> 0.08-5mamba
|
||
|
- perl 5.16 mass rebuild
|
||
|
|
||
|
* Wed Nov 05 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.08-4mamba
|
||
|
- automatic rebuild by autodist
|
||
|
|
||
|
* Tue Oct 14 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.08-3mamba
|
||
|
- rebuilt
|
||
|
|
||
|
* Tue Jul 25 2006 Stefano Cotta Ramusino <stefano.cotta@qilinux.it> 0.08-2qilnx
|
||
|
- specfile fixed and updated
|
||
|
|
||
|
* Tue Oct 26 2004 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> 0.08-1qilnx
|
||
|
- package created by autospec
|