perl-UNIVERSAL-require-vl.spec 3.5 KB

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