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
28 BuildRequires: perl >= 5.6
29 BuildRequires: rpm-perlprov >= 4.1-13
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 %define _noautoreq "perl(anything_fake_or_conditional)"
53 %setup -q -n %{pdir}-%{pnam}-%{version}
59 # Don't use pipes here: they generally don't work. Apply a patch.
60 %{__perl} Makefile.PL \
63 # if module isn't noarch, use:
64 # %{__make} OPTIMIZE="%{rpmcflags}"
66 %{!?_without_tests:%{__make} test}
69 rm -rf $RPM_BUILD_ROOT
72 DESTDIR=$RPM_BUILD_ROOT
75 rm -rf $RPM_BUILD_ROOT
78 %defattr(644,root,root,755)
81 #%%{perl_vendorlib}/...
82 #%%{perl_vendorarch}/...