f10ca77
Name:           perl-PAR-Packer
f10ca77
Version:        0.991
388c1e0
Release:        4%{?dist}
f10ca77
Summary:        PAR Packager
f10ca77
License:        GPL+ or Artistic
f10ca77
Group:          Development/Libraries
f10ca77
URL:            http://search.cpan.org/dist/PAR-Packer/
f10ca77
Source0:        http://www.cpan.org/authors/id/S/SM/SMUELLER/PAR-Packer-%{version}.tar.gz
0ea9728
Patch0:		perl-PAR-Packer-cflags.patch
0ea9728
Patch1:		perl-PAR-Packer-open.patch
f10ca77
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
f10ca77
BuildRequires:  perl(Archive::Zip) >= 1
f10ca77
BuildRequires:  perl(Compress::Zlib) >= 1.3
f10ca77
BuildRequires:  perl(ExtUtils::MakeMaker)
f10ca77
BuildRequires:  perl(ExtUtils::Embed)
f10ca77
BuildRequires:  perl(Getopt::ArgvFile) >= 1.07
f10ca77
BuildRequires:  perl(Module::ScanDeps) >= 0.78
f10ca77
BuildRequires:  perl(PAR) >= 0.977
f10ca77
BuildRequires:  perl(PAR::Dist) >= 0.22
f10ca77
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
f10ca77
f10ca77
%description
f10ca77
This module implements the App::Packer::Backend interface, for generating
f10ca77
stand-alone executables, perl scripts and PAR files.
f10ca77
f10ca77
%prep
f10ca77
%setup -q -n PAR-Packer-%{version}
0ea9728
%patch0 -p1 -b.cflags
0ea9728
%patch1 -p1 -b.open
f10ca77
f10ca77
%build
388c1e0
# The build procedure for binaries parl and parldyn exploits PAR through
388c1e0
# a compiled binary named myldr/static and thus looks very obfuscated.
388c1e0
# There is no obvious way to teach the build system not to strip the installed
388c1e0
# binaries.  Consequently, desable the -debuginfo subpackage:
388c1e0
%global debug_package %{nil}
f10ca77
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
0ea9728
# The Makefile is not parallel-safe.
0ea9728
# PAR_GLOBAL_TEMP seems to be needed for the build.
0ea9728
make PAR_GLOBAL_TEMP=/var/tmp
f10ca77
f10ca77
%install
f10ca77
rm -rf $RPM_BUILD_ROOT
f10ca77
f10ca77
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
f10ca77
f10ca77
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
f10ca77
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
f10ca77
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
f10ca77
f10ca77
%{_fixperms} $RPM_BUILD_ROOT/*
f10ca77
f10ca77
%check
0ea9728
export PAR_GLOBAL_TEMP=/var/tmp
388c1e0
#export PAR_GLOBAL_TMPDIR=/var/tmp
0ea9728
## does not pass
0ea9728
# make test PERL_TEST_POD=1 || :
f10ca77
f10ca77
%clean
f10ca77
rm -rf $RPM_BUILD_ROOT
f10ca77
f10ca77
%files
f10ca77
%defattr(-,root,root,-)
f10ca77
%doc AUTHORS ChangeLog README TODO
0ea9728
%{perl_vendorlib}/*
f10ca77
%{_bindir}/par.pl
f10ca77
%{_bindir}/parl
f10ca77
%{_bindir}/parldyn
f10ca77
%{_bindir}/pp
f10ca77
%{_bindir}/tkpp
f10ca77
%{_mandir}/man1/*.1.gz
f10ca77
%{_mandir}/man3/*
f10ca77
f10ca77
%changelog
388c1e0
* Wed Sep 23 2009 Stepan Kasal <skasal@redhat.com> - 0.991-4
388c1e0
- too hard to build without stripping (#524894)
388c1e0
0ea9728
* Mon Sep 21 2009 Stepan Kasal <skasal@redhat.com> - 0.991-3
0ea9728
- patch to use $RPM_OPT_FLAGS
0ea9728
- patch to submit the third parameter to open()
0ea9728
7119354
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.991-2
7119354
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
7119354
f10ca77
* Mon Apr 27 2009 Marcela Mašláňová <mmaslano@redhat.com> 0.991-1
f10ca77
- Specfile autogenerated by cpanspec 1.78.