3 # _without_tests - do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Create and manipulate PAR distributions
9 Name: perl-%{pdir}-%{pnam}
12 License: Same as Perl itself
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5: 899b3dd6118ab71eec416d65dfcdc113
16 URL: http://par.perl.org
17 BuildRequires: perl-devel >= 5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 This module creates and manipulates PAR distributions. They are archi-
24 tecture-specific PAR files, containing everything under blib/ of CPAN
25 distributions after their "make" or "Build" stage, a META.yml describ-
26 ing metadata of the original CPAN distribution, and a MANIFEST detail-
27 ing all files within it. Digitally signed PAR distributions will also
28 contain a SIGNATURE file.
31 %setup -q -n %{pdir}-%{pnam}-%{version}
34 %{__perl} Makefile.PL \
37 %{!?_without_tests:%{__make} test}
40 rm -rf $RPM_BUILD_ROOT
43 DESTDIR=$RPM_BUILD_ROOT
46 rm -rf $RPM_BUILD_ROOT
49 %defattr(644,root,root,755)
51 %dir %{perl_vendorlib}/PAR
52 %{perl_vendorlib}/PAR/*.pm