perl-Devel-PPPort/perl-Devel-PPPort.spec

81 lines
2.4 KiB
RPMSpec
Raw Normal View History

2024-01-25 16:46:49 +08:00
%global base_version 3.68
%define mod_name Devel-PPPort
2023-07-17 15:41:02 +08:00
Name: perl-%{mod_name}
2024-01-25 16:46:49 +08:00
Version: 3.71
2023-07-17 15:41:02 +08:00
Release: 1
2019-09-30 11:12:00 -04:00
Summary: Perl Pollution Portability header generator
2023-07-17 15:41:02 +08:00
License: GPL-1.0-or-later OR Artistic-1.0-Perl
URL: https://metacpan.org/release/%{mod_name}
2024-01-25 16:46:49 +08:00
Source0: https://cpan.metacpan.org/authors/id/A/AT/ATOOMIC/%{mod_name}-%{base_version}.tar.gz
Patch6000: backport-Devel-PPPort-3.68-upgrade-to-3.71.patch
2019-09-30 11:12:00 -04:00
BuildRequires: findutils gcc make perl-devel perl-generators perl-interpreter perl(ExtUtils::MakeMaker) perl(strict) perl(vars)
# For tests:
BuildRequires: perl(Config) perl(DynaLoader) perl(File::Path) perl(Tie::Hash) perl(utf8)
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%description
Perl's API has changed over time, gaining new features, new functions,
increasing its flexibility, and reducing the impact on the C name space
environment (reduced pollution). The header file written by this module,
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.
%package help
Summary: Doc files for %{name}
Buildarch: noarch
%description help
The %{name}-help package contains doc files for %{name}.
%{?perl_default_filter}
%prep
2024-01-25 16:46:49 +08:00
%setup -q -n %{mod_name}-%{base_version}
%patch6000 -p1
2019-09-30 11:12:00 -04:00
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 OPTIMIZE="$RPM_OPT_FLAGS"
%{make_build}
%install
make pure_install DESTDIR=%{buildroot}
find '%{buildroot}' -type f -name '*.bs' -exec rm -f {} \;
%{_fixperms} %{buildroot}/*
%check
make test
%files
%doc Changes HACKERS soak
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/Devel*
%files help
%{_mandir}/*/*
%changelog
2024-01-25 16:46:49 +08:00
* Thu Jan 25 2024 zhangyao <zhangyao108@huawei.com> - 3.71-1
- upgrade version to 3.71
2023-07-17 15:41:02 +08:00
* Mon Jul 17 2023 leeffo <liweiganga@uniontech.com> - 3.68-1
- upgrade to version 3.68
* Mon Oct 31 2022 hongjinghao <hongjinghao@huawei.com> - 3.63-2
- use %{mod_name} marco
2021-11-23 11:53:10 +08:00
* Tue Nov 23 2021 shixuantong <shixuantong@huawei.com> - 3.63-1
- upgrade version to 3.63
2021-01-27 16:52:19 +08:00
* Wed Jan 27 2021 liudabo <liudabo1@huawei.com> - 3.62-1
- upgrade version to 3.62
2022-06-15 16:09:51 +08:00
* Thu Jul 23 2020 xinghe <xinghe1@huawei.com> - 3.58-1
2020-07-23 18:46:26 +08:00
- update version to 3.58
2022-06-15 16:09:51 +08:00
* Sat Sep 14 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.42-4
2019-09-30 11:12:00 -04:00
- Package init