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

Revision 3118, 3.6 KB checked in by iwaim, 13 years ago (diff)

perl-libwww-perl 5.833-2

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