perl-Try-Tiny-vl.spec 3.7 KB

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