perl-Guard-vl.spec 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. Name: perl-Guard
  2. Version: 1.023
  3. Release: 1%{?_dist_release}
  4. Summary: Safe cleanup blocks
  5. License: GPL+ or Artistic
  6. Group: Development/Libraries
  7. URL: http://search.cpan.org/dist/Guard/
  8. Source0: http://www.cpan.org/authors/id/M/ML/MLEHMANN/Guard-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  10. BuildRequires: perl(ExtUtils::MakeMaker)
  11. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  12. %description
  13. This module implements so-called "guards". A guard is something
  14. (usually an object) that "guards" a resource, ensuring that it is
  15. cleaned up when expected.
  16. %prep
  17. %setup -q -n Guard-%{version}
  18. %build
  19. %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
  20. make %{?_smp_mflags}
  21. %install
  22. rm -rf %{buildroot}
  23. make pure_install PERL_INSTALL_ROOT=%{buildroot}
  24. find %{buildroot} -type f -name .packlist -exec rm -f {} \;
  25. find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \;
  26. find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
  27. %{_fixperms} %{buildroot}/*
  28. %check
  29. make test
  30. %clean
  31. rm -rf %{buildroot}
  32. %files
  33. %defattr(-,root,root,-)
  34. %doc Changes COPYING README
  35. %{perl_vendorarch}/auto/*
  36. %{perl_vendorarch}/Guard*
  37. %{_mandir}/man3/*
  38. %changelog
  39. * Thu Apr 16 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.023-1
  40. - new upstream release
  41. * Fri Jun 27 2014 IWAI, Masaharu <iwaim.sub@gmail.com> 1.021-2
  42. - build with Perl 5.16
  43. * Fri Mar 02 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.021-1
  44. - initial build for Vine Linux
  45. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.021-6
  46. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  47. * Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.021-5
  48. - Perl mass rebuild
  49. * Fri Dec 17 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.021-4
  50. - 661697 rebuild for fixing problems with vendorach/lib
  51. * Sun May 02 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.021-3
  52. - Mass rebuild with perl-5.12.0
  53. * Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 1.021-2
  54. - rebuild against perl 5.10.1
  55. * Sun Nov 08 2009 Nicolas Chuavet <kwizart@fedoraproject.org> - 1.021-1
  56. - Specfile autogenerated by cpanspec 1.78.