perl-SVG-Parser-vl.spec 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. Summary: SVG::Parser - XML Parser for SVG documents
  2. Name: perl-SVG-Parser
  3. Version: 1.03
  4. Release: 3%{?_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. BuildRequires: perl(XML::Parser) perl(XML::SAX)
  14. BuildRequires: perl(SVG) >= 2
  15. Vendor: Project Vine
  16. Distribution: Vine Linux
  17. %description
  18. SVG::Parser is an XML parser for SVG Documents. It takes XML as input and produces an SVG object as its output.
  19. 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.
  20. 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.
  21. For more details see: http://search.cpan.org/~peterw/SVG-Parser/
  22. %prep
  23. %setup -q -n SVG-Parser-%{version}
  24. %build
  25. perl Build.PL installdirs=vendor
  26. ./Build
  27. %check
  28. AUTHOR_TESTING=1 ./Build test
  29. %install
  30. rm -rf $RPM_BUILD_ROOT
  31. ./Build install destdir=$RPM_BUILD_ROOT
  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 man3 | \
  37. grep -v "\.packlist" > SVG-Parser-%{version}-filelist
  38. if [ "$(cat SVG-Parser-%{version}-filelist)X" = "X" ] ; then
  39. echo "ERROR: EMPTY FILE LIST"
  40. exit -1
  41. fi
  42. %clean
  43. rm -rf $RPM_BUILD_ROOT
  44. %files -f SVG-Parser-%{version}-filelist
  45. %defattr(-,root,root)
  46. %doc README CHANGES examples
  47. %{_mandir}/man3/*
  48. %dir %{perl_vendorlib}/SVG/Parser
  49. %dir %{perl_vendorlib}/SVG/Parser/SAX
  50. %changelog
  51. * Thu Jul 3 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.03-3
  52. - rebuilt with perl-5.16.3.
  53. * Wed Mar 30 2011 IWAI, Masaharu <iwai@alib.jp> 1.03-2
  54. - add directories in files
  55. * Wed Mar 30 2011 IWAI, Masaharu <iwai@alib.jp> 1.03-1
  56. - new upstream release
  57. - add BuildRequires: perl(XML::Parser), perl(XML::SAX), perl(SVG) >= 2
  58. - update build, install, check section: upstream use Build.PL
  59. - stop gzip in install section
  60. - add documents in doc
  61. - add Vendor tag
  62. * Fri Jul 10 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.01-2
  63. - rebuild
  64. - applied new versioning policy
  65. * Sat Feb 10 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.01-1vl1
  66. - initial build for Vine Linux
  67. * Mon Feb 05 2007 Karsten Brockmann <arcam@ccux-linux.de> 1.01-1
  68. - Initial Release