perl-Try-Tiny-vl.spec 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. Name: perl-Try-Tiny
  2. Summary: Minimal try/catch with proper localization of $@
  3. Version: 0.11
  4. Release: 1%{?_dist_release}
  5. License: MIT
  6. Group: Development/Libraries
  7. Source0: http://search.cpan.org/CPAN/authors/id/D/DO/DOY/Try-Tiny-%{version}.tar.gz
  8. URL: http://search.cpan.org/dist/Try-Tiny
  9. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  10. BuildArch: noarch
  11. BuildRequires: perl(ExtUtils::MakeMaker)
  12. BuildRequires: perl(Test::More)
  13. # obsolete/provide old tests subpackage
  14. # can be removed during F19 development cycle
  15. Obsoletes: %{name}-tests < 0.11-3
  16. Provides: %{name}-tests = %{version}-%{release}
  17. Vendor: Project Vine
  18. Distribution: Vine Linux
  19. Packager: shaolin
  20. %{?perl_default_filter}
  21. %description
  22. The main focus of this module is to provide simple and reliable error
  23. handling for those having a hard time installing TryCatch, but who still
  24. want to write correct 'eval' blocks without 5 lines of boilerplate each
  25. time.
  26. %prep
  27. %setup -q -n Try-Tiny-%{version}
  28. %build
  29. %{__perl} Makefile.PL INSTALLDIRS=vendor
  30. make %{?_smp_mflags}
  31. %install
  32. rm -rf %{buildroot}
  33. make pure_install DESTDIR=%{buildroot}
  34. find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
  35. find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
  36. %{_fixperms} %{buildroot}/*
  37. %check
  38. make test
  39. %clean
  40. rm -rf %{buildroot}
  41. %files
  42. %doc Changes t/
  43. %{perl_vendorlib}/Try/
  44. %{_mandir}/man3/Try::Tiny.3pm*
  45. %changelog
  46. * Thu Mar 01 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.11-1
  47. - initial build for Vine Linux
  48. * Sun Jan 22 2012 Iain Arnell <iarnell@gmail.com> 0.11-3
  49. - drop tests subpackage; move tests to main package documentation
  50. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-2
  51. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  52. * Sun Oct 02 2011 Iain Arnell <iarnell@gmail.com> 0.11-1
  53. - update to latest upstream version
  54. * Wed Jun 15 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.09-2
  55. - Perl mass rebuild
  56. * Fri Mar 18 2011 Iain Arnell <iarnell@gmail.com> 0.09-1
  57. - update to latest upstream version
  58. - clean up spec for modern rpmbuild
  59. * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.07-2
  60. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  61. * Mon Nov 1 2010 Paul Howarth <paul@city-fan.org> 0.07-1
  62. - update to 0.07:
  63. - allow multiple finally blocks
  64. - pass the error, if any, to finally blocks when called
  65. - documentation fixes and clarifications
  66. - this release by RJBS -> update source URL
  67. * Fri May 07 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.04-2
  68. - Mass rebuild with perl-5.12.0
  69. * Tue Mar 02 2010 Chris Weyl <cweyl@alumni.drew.edu> 0.04-1
  70. - update by Fedora::App::MaintainerTools 0.004
  71. - PERL_INSTALL_ROOT => DESTDIR
  72. - updating to latest GA CPAN version (0.04)
  73. * Fri Dec 4 2009 Stepan Kasal <skasal@redhat.com> - 0.02-2
  74. - rebuild against perl 5.10.1
  75. * Tue Sep 15 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.02-1
  76. - submission
  77. * Tue Sep 15 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.02-0
  78. - initial RPM packaging
  79. - generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.8)