Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Factory:zSystems
perl-PAR
perl-PAR.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perl-PAR.spec of Package perl-PAR
# # spec file for package perl-PAR # # Copyright (c) 2024 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 Name: perl-PAR Version: 1.20.0 Release: 0 # 1.020 -> normalize -> 1.20.0 %define cpan_version 1.020 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Perl Archive Toolkit 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 BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Archive::Zip) >= 1.00 BuildRequires: perl(AutoLoader) >= 5.66_02 BuildRequires: perl(Compress::Zlib) >= 1.30 BuildRequires: perl(Digest::SHA) >= 5.45 BuildRequires: perl(PAR::Dist) >= 0.32 Requires: perl(Archive::Zip) >= 1.00 Requires: perl(AutoLoader) >= 5.66_02 Requires: perl(Compress::Zlib) >= 1.30 Requires: perl(Digest::SHA) >= 5.45 Requires: perl(PAR::Dist) >= 0.32 Provides: perl(PAR) = %{version} Provides: perl(PAR::Heavy) = 0.12 Provides: perl(PAR::SetupProgname) = 1.002 Provides: perl(PAR::SetupTemp) = 1.002 %undefine __perllib_provides %{perl_requires} %description This module lets you use special zip files, called *P*erl *Ar*chives, as libraries from which Perl modules can be loaded. It supports loading XS modules by overriding *DynaLoader* bootstrapping methods; it writes shared object file to a temporary file at the time it is needed. A _.par_ file is mostly a zip of the _blib/_ directory after the build process of a CPAN distribution. To generate a _.par_ file yourself, all you have to do is compress the modules under _arch/_ and _lib/_, e.g.: % perl Makefile.PL % make % cd blib % zip -r mymodule.par arch/ lib/ Afterward, you can just use _mymodule.par_ anywhere in your '@INC', use *PAR*, and it will Just Work. Support for generating _.par_ files is going to be in the next (beyond 0.2805) release of Module::Build. For convenience, you can set the 'PERL5OPT' environment variable to '-MPAR' to enable 'PAR' processing globally (the overhead is small if not used); setting it to '-MPAR=/path/to/mylib.par' will load a specific PAR file. Alternatively, consider using the _par.pl_ utility bundled with the PAR::Packer distribution, or using the self-contained _parl_ utility which is also distributed with PAR::Packer on machines without PAR.pm installed. Note that self-containing scripts and executables created with _par.pl_ and _pp_ may also be used as _.par_ archives: % pp -o packed.exe source.pl # generate packed.exe (see PAR::Packer) % perl -MPAR=packed.exe other.pl # this also works % perl -MPAR -Ipacked.exe other.pl # ditto Please see SYNOPSIS for most typical use cases. %prep %autosetup -n %{cpan_name}-%{cpan_version} %build perl Makefile.PL INSTALLDIRS=vendor %make_build %check make test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %files -f %{name}.files %doc AUTHORS Changes README %license LICENSE %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor