source: projects/specs/branches/6/p/perl-XML-Parser/perl-XML-Parser-vl.spec @ 3217

Revision 3217, 3.0 KB checked in by iwaim, 13 years ago (diff)

perl-XML-Parser-2.40-1

Line 
1Summary: XML-Parser module for perl
2Name: perl-XML-Parser
3Version: 2.40
4Release: 1%{?_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* Wed Mar 30 2011 IWAI, Masaharu <iwai@alib.jp> 2.40-1
67- new upstream release
68- add Requires: perl(:MODULE_COMPAT_...)
69- fix date for 2.36-2 in changelog
70- add directory in files
71- add Vendor and Distribution tags
72
73* Sun Mar 27 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.36-2
74- rebuild with perl-5.12.3
75- drop %%check
76
77* Fri May 16 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.36-1vl5
78- new upstream release
79
80* Mon Apr 28 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.34-1vl5
81- rebuild with perl-5.10.0
82- installed modules into vendor_perl directory
83
84* Thu Feb 21 2008 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.34-0vl5
85- rebuild with expat-2.0.1
86
87* Fri Aug 18 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 2.34-0vl4
88- s/Copyright/License/
89- add BuildRequires: expat-devel
90
91* Mon Nov 29 2004 IWAI, Masaharu <iwai@alib.jp> 2.34-0vl3
92- build on perl-5.8.6-0vl1
93
94* Sat Dec 13 2003 Satoshi MACHINO <machino@vinelinux.org> 2.34-0vl2
95- built on perl-5.8.2
96
97* Thu Nov 06 2003 Satoshi MACHINO <machino@vinelinux.org> 2.34-0vl1
98- new upstream version
99- built on perl-5.8.1
100
101* Thu Apr 17 2003 IWAI Masaharu <iwai@alib.jp> 2.31-0vl2
102- rebuild with perl-5.8.0
103
104* Mon Apr 15 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 2.31-0vl1
105- first release for Vine Linux
106
Note: See TracBrowser for help on using the repository browser.