source: projects/specs/branches/6/p/perl-libwww-perl/perl-libwww-perl-vl.spec @ 3157

Revision 3157, 4.0 KB checked in by iwaim, 13 years ago (diff)

perl-libwww-perl-5.833-3

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