Sophie

Sophie

distrib > Mageia > 1 > i586 > media > core-updates-src > by-pkgid > ad6e88d502cc038a930dd3eacab0e820 > files > 3

perl-PAR-Packer-1.9.0-1.1.mga1.src.rpm

%define upstream_name    PAR-Packer
%define upstream_version 1.009

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
%define subrel 1
Release:    %mkrel 1

Summary:    Data package containing a dynamic PARL
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/PAR/%{upstream_name}-%{upstream_version}.tar.gz
Patch0:	PAR-Packer-1.009-CVE-2011-4114.patch
BuildRequires: perl(Archive::Zip) >= 1.0.0
BuildRequires: perl(Compress::Zlib) >= 1.300.0
BuildRequires: perl(ExtUtils::Embed)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.420.0
BuildRequires: perl(File::Temp) >= 0.50.0
BuildRequires: perl(Getopt::ArgvFile) >= 1.70.0
BuildRequires: perl(Module::ScanDeps) >= 1.10.0
BuildRequires: perl(PAR) >= 1.0.0
BuildRequires: perl(PAR::Dist) >= 0.220.0
BuildRequires: perl-devel
%description
_pp_ creates standalone executables from Perl programs, using the
compressed packager provided by the PAR manpage, and dependency detection
heuristics offered by the Module::ScanDeps manpage. Source files are
compressed verbatim without compilation.

You may think of _pp_ as "_perlcc_ that works without hassle". :-)

A GUI interface is also available as the _tkpp_ command.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
%patch0 -p1
# resolve /usr/bin/pp conflict with nss
perl -pi -e 's{/pp}{/pp.pl}g' Makefile.PL
perl -pi -e 's{script/pp}{script/pp.pl}g' MANIFEST
mv script/pp script/pp.pl

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make

%check
#make test

%install
rm -rf %buildroot
%makeinstall_std

%clean
rm -rf %buildroot

%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog META.yml README TODO
%{_bindir}/*
%{_mandir}/man1/*
%{_mandir}/man3/*
%perl_vendorlib/*


%changelog

* Sat Jan 14 2012 fwang <fwang> 1.9.0-1.1.mga1
+ Revision: 195868
- add upstream patch to fix CVE-2011-4114

* Tue Mar 29 2011 jquelin <jquelin> 1.9.0-1.mga1
+ Revision: 78740
- update to 1.009

* Tue Jan 25 2011 jquelin <jquelin> 1.8.0-2.mga1
+ Revision: 38415
- rename pp to pp.pl to avoid conflict

* Tue Jan 25 2011 jquelin <jquelin> 1.8.0-1.mga1
+ Revision: 38275
- imported package perl-PAR-Packer