perl-Guard-vl.spec 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. Name: perl-Guard
  2. Version: 1.023
  3. Release: 2%{?_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. BuildRequires: libxcrypt-devel
  12. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  13. Vendor: Project Vine
  14. Distribution: Vine Linux
  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. %prep
  20. %setup -q -n Guard-%{version}
  21. %build
  22. %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
  23. make %{?_smp_mflags}
  24. %install
  25. rm -rf %{buildroot}
  26. make pure_install PERL_INSTALL_ROOT=%{buildroot}
  27. find %{buildroot} -type f -name .packlist -exec rm -f {} \;
  28. find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \;
  29. find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
  30. %{_fixperms} %{buildroot}/*
  31. %check
  32. make test
  33. %clean
  34. rm -rf %{buildroot}
  35. %files
  36. %defattr(-,root,root,-)
  37. %license COPYING
  38. %doc Changes README
  39. %{perl_vendorarch}/auto/*
  40. %{perl_vendorarch}/Guard*
  41. %{_mandir}/man3/*
  42. %changelog
  43. * Thu May 16 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.023-2
  44. - rebuilt with perl-5.26.
  45. - added BR:libxcrypt-devel.
  46. * Thu Apr 16 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.023-1
  47. - new upstream release
  48. * Fri Jun 27 2014 IWAI, Masaharu <iwaim.sub@gmail.com> 1.021-2
  49. - build with Perl 5.16
  50. * Fri Mar 02 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.021-1
  51. - initial build for Vine Linux
  52. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.021-6
  53. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  54. * Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.021-5
  55. - Perl mass rebuild
  56. * Fri Dec 17 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.021-4
  57. - 661697 rebuild for fixing problems with vendorach/lib
  58. * Sun May 02 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.021-3
  59. - Mass rebuild with perl-5.12.0
  60. * Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 1.021-2
  61. - rebuild against perl 5.10.1
  62. * Sun Nov 08 2009 Nicolas Chuavet <kwizart@fedoraproject.org> - 1.021-1
  63. - Specfile autogenerated by cpanspec 1.78.