source: projects/specs/branches/6/p/perl-SVG-Parser/perl-SVG-Parser-vl.spec @ 3214

Revision 3214, 2.5 KB checked in by iwaim, 13 years ago (diff)

perl-SVG-Parser-1.03-2

Line 
1Summary:        SVG::Parser - XML Parser for SVG documents
2Name:           perl-SVG-Parser
3Version:        1.03
4Release:        2%{?_dist_release}
5License:        GNU/GPL
6URL:            http://search.cpan.org/~peterw/SVG-Parser/
7Group:          Development/Libraries
8Source0:        SVG-Parser-%{version}.tar.gz
9BuildRoot:      %{_tmppath}/%{name}-%{version}-root
10BuildArch:      noarch
11
12Requires:       perl >= 5.8.6
13BuildRequires:  perl >= 5.8.6
14BuildRequires:  perl(XML::Parser) perl(XML::SAX)
15BuildRequires:  perl(SVG) >= 2
16
17Vendor:         Project Vine
18Distribution:   Vine Linux
19
20%description
21SVG::Parser is an XML parser for SVG Documents. It takes XML as input and produces an SVG object as its output.
22SVG::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.
23A 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.
24For more details see: http://search.cpan.org/~peterw/SVG-Parser/
25
26%prep
27%setup -q -n SVG-Parser-%{version}
28
29%build
30perl Build.PL installdirs=vendor
31./Build
32
33%check
34AUTHOR_TESTING=1 ./Build test
35
36%install
37rm -rf $RPM_BUILD_ROOT
38./Build install destdir=$RPM_BUILD_ROOT
39
40find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \;
41find $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
46if [ "$(cat SVG-Parser-%{version}-filelist)X" = "X" ] ; then
47    echo "ERROR: EMPTY FILE LIST"
48    exit -1
49fi
50
51%clean
52rm -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* Wed Mar 30 2011 IWAI, Masaharu <iwai@alib.jp> 1.03-2
64- add directories in files
65
66* Wed Mar 30 2011 IWAI, Masaharu <iwai@alib.jp> 1.03-1
67- new upstream release
68- add BuildRequires: perl(XML::Parser), perl(XML::SAX), perl(SVG) >= 2
69- update build, install, check section: upstream use Build.PL
70- stop gzip in install section
71- add documents in doc
72- add Vendor tag
73
74* Fri Jul 10 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.01-2
75- rebuild
76- applied new versioning policy
77
78* Sat Feb 10 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.01-1vl1
79- initial build for Vine Linux
80
81* Mon Feb 05 2007 Karsten Brockmann <arcam@ccux-linux.de> 1.01-1
82- Initial Release
Note: See TracBrowser for help on using the repository browser.