3 # _without_tests - do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
18 License: (enter GPL/LGPL/BSD/BSD-like/Artistic/other license name here)
19 Group: Development/Languages/Perl
20 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
23 BuildRequires: perl-devel >= 5.8.0
24 BuildRequires: rpm-perlprov >= 4.1-13
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 %define _noautoreq 'perl(anything_fake_or_conditional)'
48 %setup -q -n %{pdir}-%{pnam}-%{version}
52 # Don't use pipes here: they generally don't work. Apply a patch.
53 %{__perl} Makefile.PL \
57 # if module isn't noarch, use:
59 # OPTIMIZE="%{rpmcflags}"
61 %{!?_without_tests:%{__make} test}
64 rm -rf $RPM_BUILD_ROOT
67 DESTDIR=$RPM_BUILD_ROOT
70 rm -rf $RPM_BUILD_ROOT
73 %defattr(644,root,root,755)
76 #%%{perl_vendorlib}/...
77 #%%{perl_vendorarch}/...