[12120] | 1 | %define rel 1 |
---|
[521] | 2 | |
---|
| 3 | Summary: A Perl interface to the World-Wide Web |
---|
| 4 | Name: perl-libwww-perl |
---|
[12120] | 5 | Version: 6.39 |
---|
[521] | 6 | Release: %{rel}%{?_dist_release} |
---|
| 7 | License: GPL or Artistic |
---|
| 8 | Group: Development/Libraries |
---|
| 9 | Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/LWP/libwww-perl-%{version}.tar.gz |
---|
[3157] | 10 | Source10: filter-depends-libwww-perl.sh |
---|
[3118] | 11 | |
---|
[521] | 12 | URL: http://search.cpan.org/dist/libwww-perl/ |
---|
| 13 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 14 | BuildArch: noarch |
---|
[12120] | 15 | BuildRequires: perl >= 2:5.26.0, perl-URI, perl-HTML-Parser perl-Compress-Zlib |
---|
| 16 | BuildRequires: perl-Encode-Locale, perl-Test-RequiresInternet, perl-Test-Needs |
---|
| 17 | Requires: perl >= 2:5.26.0, perl-URI, perl-HTML-Parser perl-Compress-Zlib |
---|
[521] | 18 | |
---|
[3157] | 19 | %if %{?_dist_release} == "vl5" || %{?_dist_release} == "vl4" |
---|
[521] | 20 | %define __find_requires %{SOURCE10} |
---|
[8683] | 21 | %else if %{?_dist_release} == "vl7" |
---|
| 22 | %define __perllib_requires %{SOURCE10} |
---|
[3157] | 23 | %else |
---|
| 24 | %define __perl_requires %{SOURCE10} |
---|
| 25 | %endif |
---|
[521] | 26 | |
---|
[3118] | 27 | Vendor: Project Vine |
---|
| 28 | Distribution: Vine Linux |
---|
| 29 | |
---|
[521] | 30 | %description |
---|
| 31 | The libwww-perl collection is a set of Perl modules which provides a |
---|
| 32 | simple and consistent application programming interface to the |
---|
| 33 | World-Wide Web. The main focus of the library is to provide classes |
---|
| 34 | and functions that allow you to write WWW clients. The library also |
---|
| 35 | contain modules that are of more general use and even classes that |
---|
| 36 | help you implement simple HTTP servers. |
---|
| 37 | |
---|
| 38 | %prep |
---|
| 39 | %setup -q -n libwww-perl-%{version} |
---|
| 40 | |
---|
| 41 | %build |
---|
| 42 | CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor << EOO |
---|
| 43 | y |
---|
| 44 | y |
---|
| 45 | y |
---|
| 46 | y |
---|
| 47 | y |
---|
| 48 | n |
---|
| 49 | n |
---|
| 50 | n |
---|
| 51 | EOO |
---|
| 52 | make |
---|
| 53 | |
---|
| 54 | %install |
---|
| 55 | rm -rf $RPM_BUILD_ROOT |
---|
| 56 | mkdir -p $RPM_BUILD_ROOT%{_prefix} |
---|
| 57 | make DESTDIR=$RPM_BUILD_ROOT install |
---|
| 58 | |
---|
| 59 | find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \; |
---|
| 60 | |
---|
| 61 | find $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 |
---|
| 66 | if [ "$(cat %{name}.files)X" = "X" ] ; then |
---|
| 67 | echo "ERROR: EMPTY FILE LIST" |
---|
| 68 | exit -1 |
---|
| 69 | fi |
---|
| 70 | |
---|
| 71 | %clean |
---|
| 72 | rm -rf $RPM_BUILD_ROOT |
---|
| 73 | |
---|
| 74 | %check |
---|
| 75 | make test |
---|
| 76 | |
---|
| 77 | %files -f %{name}.files |
---|
| 78 | %defattr(-,root,root) |
---|
[12120] | 79 | %license LICENSE |
---|
| 80 | %doc Changes |
---|
[521] | 81 | %dir %{perl_vendorlib}/LWP |
---|
| 82 | %dir %{perl_vendorlib}/LWP/Authen |
---|
| 83 | %dir %{perl_vendorlib}/LWP/Protocol |
---|
| 84 | %{_mandir}/man?/* |
---|
| 85 | |
---|
| 86 | %changelog |
---|
[12120] | 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 | |
---|
[8683] | 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 | |
---|
[3157] | 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 | |
---|
[3118] | 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 | |
---|
[521] | 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 | |
---|