3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: PAR::Packer - PAR Packager
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/PAR/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 8f78dcc541758efca6f3c3b98e1124ae
18 URL: http://search.cpan.org/dist/PAR-Packer/
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRequires: perl-Archive-Zip >= 1
23 BuildRequires: perl-Getopt-ArgvFile >= 1.07
24 BuildRequires: perl-Module-ScanDeps >= 0.78
25 BuildRequires: perl-PAR >= 0.977
26 BuildRequires: perl-PAR-Dist >= 0.22
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 This module implements the App::Packer::Backend interface, for generating
32 stand-alone executables, perl scripts and PAR files.
34 # %description -l pl.UTF-8
38 %setup -q -n %{pdir}-%{pnam}-%{version}
41 %{__perl} Makefile.PL \
45 OPTIMIZE="%{rpmcflags}"
47 %{?with_tests:%{__make} test}
50 rm -rf $RPM_BUILD_ROOT
52 %{__make} pure_install \
53 DESTDIR=$RPM_BUILD_ROOT
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
60 %doc AUTHORS ChangeLog README TODO
61 %attr(755,root,root) %{_bindir}/*
62 %{perl_vendorlib}/*.pm
63 %{perl_vendorlib}/PAR/*
64 %{perl_vendorlib}/App/Packer/*