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
21 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
24 BuildRequires: perl-devel >= 5.8.0
25 BuildRequires: rpm-perlprov >= 4.1-13
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 %define _noautoreq "perl(anything_fake_or_conditional)"
49 %setup -q -n %{pdir}-%{pnam}-%{version}
53 # Don't use pipes here: they generally don't work. Apply a patch.
54 %{__perl} Makefile.PL \
58 # if module isn't noarch, use:
60 # OPTIMIZE="%{rpmcflags}"
62 %{!?_without_tests:%{__make} test}
65 rm -rf $RPM_BUILD_ROOT
68 DESTDIR=$RPM_BUILD_ROOT
71 rm -rf $RPM_BUILD_ROOT
74 %defattr(644,root,root,755)
77 #%%{perl_vendorlib}/...
78 #%%{perl_vendorarch}/...