perl-SVG-Parser/perl-SVG-Parser.spec

69 lines
2.0 KiB
RPMSpec
Raw Normal View History

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-SVG-Parser
Version: 1.03
Release: 3mamba
Summary: SVG::Parser - XML Parser for SVG documents
Group: System/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.cpan.org/
Source: http://search.cpan.org/CPAN/authors/id/P/PE/PETERW/SVG-Parser-%{version}.tar.gz
License: Artistic, GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: perl-SVG
BuildRequires: perl-XML-Parser
BuildRequires: perl-XML-SAX
BuildRequires: perl-XML-Sax-Base
BuildRequires: perl-devel
## AUTOBUILDREQ-END
Requires: perl >= %perl_major_ver
%description
SVG::Parser - XML Parser for SVG documents.
%prep
%setup -q -n SVG-Parser-%{version}
%build
perl Build.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
./Build
./Build test
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
./Build pure_install --destdir %{buildroot}
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
* Fri Mar 29 2024 Automatic Build System <autodist@openmamba.org> 1.03-3mamba
- automatic rebuild by autodist
* Sat Nov 24 2012 Davide Madrisan <davide.madrisan@gmail.com> 1.03-2mamba
- add build requirements
* Thu Apr 16 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.03-1mamba
- automatic update by autodist
* Wed Nov 05 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.01-2mamba
- automatic rebuild by autodist
* Mon Oct 01 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 1.01-1mamba
- package created by autospec