perl-libwww-perl-vl.spec 3.3 KB

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