3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
17 License: (enter GPL/LGPL/BSD/BSD-like/Artistic/other license name here)
18 Group: Development/Languages/Perl
19 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
22 BuildRequires: perl-devel >= 1:5.8.0
23 BuildRequires: rpm-perlprov >= 4.1-13
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 %define _noautoreq 'perl(anything_fake_or_conditional)'
46 %setup -q -n %{pdir}-%{pnam}-%{version}
50 # Don't use pipes here: they generally don't work. Apply a patch.
51 %{__perl} Makefile.PL \
55 # if module isn't noarch, use:
57 # OPTIMIZE="%{rpmcflags}"
59 %{?with_tests:%{__make} test}
62 rm -rf $RPM_BUILD_ROOT
65 DESTDIR=$RPM_BUILD_ROOT
68 rm -rf $RPM_BUILD_ROOT
71 %defattr(644,root,root,755)
74 #%%{perl_vendorlib}/...
75 #%%{perl_vendorarch}/...