f10ca7
Name:           perl-PAR-Packer
cfbd9c
Version:        1.014
cfbd9c
Release:        1%{?dist}
f10ca7
Summary:        PAR Packager
f10ca7
License:        GPL+ or Artistic
f10ca7
Group:          Development/Libraries
f10ca7
URL:            http://search.cpan.org/dist/PAR-Packer/
cfb5ff
Source0:        http://www.cpan.org/authors/id/R/RS/RSCHUPP/PAR-Packer-%{version}.tar.gz
46ded8
Source1:        extract_icon
46ded8
Source2:        tkpp.desktop
cfbd9c
BuildRequires:  perl(inc::Module::Install) >= 0.92
cfbd9c
BuildRequires:  perl(ExtUtils::Embed)
cfbd9c
BuildRequires:  perl(ExtUtils::MakeMaker)
cfbd9c
BuildRequires:  perl(File::Spec)
cfbd9c
# Run-time:
f10ca7
BuildRequires:  perl(Archive::Zip) >= 1
f10ca7
BuildRequires:  perl(Compress::Zlib) >= 1.3
cfbd9c
BuildRequires:  perl(constant)
cfbd9c
BuildRequires:  perl(Cwd)
Petr Sabata 2cc03a
BuildRequires:  perl(File::Temp) >= 0.05
f10ca7
BuildRequires:  perl(Getopt::ArgvFile) >= 1.07
Petr Sabata 2cc03a
BuildRequires:  perl(IO::Compress::Gzip)
cfbd9c
BuildRequires:  perl(Module::ScanDeps) >= 1.09
b369a1
BuildRequires:  perl(PAR) >= 1.005
f10ca7
BuildRequires:  perl(PAR::Dist) >= 0.22
5a56f4
# Tests:
5a56f4
BuildRequires:  perl(Test::More)
5a56f4
BuildRequires:  perl(File::Path)
cfbd9c
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
46ded8
Requires:       perl(Archive::Zip) >= 1
46ded8
Requires:       perl(Compress::Zlib) >= 1.3
46ded8
Requires:       perl(File::Temp) >= 0.05
46ded8
Requires:       perl(Getopt::ArgvFile) >= 1.07
46ded8
Requires:       perl(IO::Compress::Gzip)
cfbd9c
Requires:       perl(Module::ScanDeps) >= 1.09
b369a1
Requires:       perl(PAR) >= 1.005
46ded8
Requires:       perl(PAR::Dist) >= 0.22
46ded8
46ded8
# Remove under-specified dependencies
46ded8
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Archive::Zip|File::Temp|Getopt::ArgvFile|Module::ScanDeps|PAR\\)\\s*$
f10ca7
f10ca7
%description
f10ca7
This module implements the App::Packer::Backend interface, for generating
f10ca7
stand-alone executables, perl scripts and PAR files.
f10ca7
46ded8
%package Tk
46ded8
Summary:        Front-end to pp written in Perl/Tk
46ded8
BuildArch:      noarch
46ded8
BuildRequires:  desktop-file-utils
46ded8
BuildRequires:  perl(MIME::Base64)
46ded8
Requires:       %{name} = %{version}-%{release}
cfbd9c
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
46ded8
Requires:       perl(ExtUtils::MakeMaker)
da6bde
Requires:       perl(File::Temp)
da6bde
Requires:       perl(Tk::ColoredButton)
da6bde
Requires:       perl(Tk::EntryCheck)
da6bde
Requires:       perl(Tk::Getopt)
da6bde
Requires:       perl(Tk::Pod)
46ded8
46ded8
%description Tk
b369a1
Tkpp is a GUI front-end to pp, which can turn perl scripts into standalone
46ded8
PAR files, perl scripts or executables.
46ded8
46ded8
f10ca7
%prep
f10ca7
%setup -q -n PAR-Packer-%{version}
cfbd9c
# Remove bundled modules
cfbd9c
rm -rf inc/*
cfbd9c
sed -i -e '/^inc\//d' MANIFEST
f10ca7
46ded8
f10ca7
%build
ce0c3e
# DEBUG variable needed to disable stripping binary
cfbd9c
DEBUG=1 perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
0ea972
# The Makefile is not parallel-safe.
b369a1
make
f10ca7
46ded8
f10ca7
%install
cfbd9c
make pure_install DESTDIR=%{buildroot}
90619f
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
90619f
find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \;
90619f
%{_fixperms} %{buildroot}/*
f10ca7
46ded8
# Install desktop file
46ded8
%{SOURCE1} < script/tkpp > tkpp.gif
46ded8
install -m644 -D tkpp.gif \
46ded8
    $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/32x32/apps/tkpp.gif
46ded8
desktop-file-install \
46ded8
    --dir=${RPM_BUILD_ROOT}%{_datadir}/applications %{SOURCE2}
46ded8
46ded8
f10ca7
%check
b369a1
make test
f10ca7
732f3f
# Sctipts needed for icon cache management
732f3f
%post Tk
732f3f
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
732f3f
732f3f
%postun Tk
732f3f
if [ $1 -eq 0 ] ; then
732f3f
    /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
732f3f
    /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
732f3f
fi
732f3f
732f3f
%posttrans Tk
732f3f
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
732f3f
46ded8
f10ca7
%files
f10ca7
%doc AUTHORS ChangeLog README TODO
0ea972
%{perl_vendorlib}/*
f10ca7
%{_bindir}/par.pl
f10ca7
%{_bindir}/parl
f10ca7
%{_bindir}/parldyn
f10ca7
%{_bindir}/pp
46ded8
%{_mandir}/man1/*.1.*
46ded8
%exclude %{_mandir}/man1/tkpp.1.*
f10ca7
%{_mandir}/man3/*
f10ca7
46ded8
%files Tk
46ded8
%{_bindir}/tkpp
46ded8
%{_mandir}/man1/tkpp.1.*
46ded8
%{_datadir}/applications/tkpp.desktop
46ded8
%{_datadir}/icons/hicolor/32x32/apps/tkpp.gif
46ded8
46ded8
f10ca7
%changelog
cfbd9c
* Wed Jan 02 2013 Petr Pisar <ppisar@redhat.com> - 1.014-1
cfbd9c
- 1.014 bump
cfbd9c
31dc54
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.013-2
31dc54
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
31dc54
a01eee
* Thu Jun 21 2012 Petr Pisar <ppisar@redhat.com> - 1.013-1
a01eee
- Perl 5.16 rebuild
a01eee
cd3090
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.012-3
cd3090
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
cd3090
732f3f
* Tue Dec 06 2011 Petr Pisar <ppisar@redhat.com> - 1.012-2
732f3f
- Poke icon cache
732f3f
b369a1
* Mon Dec 05 2011 Petr Pisar <ppisar@redhat.com> - 1.012-1
b369a1
- 1.012 bump
b369a1
46ded8
* Fri Dec 02 2011 Petr Pisar <ppisar@redhat.com> - 1.011-1
46ded8
- 1.011 bump (fixes CVE-2011-4114)
46ded8
- Specify run-time dependencies versions
46ded8
- Sub-package tkpp into perl-PAR-Packer-Tk
46ded8
- Create Free Desktop menu entry
46ded8
Petr Sabata dde0b3
* Tue Jul 19 2011 Petr Sabata <contyk@redhat.com> - 1.010-2
Petr Sabata dde0b3
- Perl mass rebuild
Petr Sabata dde0b3
Petr Sabata 2cc03a
* Thu Jul 14 2011 Petr Sabata <contyk@redhat.com> - 1.010-1
Petr Sabata 2cc03a
- 1.010 bump
Petr Sabata 2cc03a
- Removing defattr
Petr Sabata 2cc03a
90619f
* Fri May  6 2011 Petr Sabata <psabata@redhat.com> - 1.009-1
90619f
- 1.009 bump
90619f
- Removing buildroot garbage
90619f
ce0c3e
* Fri Feb 25 2011 Petr Pisar <ppisar@redhat.com> - 1.008-3
ce0c3e
- Do not strip binaries
ce0c3e
1b78a2
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.008-2
1b78a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
1b78a2
cfb5ff
* Tue Nov 23 2010 Petr Sabata <psabata@redhat.com> - 1.008-1
cfb5ff
- New upstream release, v1.008
cfb5ff
- New source URL
cfb5ff
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.