perl-libwww-perl-vl.spec 3.9 KB

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