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

Revision 3153, 2.6 KB checked in by Takemikaduchi, 13 years ago (diff)

freeglut: add BR and Patch, others: rebuild with perl-5.12.3

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