f10ca7
Name:           perl-PAR-Packer
421d45
Version:        1.007
Jesse Keating 15562d
Release:        2%{?dist}
f10ca7
Summary:        PAR Packager
f10ca7
License:        GPL+ or Artistic
f10ca7
Group:          Development/Libraries
f10ca7
URL:            http://search.cpan.org/dist/PAR-Packer/
f10ca7
Source0:        http://www.cpan.org/authors/id/S/SM/SMUELLER/PAR-Packer-%{version}.tar.gz
f10ca7
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
f10ca7
BuildRequires:  perl(Archive::Zip) >= 1
f10ca7
BuildRequires:  perl(Compress::Zlib) >= 1.3
f10ca7
BuildRequires:  perl(ExtUtils::MakeMaker)
f10ca7
BuildRequires:  perl(ExtUtils::Embed)
f10ca7
BuildRequires:  perl(Getopt::ArgvFile) >= 1.07
421d45
BuildRequires:  perl(Module::ScanDeps) >= 0.97
421d45
BuildRequires:  perl(PAR) >= 1.000
f10ca7
BuildRequires:  perl(PAR::Dist) >= 0.22
f10ca7
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
f10ca7
f10ca7
%description
f10ca7
This module implements the App::Packer::Backend interface, for generating
f10ca7
stand-alone executables, perl scripts and PAR files.
f10ca7
f10ca7
%prep
f10ca7
%setup -q -n PAR-Packer-%{version}
f10ca7
f10ca7
%build
388c1e
# The build procedure for binaries parl and parldyn exploits PAR through
388c1e
# a compiled binary named myldr/static and thus looks very obfuscated.
388c1e
# There is no obvious way to teach the build system not to strip the installed
388c1e
# binaries.  Consequently, desable the -debuginfo subpackage:
388c1e
%global debug_package %{nil}
f10ca7
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
0ea972
# The Makefile is not parallel-safe.
0ea972
# PAR_GLOBAL_TEMP seems to be needed for the build.
0ea972
make PAR_GLOBAL_TEMP=/var/tmp
f10ca7
f10ca7
%install
f10ca7
rm -rf $RPM_BUILD_ROOT
f10ca7
f10ca7
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
f10ca7
f10ca7
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
f10ca7
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
f10ca7
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
f10ca7
f10ca7
%{_fixperms} $RPM_BUILD_ROOT/*
f10ca7
f10ca7
%check
0ea972
export PAR_GLOBAL_TEMP=/var/tmp
388c1e
#export PAR_GLOBAL_TMPDIR=/var/tmp
0ea972
## does not pass
0ea972
# make test PERL_TEST_POD=1 || :
f10ca7
f10ca7
%clean
f10ca7
rm -rf $RPM_BUILD_ROOT
f10ca7
f10ca7
%files
f10ca7
%defattr(-,root,root,-)
f10ca7
%doc AUTHORS ChangeLog README TODO
0ea972
%{perl_vendorlib}/*
f10ca7
%{_bindir}/par.pl
f10ca7
%{_bindir}/parl
f10ca7
%{_bindir}/parldyn
f10ca7
%{_bindir}/pp
f10ca7
%{_bindir}/tkpp
f10ca7
%{_mandir}/man1/*.1.gz
f10ca7
%{_mandir}/man3/*
f10ca7
f10ca7
%changelog
Jesse Keating 15562d
* Wed Sep 29 2010 jkeating - 1.007-2
Jesse Keating 15562d
- Rebuilt for gcc bug 634757
Jesse Keating 15562d
421d45
* Tue Sep 14 2010 Petr Sabata <psabata@redhat.com> - 1.007-1
421d45
- New release, v1.007
421d45
Adam Tkac 92bee8
* Tue Aug 24 2010 Adam Tkac <atkac redhat="" com=""> - 1.005-2
Adam Tkac 92bee8
- rebuild
Adam Tkac 92bee8
0d23a7
* Fri Jun 11 2010 Petr Sabata <psabata@redhat.com> - 1.005-1
0d23a7
- Update to the latest release, fixing #602933
0d23a7
b09c2d
* Tue May 04 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.991-6
b09c2d
- Mass rebuild with perl-5.12.0
b09c2d
cd358b
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 0.991-5
cd358b
- rebuild against perl 5.10.1
cd358b
388c1e
* Wed Sep 23 2009 Stepan Kasal <skasal@redhat.com> - 0.991-4
388c1e
- too hard to build without stripping (#524894)
388c1e
0ea972
* Mon Sep 21 2009 Stepan Kasal <skasal@redhat.com> - 0.991-3
0ea972
- patch to use $RPM_OPT_FLAGS
0ea972
- patch to submit the third parameter to open()
0ea972
711935
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.991-2
711935
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
711935
f10ca7
* Mon Apr 27 2009 Marcela Mašláňová <mmaslano@redhat.com> 0.991-1
f10ca7
- Specfile autogenerated by cpanspec 1.78.