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

Revision 12120, 3.2 KB checked in by tomop, 5 years ago (diff)

perl-5.26 and friends

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