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 | |
---|
12 | Requires: perl >= 5.8.6 |
---|
13 | BuildRequires: perl >= 5.8.6 |
---|
14 | |
---|
15 | Distribution: Vine Linux |
---|
16 | |
---|
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 | |
---|
23 | %prep |
---|
24 | %setup -n SVG-Parser-%{version} |
---|
25 | |
---|
26 | %build |
---|
27 | perl Makefile.PL INSTALLDIRS=vendor |
---|
28 | make |
---|
29 | |
---|
30 | %check |
---|
31 | make test |
---|
32 | |
---|
33 | %install |
---|
34 | rm -rf $RPM_BUILD_ROOT |
---|
35 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
36 | |
---|
37 | pushd $RPM_BUILD_ROOT%{_mandir}/man3 |
---|
38 | gzip * |
---|
39 | popd |
---|
40 | |
---|
41 | find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \; |
---|
42 | find $RPM_BUILD_ROOT/usr -type f -print | \ |
---|
43 | sed "s@^$RPM_BUILD_ROOT@@g" | \ |
---|
44 | grep -v perllocal.pod | \ |
---|
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 | |
---|
58 | %changelog |
---|
59 | * Fri Jul 10 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.01-2 |
---|
60 | - rebuild |
---|
61 | - applied new versioning policy |
---|
62 | |
---|
63 | * Sat Feb 10 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.01-1vl1 |
---|
64 | - initial build for Vine Linux |
---|
65 | |
---|
66 | * Mon Feb 05 2007 Karsten Brockmann <arcam@ccux-linux.de> 1.01-1 |
---|
67 | - Initial Release |
---|