perl-UNIVERSAL-require-vl.spec 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. Name: perl-UNIVERSAL-require
  2. Version: 0.13
  3. Release: 1%{?_dist_release}
  4. Summary: Require() modules from a variable
  5. Group: Development/Libraries
  6. License: GPL+ or Artistic
  7. URL: http://search.cpan.org/dist/UNIVERSAL-require/
  8. Source0: http://search.cpan.org/CPAN/authors/id/M/MS/MSCHWERN/UNIVERSAL-require-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  10. BuildArch: noarch
  11. BuildRequires: perl(Test::More)
  12. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  13. %if "%{_dist_release}" > "vl6"
  14. # Filter bogus provide for perl(UNIVERSAL) (rpm 4.9 onwards)
  15. %global __provides_exclude ^perl\\(UNIVERSAL\\)
  16. %else
  17. # Filter bogus provide for perl(UNIVERSAL) (prior to rpm 4.9)
  18. %global provfilt /bin/sh -c "%{__perl_provides} | sed -e '/^perl(UNIVERSAL)$/d'"
  19. %define __perl_provides %{provfilt}
  20. %endif
  21. Vendor: Project Vine
  22. Distribution: Vine Linux
  23. %description
  24. %{summary}.
  25. %prep
  26. %setup -q -n UNIVERSAL-require-%{version}
  27. %build
  28. %{__perl} Makefile.PL INSTALLDIRS=vendor
  29. make
  30. %install
  31. rm -rf %{buildroot}
  32. make pure_install PERL_INSTALL_ROOT=%{buildroot}
  33. find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
  34. find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
  35. chmod -R u+w %{buildroot}/*
  36. %check
  37. make test
  38. %clean
  39. rm -rf %{buildroot}
  40. %files
  41. %defattr(-,root,root,-)
  42. %doc Changes
  43. %{perl_vendorlib}/UNIVERSAL/
  44. %{_mandir}/man3/UNIVERSAL::require.3pm*
  45. %changelog
  46. * Sat Mar 10 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.13-1
  47. - initial build for Vine Linux
  48. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13-8
  49. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  50. * Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.13-7
  51. - Perl mass rebuild
  52. * Thu Apr 14 2011 Paul Howarth <paul@city-fan.org> - 0.13-6
  53. - Tweak provides filter to work with rpm >= 4.9 too
  54. * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13-5
  55. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  56. * Thu Dec 23 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.13-4
  57. - Rebuild to fix problems with vendorarch/lib (#661697)
  58. * Fri May 07 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.13-3
  59. - Mass rebuild with perl-5.12.0
  60. * Fri Dec 4 2009 Stepan Kasal <skasal@redhat.com> - 0.13-2
  61. - rebuild against perl 5.10.1
  62. * Wed Oct 7 2009 Marcela Mašláňová <mmaslano@redhat.com> - 0.13-1
  63. - update to new upstream release
  64. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-6
  65. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  66. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-5
  67. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  68. * Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.11-4
  69. - Rebuild for perl 5.10 (again)
  70. * Sun Jan 20 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.11-3
  71. - rebuild for new perl
  72. * Sun Aug 26 2007 Tom "spot" Callaway <tcallawa@redhat.com> 0.11-2
  73. - license tag fix
  74. * Wed Jan 17 2007 Tom "spot" Callaway <tcallawa@redhat.com> 0.11-1
  75. - bump to 0.11
  76. * Mon Sep 11 2006 Tom "spot" Callaway <tcallawa@redhat.com> 0.10-2
  77. - get rid of false provide
  78. * Mon Sep 4 2006 Tom "spot" Callaway <tcallawa@redhat.com> 0.10-1
  79. - initial package for Fedora