perl-Spiffy-vl.spec 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. Name: perl-Spiffy
  2. Version: 0.30
  3. Release: 1%{?_dist_release}
  4. Summary: Framework for doing object oriented (OO) programming in Perl
  5. License: GPL+ or Artistic
  6. Group: Development/Libraries
  7. URL: http://search.cpan.org/dist/Spiffy/
  8. Source0: http://www.cpan.org/authors/id/I/IN/INGY/Spiffy-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  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 of perl(DB) (rpm < 4.9)
  16. %global provfilt /bin/sh -c "%{__perl_provides} | sed -e '/^perl(DB)$/d'"
  17. %define __perl_provides %{provfilt}
  18. %else
  19. # Equivalent filter for rpm 4.9 onwards
  20. %global __provides_exclude ^perl\\(DB\\)
  21. %endif
  22. %description
  23. "Spiffy" is a framework and methodology for doing object oriented (OO)
  24. programming in Perl. Spiffy combines the best parts of Exporter.pm,
  25. base.pm, mixin.pm and SUPER.pm into one magic foundation class. It attempts
  26. to fix all the nits and warts of traditional Perl OO, in a clean,
  27. straightforward and (perhaps someday) standard way.
  28. %prep
  29. %setup -q -n Spiffy-%{version}
  30. %build
  31. %{__perl} Makefile.PL INSTALLDIRS=vendor
  32. make %{?_smp_mflags}
  33. %install
  34. rm -rf %{buildroot}
  35. make pure_install PERL_INSTALL_ROOT=%{buildroot}
  36. find %{buildroot} -type f -name .packlist -exec rm -f {} \;
  37. find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
  38. %{_fixperms} %{buildroot}/*
  39. %check
  40. make test
  41. %clean
  42. rm -rf %{buildroot}
  43. %files
  44. %defattr(-,root,root,-)
  45. %doc Changes README
  46. %{perl_vendorlib}/Spiffy.pm
  47. %{_mandir}/man3/Spiffy.3pm*
  48. %changelog
  49. * Fri Mar 09 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.30-1
  50. - initial build for Vine Linux
  51. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.30-18
  52. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  53. * Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.30-17
  54. - Perl mass rebuild
  55. * Tue Apr 19 2011 Paul Howarth <paul@city-fan.org> - 0.30-16
  56. - Make the provides filter work with rpm 4.9 too
  57. * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.30-15
  58. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  59. * Wed Dec 22 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.30-14
  60. - Rebuild to fix problems with vendorarch/lib (#661697)
  61. * Thu May 06 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.30-13
  62. - Mass rebuild with perl-5.12.0
  63. * Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 0.30-12
  64. - rebuild against perl 5.10.1
  65. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.30-11
  66. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  67. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.30-10
  68. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  69. * Sat Feb 02 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.30-9
  70. - rebuild for new perl
  71. * Wed Jan 02 2008 Ralf Corsépius <rc040203@freenet.de> 0.30-8
  72. - Adjust License-tag.
  73. - BR: perl(Test::More) (BZ 419631).
  74. * Wed Apr 18 2007 Steven Pritchard <steve@kspei.com> 0.30-7
  75. - Use fixperms macro instead of our own chmod incantation.
  76. - BR ExtUtils::MakeMaker.
  77. * Mon Sep 04 2006 Steven Pritchard <steve@kspei.com> 0.30-6
  78. - Rework spec to look more like current cpanspec output.
  79. * Tue Feb 28 2006 Steven Pritchard <steve@kspei.com> 0.30-5
  80. - Improve filter.
  81. * Mon Feb 27 2006 Steven Pritchard <steve@kspei.com> 0.30-4
  82. - Drop dummy mixin.pm.
  83. * Mon Feb 27 2006 Steven Pritchard <steve@kspei.com> 0.30-3
  84. - Filter out Provides: perl(DB).
  85. * Mon Feb 27 2006 Steven Pritchard <steve@kspei.com> 0.30-2
  86. - Drop explicit Provides: mixin.
  87. - Add dummy mixin.pm.
  88. - Improve Summary.
  89. - Fix Source0.
  90. * Sat Feb 25 2006 Steven Pritchard <steve@kspei.com> 0.30-1
  91. - Update to 0.30.
  92. - Drop explicit perl BR.
  93. * Wed Dec 28 2005 Steven Pritchard <steve@kspei.com> 0.24-1
  94. - Specfile autogenerated.