3 # _without_tests - do not perform "make test"
6 # - make the package build even with tests
7 # - summary / descriptions
8 %include /usr/lib/rpm/macros.perl
13 Name: perl-%{pdir}-%{pnam}
17 Group: Development/Languages/Perl
18 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
19 BuildRequires: perl-devel >= 5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 %setup -q -n %{pdir}-%{pnam}-%{version}
32 # Don't use pipes here: they generally don't work. Apply a patch.
33 %{__perl} Makefile.PL \
38 # if module isn't noarch, use:
39 # %{__make} OPTIMIZE="%{rpmcflags}"
41 %{!?_without_tests:%{__make} test}
44 rm -rf $RPM_BUILD_ROOT
47 DESTDIR=$RPM_BUILD_ROOT
50 rm -rf $RPM_BUILD_ROOT
53 %defattr(644,root,root,755)
56 #%%{perl_vendorlib}/...