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