perl-Test-Without-Module-vl.spec 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. Name: perl-Test-Without-Module
  2. Version: 0.20
  3. Release: 1%{?_dist_release}
  4. Summary: Test fallback behavior in absence of modules
  5. License: GPL+ or Artistic
  6. Group: Development/Libraries
  7. URL: http://search.cpan.org/dist/Test-Without-Module/
  8. Source0: http://www.cpan.org/modules/by-module/Test/Test-Without-Module-%{version}.tar.gz
  9. Vendor: Project Vine
  10. Distribution: Vine Linux
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  12. BuildArch: noarch
  13. BuildRequires: perl(ExtUtils::MakeMaker)
  14. BuildRequires: perl(File::Slurp)
  15. BuildRequires: perl(Test::More)
  16. BuildRequires: perl(Test::Pod)
  17. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  18. %{?perl_default_filter}
  19. %description
  20. This module allows you to deliberately hide modules from a program even
  21. though they are installed. This is mostly useful for testing modules that
  22. have a fallback when a certain dependency module is not installed.
  23. %prep
  24. %setup -q -n Test-Without-Module-%{version}
  25. find . -type f -exec chmod 644 {} \;
  26. sed -i -e 's/\r//' README Changes
  27. %build
  28. %{__perl} Makefile.PL INSTALLDIRS=vendor
  29. make %{?_smp_mflags}
  30. %install
  31. rm -rf %{buildroot}
  32. make pure_install DESTDIR=%{buildroot}
  33. find %{buildroot} -type f -name .packlist -exec rm -f {} \;
  34. find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
  35. %{_fixperms} %{buildroot}/*
  36. %check
  37. make test
  38. %clean
  39. rm -rf %{buildroot}
  40. %files
  41. %defattr(-,root,root,-)
  42. %doc Changes README
  43. %{perl_vendorlib}/*
  44. %{_mandir}/man3/*
  45. %changelog
  46. * Sun May 19 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.20-1
  47. - new upstream release.
  48. - rebuilt with perl-5.26.
  49. * Sat Nov 22 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.18-1
  50. - new upstream release
  51. - built with perl 5.16.3
  52. * Mon Mar 05 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.17-1
  53. - initial build for Vine Linux
  54. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-6
  55. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  56. * Mon Jun 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.17-5
  57. - Perl mass rebuild
  58. * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-4
  59. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  60. * Wed Dec 22 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.17-3
  61. - 661697 rebuild for fixing problems with vendorach/lib
  62. * Thu Jul 22 2010 Emmanuel Seyman <emmanuel.seyman@club-internet.fr> - 0.17-2
  63. - Remove executable permissions
  64. - Dos2unix the README and Changes file
  65. - Americanise the summary
  66. * Sun Jun 27 2010 Emmanuel Seyman <emmanuel.seyman@club-internet.fr> 0.17-1
  67. - Specfile autogenerated by cpanspec 1.78.