perl-UNIVERSAL-can-vl.spec 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. %define pkgname UNIVERSAL-can
  2. Name: perl-%{pkgname}
  3. Version: 1.20140328
  4. Release: 1%{?_dist_release}
  5. Summary: Hack around people calling UNIVERSAL::can() as a function
  6. Group: Development/Libraries
  7. License: Artistic or GPL+
  8. URL: http://search.cpan.org/dist/UNIVERSAL-can/
  9. Source0: http://www.cpan.org/authors/id/C/CH/CHROMATIC/UNIVERSAL-can-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildArch: noarch
  12. BuildRequires: perl(Module::Build)
  13. BuildRequires: perl(Test::Simple) >= 0.60
  14. BuildRequires: perl(Test::Pod) >= 1.14
  15. BuildRequires: perl(Test::Pod::Coverage) >= 1.04
  16. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  17. Vendor: Project Vine
  18. Distribution: Vine Linux
  19. Packager: shaolin
  20. %description
  21. The UNIVERSAL class provides a few default methods so that all objects
  22. can use them. Object orientation allows programmers to override these
  23. methods in subclasses to provide more specific and appropriate behavior.
  24. Some authors call methods in the UNIVERSAL class on potential invocants
  25. as functions, bypassing any possible overriding. This is wrong and you
  26. should not do it. Unfortunately, not everyone heeds this warning and
  27. their bad code can break your good code.
  28. %prep
  29. %setup -q -n UNIVERSAL-can-%{version}
  30. %build
  31. %{__perl} Makefile.PL INSTALLDIRS=vendor
  32. make %{?_smp_mflags}
  33. %install
  34. rm -rf %{buildroot}
  35. make pure_install DESTDIR=%{buildroot}
  36. find %{buildroot} -type f -name .packlist -exec rm -f {} \;
  37. find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
  38. chmod -R u+w %{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}/UNIVERSAL/
  47. %{_mandir}/man3/*.3*
  48. %changelog
  49. * Sat Oct 11 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 1.20140328-1
  50. - updated to 1.20140328
  51. - build with perl 5.16.3
  52. * Thu Mar 02 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.15-7
  53. - rebuild
  54. * Mon Feb 20 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.15-6
  55. - initial build for Vine Linux
  56. * Mon Jun 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.15-6
  57. - Perl mass rebuild
  58. * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.15-5
  59. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  60. * Thu Dec 23 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.15-4
  61. - 661697 rebuild for fixing problems with vendorach/lib
  62. * Fri May 07 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.15-3
  63. - Mass rebuild with perl-5.12.0
  64. * Fri Dec 4 2009 Stepan Kasal <skasal@redhat.com> - 1.15-2
  65. - rebuild against perl 5.10.1
  66. * Wed Oct 7 2009 Marcela Mašláňová <mmaslano@redhat.com> - 1.15-1
  67. - update to new upstream release
  68. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12-4
  69. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  70. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12-3
  71. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  72. * Wed Mar 5 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.12-2
  73. - rebuild for new perl
  74. * Wed Apr 5 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.12-1
  75. - Update to 1.12.
  76. * Fri Feb 10 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.11-1
  77. - Update to 1.11.
  78. - No longer build requires perl(Test::Exception).
  79. * Thu Feb 9 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.03-2
  80. - Missing build requirement: perl(Test::Exception).
  81. * Wed Feb 8 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.03-1
  82. - Update to 1.03.
  83. * Tue Dec 27 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.01-1
  84. - First build.