perl-URI-vl.spec 2.5 KB

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