From 8d42b9ddca590fe24ff386852ecd89e117b7a074 Mon Sep 17 00:00:00 2001 From: Davide Madrisan Date: Sat, 6 Jan 2024 09:34:54 +0100 Subject: [PATCH] add build requirements [release 1.03-2mamba;Sat Nov 24 2012] --- README.md | 2 ++ perl-SVG-Parser.spec | 66 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 perl-SVG-Parser.spec diff --git a/README.md b/README.md index aed0a9a..691fa29 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # perl-SVG-Parser +SVG::Parser - XML Parser for SVG documents. + diff --git a/perl-SVG-Parser.spec b/perl-SVG-Parser.spec new file mode 100644 index 0000000..504f8b7 --- /dev/null +++ b/perl-SVG-Parser.spec @@ -0,0 +1,66 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-SVG-Parser +Version: 1.03 +Release: 2mamba +Summary: SVG::Parser - XML Parser for SVG documents +Group: System/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://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-devel +BuildRequires: perl-SVG +BuildRequires: perl-XML-Parser +BuildRequires: perl-XML-SAX +BuildRequires: perl-XML-Sax-Base +## AUTOBUILDREQ-END +Requires: perl >= %perl_major_ver +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%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 +* Sat Nov 24 2012 Davide Madrisan 1.03-2mamba +- add build requirements + +* Thu Apr 16 2009 Silvan Calarco 1.03-1mamba +- automatic update by autodist + +* Wed Nov 05 2008 Silvan Calarco 1.01-2mamba +- automatic rebuild by autodist + +* Mon Oct 01 2007 Silvan Calarco 1.01-1mamba +- package created by autospec