perl-URI-vl.spec 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. %define perlver %(rpm -q --queryformat %%{version} perl)
  2. Summary: URI module for perl
  3. Name: perl-URI
  4. Version: 1.58
  5. Release: 1%{?_dist_release}
  6. License: distributable
  7. Group: Development/Libraries
  8. Source0: http://www.cpan.org/authors/id/GAAS/URI-%{version}.tar.gz
  9. Source1: filter-requires-perl-URI.sh
  10. Url: http://search.cpan.org/search?dist=URI
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildArch: noarch
  13. BuildRequires: perl >= %{perlver}
  14. Requires: perl >= %{perlver}
  15. #BuildRequires: perl(Business::ISBN)
  16. %if %{?_dist_release} == "vl5" || %{?_dist_release} == "vl4"
  17. %define __find_requires %{SOURCE1}
  18. %else
  19. %define __perl_requires %{SOURCE1}
  20. %endif
  21. %description
  22. URI module for perl
  23. %prep
  24. %setup -q -n URI-%{version}
  25. %build
  26. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
  27. make
  28. %install
  29. rm -rf $RPM_BUILD_ROOT
  30. mkdir -p $RPM_BUILD_ROOT%{_prefix}
  31. make DESTDIR=$RPM_BUILD_ROOT install
  32. find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \;
  33. find $RPM_BUILD_ROOT%{_prefix} -type f -print |
  34. sed "s@^$RPM_BUILD_ROOT@@g" |
  35. grep -v ^%{_mandir} |
  36. grep -v perllocal.pod |
  37. grep -v "\.packlist" > %{name}.files
  38. if [ "$(cat %{name}.files)X" = "X" ] ; then
  39. echo "ERROR: EMPTY FILE LIST"
  40. exit -1
  41. fi
  42. %check
  43. make test
  44. %clean
  45. rm -rf $RPM_BUILD_ROOT
  46. %files -f %{name}.files
  47. %defattr(-,root,root)
  48. %doc README Changes
  49. %dir %{perl_vendorlib}/URI
  50. %dir %{perl_vendorlib}/URI/file
  51. %dir %{perl_vendorlib}/URI/urn
  52. %{_mandir}/man3/*
  53. %changelog
  54. * Sat Mar 26 2011 IWAI, Masaharu <iwai@alib.jp> 1.58-1
  55. - new upstream release
  56. - using __perl_requires macro for VineSeed (vl6)
  57. - drop rfc2396.txt in %%files: upstream deleted
  58. * Thu Nov 05 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.40-1
  59. - new upstream release
  60. * Mon Apr 28 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.35-1vl5
  61. - rebuilt with perl-5.10.0
  62. - applied new versioning policy
  63. * Sat Feb 17 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.35-0vl2
  64. - s/Copyright/License/
  65. - changed Group to Development/Libraries
  66. - added Source1 for removing dependancy perl(Business::ISBN)
  67. * Sat Dec 4 2004 IWAI, Masaharu <iwai@alib.jp> 1.35-0vl1
  68. - new upstream release
  69. - build on perl-5.8.6-0vl1
  70. - define perlver macro
  71. - run 'make test'
  72. * Sat Dec 13 2003 Satoshi MACHINO <machino@vinelinux.org> 1.27-0vl2
  73. - built on perl-5.8.2
  74. * Thu Nov 06 2003 Satoshi MACHINO <machino@vinelinux.org> 1.27-0vl1
  75. - new upstream version
  76. - built on perl-5.8.1
  77. * Thu Apr 24 2003 IWAI Masaharu <iwai@alib.jp> 1.23-0vl3
  78. - add %%{perl_sitelib}/URI/urn directory
  79. * Sun Apr 20 2003 Satoshi MACHINO <machino@vinelinux.org> 1.23-0vl2
  80. - build on perl-5.8.0
  81. * Sat Feb 15 2003 IWAI Masaharu <iwai@alib.jp> 1.23-0vl1
  82. - update to 1.23
  83. * Sun Apr 14 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 1.18-0vl1
  84. - first build for Vine Linux