2 # - include /usr/bin/part and /usr/bin/tkpp or not?
5 %bcond_without tests # do not perform "make test"
8 Summary: Perl Archive Toolkit
9 Summary(pl.UTF-8): Zestaw narzędzi perlowych do archiwizacji
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/PAR/%{pdir}-%{version}.tar.gz
17 # Source0-md5: 7a071dd811176fafe74ff054cb8962ce
18 URL: http://par.perl.org/
19 BuildRequires: perl-Archive-Zip >= 1.00
21 BuildRequires: perl(Compress::Zlib) >= 1.30
22 BuildRequires: perl-Digest-SHA1
23 BuildRequires: perl-Module-ScanDeps >= 0.45
24 BuildRequires: perl-Module-Signature >= 0.35
26 BuildRequires: perl-PAR-Dist >= 0.06
27 BuildRequires: perl-devel >= 1:5.8.0
28 BuildRequires: rpm-perlprov >= 4.1-13
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 - Do what JAR (Java Archive) does for Perl
34 - Platform-independent, compressed file format (zip)
35 - Aggregates modules, scripts and other files into one file
36 - Easy to generate, update and extract
37 Benefits of using PAR:
38 - Reduced download and deployment time
39 - Saves disk space by compression and selective packaging
40 - Version consistency: solves forward-compatibility problems
41 - Community support: par@perl.org
42 You can also turn a PAR file into a self-contained script
43 - Bundles all necessary 3rd-party modules with it
44 - Requires only core Perl to run on the target machine
45 - If you use pp to compile the script...
46 - ...you get an executable not even needing core Perl
48 %description -l pl.UTF-8
50 - robi to samo, co JAR (archiwizator Javy), ale dla Perla
51 - używa niezależnego od platformy, formatu pliku skompresowanego (zip)
52 - integruje w jeden plik moduły, skrypty i inne pliki
53 - pliki PAR są łatwe do wygenerowania, aktualizacji i rozpakowania
54 Korzyści płynące ze stosowania PAR:
55 - skrócenie czasu pobierania i wdrożenia programu
56 - oszczędność miejsca na dysku wynikająca z kompresji i wybiórczego
58 - spójność wersji: rozwiązuje problemy zgodności w przód
59 - wsparcie zespołu: par@perl.org
60 Można również przekształcić plik PAR w skrypt zawierający pakiet
61 - łączy w sobie wszystkie niezbędne obce moduły
62 - wymaga do uruchomienia na maszynie docelowej jedynie podstawowego
64 - przy wykorzystaniu pp do kompilacji skryptu...
65 - ...dostaje się program uruchamialny nie wymagający nawet
69 %setup -q -n %{pdir}-%{version}
72 %{__perl} Makefile.PL \
74 --skipdeps # make ExtUtils::Autoinstall non-interactive
78 OPTIMIZE="%{rpmcflags}"
80 %{?with_tests:%{__make} test}
83 rm -rf $RPM_BUILD_ROOT
86 DESTDIR=$RPM_BUILD_ROOT
89 rm -rf $RPM_BUILD_ROOT
92 %defattr(644,root,root,755)
93 %doc README Changes AUTHORS
94 %{perl_vendorlib}/PAR.pm
95 %{perl_vendorlib}/PAR/*
96 %exclude %{perl_vendorlib}/PAR/*.pod