forked from pool/perl-PAR-Packer
106 lines
3.7 KiB
RPMSpec
106 lines
3.7 KiB
RPMSpec
#
|
|
# spec file for package perl-PAR-Packer
|
|
#
|
|
# Copyright (c) 2025 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define cpan_name PAR-Packer
|
|
Name: perl-PAR-Packer
|
|
Version: 1.64.0
|
|
Release: 0
|
|
# 1.064 -> normalize -> 1.64.0
|
|
%define cpan_version 1.064
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
Summary: PAR Packager
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/R/RS/RSCHUPP/%{cpan_name}-%{cpan_version}.tar.gz
|
|
Source1: cpanspec.yml
|
|
Source100: README.md
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(Archive::Zip) >= 1.20
|
|
BuildRequires: perl(Compress::Zlib) >= 1.30
|
|
BuildRequires: perl(Digest::SHA) >= 5.40
|
|
BuildRequires: perl(ExtUtils::CBuilder)
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.31
|
|
BuildRequires: perl(Getopt::ArgvFile) >= 1.70
|
|
BuildRequires: perl(IO::Compress::Gzip)
|
|
BuildRequires: perl(IPC::Run3) >= 0.48
|
|
BuildRequires: perl(Module::ScanDeps) >= 1.210
|
|
BuildRequires: perl(PAR) >= 1.20
|
|
BuildRequires: perl(PAR::Dist) >= 0.220
|
|
Requires: perl(Archive::Zip) >= 1.20
|
|
Requires: perl(Compress::Zlib) >= 1.30
|
|
Requires: perl(Digest::SHA) >= 5.40
|
|
Requires: perl(Getopt::ArgvFile) >= 1.70
|
|
Requires: perl(IO::Compress::Gzip)
|
|
Requires: perl(Module::ScanDeps) >= 1.210
|
|
Requires: perl(PAR) >= 1.20
|
|
Requires: perl(PAR::Dist) >= 0.220
|
|
Provides: perl(App::Packer::PAR) = 0.910.0
|
|
Provides: perl(PAR::Filter) = 0.30.0
|
|
Provides: perl(PAR::Filter::Bleach)
|
|
Provides: perl(PAR::Filter::Bytecode)
|
|
Provides: perl(PAR::Filter::Obfuscate)
|
|
Provides: perl(PAR::Filter::PatchContent)
|
|
Provides: perl(PAR::Filter::PodStrip)
|
|
Provides: perl(PAR::Packer) = %{version}
|
|
Provides: perl(PAR::StrippedPARL::Base) = 0.975.0
|
|
Provides: perl(pp) = 0.992.0
|
|
%undefine __perllib_provides
|
|
Recommends: perl(Module::Signature)
|
|
Recommends: perl(Tk)
|
|
Recommends: perl(Tk::ColoredButton)
|
|
Recommends: perl(Tk::EntryCheck)
|
|
Recommends: perl(Tk::Getopt)
|
|
%{perl_requires}
|
|
|
|
%description
|
|
This module implements the *App::Packer::Backend* interface, for generating
|
|
stand-alone executables, perl scripts and PAR files.
|
|
|
|
Currently, this module is used by the command line tool *pp* internally, as
|
|
well as by the contributed _contrib/gui_pp/gpp_ program.
|
|
|
|
Since version 0.97 of PAR, this module and its related tools such as 'pp'
|
|
have been stripped from the PAR distribution and are now distributed as the
|
|
'PAR-Packer' distribution so that PAR users need not necessarily have a C
|
|
compiler.
|
|
|
|
%prep
|
|
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
|
|
|
%build
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
|
# build system busted - only supporting serial build
|
|
%{__make} -j1
|
|
|
|
%check
|
|
export PERL_TEST_POD=1
|
|
make test
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
%perl_gen_filelist
|
|
|
|
%files -f %{name}.files
|
|
%doc AUTHORS Changes README
|
|
%license LICENSE
|
|
|
|
%changelog
|