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

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

perl-5.26 and friends

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