source: projects/specs/trunk/p/perl-libwww-perl/perl-libwww-perl-vl.spec @ 8683

Revision 8683, 4.2 KB checked in by iwaim, 10 years ago (diff)

perl-libwww-perl 5.833-4

Line 
1%define rel 4
2
3Summary: A Perl interface to the World-Wide Web
4Name: perl-libwww-perl
5Version: 5.833
6Release: %{rel}%{?_dist_release}
7License: GPL or Artistic
8Group: Development/Libraries
9Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/LWP/libwww-perl-%{version}.tar.gz
10Source10: filter-depends-libwww-perl.sh
11Patch100: lwp-download_CVE-2010-2253.patch
12Patch110: lwp-download_usage.patch
13
14URL: http://search.cpan.org/dist/libwww-perl/
15BuildRoot: %{_tmppath}/%{name}-%{version}-root
16BuildArch: noarch
17BuildRequires: perl >= 5.8.0, perl-URI, perl-HTML-Parser perl-Compress-Zlib
18Requires: perl >= 5.8.0, perl-URI, perl-HTML-Parser perl-Compress-Zlib
19
20%if %{?_dist_release} == "vl5" || %{?_dist_release} == "vl4"
21%define __find_requires %{SOURCE10}
22%else if %{?_dist_release} == "vl7"
23%define __perllib_requires %{SOURCE10}
24%else
25%define __perl_requires %{SOURCE10}
26%endif
27
28Vendor: Project Vine
29Distribution: Vine Linux
30
31%description
32The libwww-perl collection is a set of Perl modules which provides a
33simple and consistent application programming interface to the
34World-Wide Web.  The main focus of the library is to provide classes
35and functions that allow you to write WWW clients. The library also
36contain modules that are of more general use and even classes that
37help you implement simple HTTP servers.
38
39%prep
40%setup -q -n libwww-perl-%{version}
41%patch100 -p1 -b .CVE-2010-2253
42%patch110 -p0 -b .usage
43
44%build
45CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor << EOO
46y
47y
48y
49y
50y
51n
52n
53n
54EOO
55make
56
57%install
58rm -rf $RPM_BUILD_ROOT
59mkdir -p $RPM_BUILD_ROOT%{_prefix}
60make DESTDIR=$RPM_BUILD_ROOT install
61
62find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \;
63
64find $RPM_BUILD_ROOT%{_prefix} -type f -print |
65        sed "s@^$RPM_BUILD_ROOT@@g" |
66        grep -v ^%{_mandir} |
67        grep -v perllocal.pod |
68        grep -v "\.packlist" > %{name}.files
69if [ "$(cat %{name}.files)X" = "X" ] ; then
70    echo "ERROR: EMPTY FILE LIST"
71    exit -1
72fi
73
74%clean
75rm -rf $RPM_BUILD_ROOT
76
77%check
78make test
79
80%files -f %{name}.files
81%defattr(-,root,root)
82%doc README Changes
83%dir %{perl_vendorlib}/Bundle
84%dir %{perl_vendorlib}/File
85%dir %{perl_vendorlib}/HTML
86%dir %{perl_vendorlib}/HTTP
87%dir %{perl_vendorlib}/HTTP/Cookies
88%dir %{perl_vendorlib}/HTTP/Headers
89%dir %{perl_vendorlib}/HTTP/Request
90%dir %{perl_vendorlib}/LWP
91%dir %{perl_vendorlib}/LWP/Authen
92%dir %{perl_vendorlib}/LWP/Protocol
93%dir %{perl_vendorlib}/Net
94%dir %{perl_vendorlib}/Net/HTTP
95%dir %{perl_vendorlib}/WWW
96%dir %{perl_vendorlib}/WWW/RobotRules
97%{_mandir}/man?/*
98
99%changelog
100* Mon Jun 30 2014 IWAI, Masaharu <iwaim.sub@gmail.com> 5.833-4
101- build with Perl 5.16
102- use __perllib_requires for vl7
103
104* Sun Mar 27 2011 IWAI, Masaharu <iwai@alib.jp> 5.833-3
105- build with perl 5.12.3
106- rename Source10: filter-depends.sh to filter-depends-libwww-perl.sh
107- update filter-depends (Source10): using /usr/lib/rpm/perl.req
108- confine to defined __find_requires on vl4 and vl5
109- defined __perl_requires without vl4 and vl5
110
111* Sun Aug 15 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 5.833-2
112- add patch100,110 for fix CVE-2010-2253 (lwp-download)
113- add Vendor/Dist Tags
114
115* Thu Nov 05 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 5.833-1
116- new upstream release
117- delete perllocal.pod and .packlist at %%install section
118
119* Fri Apr 25 2008 IWAI, Masaharu <iwaim@cc.mbn.or.jp> 5.812-2
120- new upstream release
121
122* Sun Jul 22 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.806-0vl1
123- new upstream release
124- s/Copyright/License/
125- changed Group to Development/Libraries
126- installed modules to vendor_perl directory
127- added SOURCE10 (removed dependancy for Win32)
128
129* Sat Dec  4 2004 IWAI, Masaharu <iwai@alib.jp> 5.802-0vl1
130- new upstream release
131- add perl-Compress-Zlib in {Build,}Requires
132
133* Thu Apr 24 2003 IWAI Masaharu <iwai@alib.jp> 5.69-0vl2
134- add many direcotries in %%files
135
136* Wed Apr 16 2003 Satoshi MACHINO <machino@vinelinux.org> 5.69-0vl1
137- New upstream version
138        -- libwww-perl-5.69
139- build on perl-5.8.0
140- removed perl-MIME-Base64 and perl-libnet from BuildRequires and Requires
141        -- perl-5.8.0 included them
142
143* Sun Mar 02 2003 Satoshi MACHINO <machino@vinelinux.org> 5.65-0vl1
144- New upstream version
145
146* Sat Feb  9 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 5.63-0vl1
147- first build for Vine Linux
148
Note: See TracBrowser for help on using the repository browser.