2009-12-26 19:38:53 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-Devel-PPPort
|
|
|
|
#
|
2022-02-08 15:53:53 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2011-11-18 08:37:12 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-09-22 20:21:19 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-11-18 08:37:12 +00:00
|
|
|
#
|
2009-12-26 19:38:53 +00:00
|
|
|
|
2011-11-18 08:37:12 +00:00
|
|
|
|
2021-07-08 14:48:53 +00:00
|
|
|
%define cpan_name Devel-PPPort
|
2011-11-18 08:37:12 +00:00
|
|
|
Name: perl-Devel-PPPort
|
2022-03-26 08:18:50 +00:00
|
|
|
Version: 3.68
|
2015-04-14 08:04:32 +00:00
|
|
|
Release: 0
|
2018-04-23 07:47:14 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2022-03-03 14:08:42 +00:00
|
|
|
Summary: Perl/Pollution/Portability
|
2020-08-16 23:42:51 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2019-05-18 07:01:31 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/A/AT/ATOOMIC/%{cpan_name}-%{version}.tar.gz
|
2015-10-02 12:16:18 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:13:30 +02:00
|
|
|
Source100: README.md
|
2015-04-14 08:04:32 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2010-12-03 14:02:49 +00:00
|
|
|
%{perl_requires}
|
2009-12-26 19:38:53 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Perl's API has changed over time, gaining new features, new functions,
|
|
|
|
increasing its flexibility, and reducing the impact on the C namespace
|
|
|
|
environment (reduced pollution). The header file written by this module,
|
2015-04-14 08:04:32 +00:00
|
|
|
typically _ppport.h_, attempts to bring some of the newer Perl API features
|
|
|
|
to older versions of Perl, so that you can worry less about keeping track
|
|
|
|
of old releases, but users can still reap the benefit.
|
2009-12-26 19:38:53 +00:00
|
|
|
|
2015-04-14 08:04:32 +00:00
|
|
|
'Devel::PPPort' contains two functions, 'WriteFile' and 'GetFileContents'.
|
|
|
|
'WriteFile''s only purpose is to write the _ppport.h_ C header file. This
|
|
|
|
file contains a series of macros and, if explicitly requested, functions
|
|
|
|
that allow XS modules to be built using older versions of Perl. Currently,
|
|
|
|
Perl versions from 5.003 to 5.20 are supported.
|
2009-12-26 19:38:53 +00:00
|
|
|
|
2015-04-14 08:04:32 +00:00
|
|
|
'GetFileContents' can be used to retrieve the file contents rather than
|
|
|
|
writing it out.
|
2009-12-26 19:38:53 +00:00
|
|
|
|
2015-04-14 08:04:32 +00:00
|
|
|
This module is used by 'h2xs' to write the file _ppport.h_.
|
2009-12-26 19:38:53 +00:00
|
|
|
|
|
|
|
%prep
|
2021-07-08 14:48:53 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{version}
|
2020-02-03 19:40:36 +00:00
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
2009-12-26 19:38:53 +00:00
|
|
|
|
|
|
|
%build
|
2019-03-01 07:38:27 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
2021-07-08 14:48:53 +00:00
|
|
|
%make_build
|
2009-12-26 19:38:53 +00:00
|
|
|
|
|
|
|
%check
|
2019-03-01 07:38:27 +00:00
|
|
|
make test
|
2009-12-26 19:38:53 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
2015-04-14 08:04:32 +00:00
|
|
|
%files -f %{name}.files
|
2020-08-16 23:42:51 +00:00
|
|
|
%doc Changes HACKERS README soak TODO
|
2009-12-26 19:38:53 +00:00
|
|
|
|
2011-11-18 08:37:12 +00:00
|
|
|
%changelog
|