source: projects/specs/trunk/p/perl-Test-Without-Module/perl-Test-Without-Module-vl.spec @ 5844

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