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