perl-SVG-Parser-vl.spec 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. Summary: SVG::Parser - XML Parser for SVG documents
  2. Name: perl-SVG-Parser
  3. Version: 1.01
  4. Release: 2%{?_dist_release}
  5. License: GNU/GPL
  6. URL: http://search.cpan.org/~peterw/SVG-Parser/
  7. Group: Development/Libraries
  8. Source0: SVG-Parser-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. BuildArch: noarch
  11. Requires: perl >= 5.8.6
  12. BuildRequires: perl >= 5.8.6
  13. Distribution: Vine Linux
  14. %description
  15. SVG::Parser is an XML parser for SVG Documents. It takes XML as input and produces an SVG object as its output.
  16. SVG::Parser supports both XML::SAX and XML::Parser (Expat) parsers, with SAX preferred by default. Only one of these needs to be installed for SVG::Parser to function.
  17. A list of preferred parsers may be specified in the import list - SVG::Parser will use the first parser that successfully loads. Some basic measures are taken to provide cross-compatability.
  18. For more details see: http://search.cpan.org/~peterw/SVG-Parser/
  19. %prep
  20. %setup -n SVG-Parser-%{version}
  21. %build
  22. perl Makefile.PL INSTALLDIRS=vendor
  23. make
  24. %check
  25. make test
  26. %install
  27. rm -rf $RPM_BUILD_ROOT
  28. make install DESTDIR=$RPM_BUILD_ROOT
  29. pushd $RPM_BUILD_ROOT%{_mandir}/man3
  30. gzip *
  31. popd
  32. find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \;
  33. find $RPM_BUILD_ROOT/usr -type f -print | \
  34. sed "s@^$RPM_BUILD_ROOT@@g" | \
  35. grep -v perllocal.pod | \
  36. grep -v "\.packlist" > SVG-Parser-%{version}-filelist
  37. if [ "$(cat SVG-Parser-%{version}-filelist)X" = "X" ] ; then
  38. echo "ERROR: EMPTY FILE LIST"
  39. exit -1
  40. fi
  41. %clean
  42. rm -rf $RPM_BUILD_ROOT
  43. %files -f SVG-Parser-%{version}-filelist
  44. %defattr(-,root,root)
  45. %changelog
  46. * Fri Jul 10 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.01-2
  47. - rebuild
  48. - applied new versioning policy
  49. * Sat Feb 10 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.01-1vl1
  50. - initial build for Vine Linux
  51. * Mon Feb 05 2007 Karsten Brockmann <arcam@ccux-linux.de> 1.01-1
  52. - Initial Release