3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 %define pnam UseAllModules
8 Summary: Test::UseAllModules - do use_ok() for all the MANIFESTed modules
9 Summary(pl.UTF-8): Test::UseAllModules - wykonaj use_ok() dla wszystkich modułów MANIFEST
10 Name: perl-Test-UseAllModules
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/Test/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: b591f8f8de76dd36422a60e2d02fcbdd
18 # generic URL, check or change before uncommenting
19 #URL: http://search.cpan.org/dist/Test-UseAllModules/
20 BuildRequires: perl-devel >= 1:5.8.0
21 BuildRequires: rpm-perlprov >= 4.1-13
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 I'm sick of writing 00_load.t (or something like that) that'll do
29 use_ok() for every module I write. I'm sicker of updating 00_load.t
30 when I add another file to the distro. This module reads MANIFEST to
31 find modules to be tested and does use_ok() for each of them. Now all
32 you have to do is update MANIFEST. You don't have to modify the test
35 %description -l pl.UTF-8
36 Test::UseAllModules - wykonaj use_ok() dla wszystkich modułów MANIFEST
39 %setup -q -n %{pdir}-%{pnam}-%{version}
42 %{__perl} Makefile.PL \
46 %{?with_tests:%{__make} test}
49 rm -rf $RPM_BUILD_ROOT
52 DESTDIR=$RPM_BUILD_ROOT
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)
60 %{perl_vendorlib}/Test/*.pm