perl-Guard-vl.spec 2.5 KB

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