perl-libwww-perl-vl.spec 3.6 KB

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