perl-libwww-perl-vl.spec 4.0 KB

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