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