blob: e9a4f68ff81d4eef37ba8a0544cabd646d8cc68d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
#
# Conditional build:
%bcond_without tests # do not perform "make test"
#
%define pdir PAR
%define pnam Packer
Summary: PAR::Packer - PAR Packager
#Summary(pl.UTF-8):
Name: perl-PAR-Packer
Version: 1.045
Release: 9
# same as perl
License: GPL v1+ or Artistic
Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-module/PAR/%{pdir}-%{pnam}-%{version}.tar.gz
# Source0-md5: a3333754b0112ee8fe80083042b89a3b
Patch0: x32.patch
URL: http://search.cpan.org/dist/PAR-Packer/
BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
%if %{with tests}
BuildRequires: perl-Archive-Zip >= 1
BuildRequires: perl-Getopt-ArgvFile >= 1.07
BuildRequires: perl-IPC-Run3
BuildRequires: perl-Module-ScanDeps >= 0.78
BuildRequires: perl-PAR >= 1.014
BuildRequires: perl-PAR-Dist >= 0.22
%endif
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _enable_debug_packages 0
%description
This module implements the App::Packer::Backend interface, for generating
stand-alone executables, perl scripts and PAR files.
# %description -l pl.UTF-8
# TODO
%package tkpp
Summary: tkpp - frontend to pp written in Perl/Tk
Group: Development/Tools
Requires: %{name} = %{version}-%{release}
%description tkpp
Tkpp is a GUI frontend to pp, which can turn perl scripts into stand-alone
PAR files, perl scripts or executables.
%prep
%setup -q -n %{pdir}-%{pnam}-%{version}
%patch0 -p1
%build
%{__perl} Makefile.PL \
INSTALLDIRS=vendor
%{__make} -j1 \
CC="%{__cc}" \
OPTIMIZE="%{rpmcflags}"
%{?with_tests:%{__make} -j1 test}
%install
rm -rf $RPM_BUILD_ROOT
%{__make} pure_install \
DESTDIR=$RPM_BUILD_ROOT
mv $RPM_BUILD_ROOT%{_bindir}/{,par-}pp
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc AUTHORS README
%attr(755,root,root) %{_bindir}/par*
%{perl_vendorlib}/*.pm
%{perl_vendorlib}/PAR/*
%{perl_vendorlib}/App/Packer/*
%{_mandir}/man3/*
%{_mandir}/man1/p*
%files tkpp
%attr(755,root,root) %{_bindir}/tkpp
%{_mandir}/man1/tkpp*
|