perl-libwww-perl-vl.spec 4.2 KB

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