source: projects/specs/trunk/p/perl-XML-Parser/perl-XML-Parser-vl.spec @ 8689

Revision 8689, 3.1 KB checked in by iwaim, 10 years ago (diff)

perl-XML-Parser 2.40-2

Line 
1Summary: XML-Parser module for perl
2Name: perl-XML-Parser
3Version: 2.40
4Release: 2%{?_dist_release}
5License: distributable
6Group: Development/Libraries
7Source0:  http://www.cpan.org/authors/id/C/CO/COOPERCL/XML-Parser-%{version}.tar.gz
8Url: http://search.cpan.org/search?dist=XML-Parser
9BuildRoot: %{_tmppath}/%{name}-%{version}-root
10BuildRequires: perl >= 5.8.6, libexpat >= 1.95.0, expat-devel
11Requires: perl >= 5.8.6
12Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
13
14Vendor: Project Vine
15Distribution: Vine Linux
16
17%description
18This is a Perl extension interface to James Clark's XML parser, expat.
19
20%prep
21%setup -q -n XML-Parser-%{version}
22
23%build
24CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
25make
26find samples -type f | xargs perl -pi -e "s|^#!(\s)?/usr/local/bin/perl|#!%{__perl}|g"
27
28%install
29rm -rf $RPM_BUILD_ROOT
30mkdir -p $RPM_BUILD_ROOT{%{_prefix},%{_mandir}/man3}
31make DESTDIR=$RPM_BUILD_ROOT install
32
33find $RPM_BUILD_ROOT -type f -a \( -name perllocal.pod -o -name .packlist \
34  -o \( -name '*.bs' -a -empty \) \) -exec rm -f {} ';'
35
36find $RPM_BUILD_ROOT%{_prefix} -type f -print |
37        sed "s@^$RPM_BUILD_ROOT@@g" |
38        grep -v ^%{_mandir}   |
39        grep -v perllocal.pod |
40        grep -v "\.packlist" > %{name}.files
41if [ "$(cat %{name}.files)X" = "X" ] ; then
42    echo "ERROR: EMPTY FILE LIST"
43    exit -1
44fi
45install -m 644 blib/man3/* %{buildroot}%{_mandir}/man3
46
47# %check
48# make test
49
50%clean
51rm -rf $RPM_BUILD_ROOT
52
53%files -f %{name}.files
54%defattr(-,root,root)
55%doc README Changes samples
56%dir %{perl_vendorarch}/auto/XML
57%dir %{perl_vendorarch}/auto/XML/Parser
58%dir %{perl_vendorarch}/auto/XML/Parser/Expat
59%dir %{perl_vendorarch}/XML
60%dir %{perl_vendorarch}/XML/Parser
61%dir %{perl_vendorarch}/XML/Parser/Encodings
62%dir %{perl_vendorarch}/XML/Parser/Style
63%{_mandir}/*/*
64
65%changelog
66* Mon Jun 30 2014 IWAI, Masaharu <iwaim.sub@gmail.com> 2.40-2
67- build with Perl 5.16
68
69* Wed Mar 30 2011 IWAI, Masaharu <iwai@alib.jp> 2.40-1
70- new upstream release
71- add Requires: perl(:MODULE_COMPAT_...)
72- fix date for 2.36-2 in changelog
73- add directory in files
74- add Vendor and Distribution tags
75
76* Sun Mar 27 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.36-2
77- rebuild with perl-5.12.3
78- drop %%check
79
80* Fri May 16 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.36-1vl5
81- new upstream release
82
83* Mon Apr 28 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.34-1vl5
84- rebuild with perl-5.10.0
85- installed modules into vendor_perl directory
86
87* Thu Feb 21 2008 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.34-0vl5
88- rebuild with expat-2.0.1
89
90* Fri Aug 18 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 2.34-0vl4
91- s/Copyright/License/
92- add BuildRequires: expat-devel
93
94* Mon Nov 29 2004 IWAI, Masaharu <iwai@alib.jp> 2.34-0vl3
95- build on perl-5.8.6-0vl1
96
97* Sat Dec 13 2003 Satoshi MACHINO <machino@vinelinux.org> 2.34-0vl2
98- built on perl-5.8.2
99
100* Thu Nov 06 2003 Satoshi MACHINO <machino@vinelinux.org> 2.34-0vl1
101- new upstream version
102- built on perl-5.8.1
103
104* Thu Apr 17 2003 IWAI Masaharu <iwai@alib.jp> 2.31-0vl2
105- rebuild with perl-5.8.0
106
107* Mon Apr 15 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 2.31-0vl1
108- first release for Vine Linux
109
Note: See TracBrowser for help on using the repository browser.