|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
# Suspect that upstream prefers single-decimal versions
|
|
|
|
|
%global cpanversion 3.75
|
|
|
|
|
%global rpmversion 3.7.5
|
|
|
|
|
%global cpanversion 3.74
|
|
|
|
|
%global rpmversion 3.7.4
|
|
|
|
|
|
|
|
|
|
# This arch-specific package has no binaries and generates no debuginfo
|
|
|
|
|
%global debug_package %{nil}
|
|
|
|
@ -8,38 +8,34 @@
|
|
|
|
|
Name: perl-common-sense
|
|
|
|
|
Summary: "Common sense" Perl defaults
|
|
|
|
|
Version: %{rpmversion}
|
|
|
|
|
Release: 7%{?dist}
|
|
|
|
|
Release: 8%{?dist}
|
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
|
URL: https://metacpan.org/release/common-sense
|
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/M/ML/MLEHMANN/common-sense-%{cpanversion}.tar.gz
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
URL: http://search.cpan.org/dist/common-sense
|
|
|
|
|
Source0: http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/common-sense-%{cpanversion}.tar.gz
|
|
|
|
|
Patch1: common-sense-3.71-podenc.patch
|
|
|
|
|
# Module Build
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
|
|
|
|
|
BuildRequires: coreutils
|
|
|
|
|
BuildRequires: findutils
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
|
BuildRequires: perl(feature)
|
|
|
|
|
BuildRequires: perl(strict)
|
|
|
|
|
BuildRequires: perl(utf8)
|
|
|
|
|
BuildRequires: perl(warnings)
|
|
|
|
|
BuildRequires: /usr/bin/pod2man
|
|
|
|
|
BuildRequires: /usr/bin/pod2text
|
|
|
|
|
# Module Runtime
|
|
|
|
|
# (no additional dependencies)
|
|
|
|
|
# Test Suite
|
|
|
|
|
# (no additional dependencies)
|
|
|
|
|
# Dependencies
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
|
|
|
|
|
|
# Obsolete/provide old -tests subpackage (can be removed in F19 development cycle)
|
|
|
|
|
Obsoletes: %{name}-tests < %{version}-%{release}
|
|
|
|
|
Provides: %{name}-tests = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
This module implements some sane defaults for Perl programs, as defined
|
|
|
|
|
by two typical (or not so typical - use your common sense) specimens of
|
|
|
|
|
Perl coders:
|
|
|
|
|
|
|
|
|
|
It's supposed to be mostly the same, with much lower memory usage, as:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
use utf8;
|
|
|
|
|
use strict qw(vars subs);
|
|
|
|
|
use feature qw(say state switch);
|
|
|
|
@ -47,7 +43,7 @@ It's supposed to be mostly the same, with much lower memory usage, as:
|
|
|
|
|
no feature qw(array_base);
|
|
|
|
|
no warnings;
|
|
|
|
|
use warnings qw(FATAL closed threads internal debugging pack
|
|
|
|
|
prototype inplace io pipe unpack malloc
|
|
|
|
|
portable prototype inplace io pipe unpack malloc
|
|
|
|
|
deprecated glob digit printf layer
|
|
|
|
|
reserved taint closure semicolon);
|
|
|
|
|
no warnings qw(exec newline unopened);
|
|
|
|
@ -63,9 +59,10 @@ perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
make pure_install DESTDIR=%{buildroot}
|
|
|
|
|
find %{buildroot} -type f -name .packlist -delete
|
|
|
|
|
%{_fixperms} -c %{buildroot}
|
|
|
|
|
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
|
|
|
|
|
%{_fixperms} %{buildroot}
|
|
|
|
|
|
|
|
|
|
# Have a non-empty manpage
|
|
|
|
|
pod2man sense.pod > %{buildroot}%{_mandir}/man3/common::sense.3pm
|
|
|
|
@ -73,6 +70,9 @@ pod2man sense.pod > %{buildroot}%{_mandir}/man3/common::sense.3pm
|
|
|
|
|
%check
|
|
|
|
|
make test
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%if 0%{?_licensedir:1}
|
|
|
|
|
%license LICENSE
|
|
|
|
@ -86,56 +86,8 @@ make test
|
|
|
|
|
%{_mandir}/man3/common::sense.3*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 3.7.5-7
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 3.7.5-6
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.5-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.5-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Jun 27 2020 Jitka Plesnikova <jplesnik@redhat.com> - 3.7.5-3
|
|
|
|
|
- Perl 5.32 re-rebuild updated packages
|
|
|
|
|
|
|
|
|
|
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 3.7.5-2
|
|
|
|
|
- Perl 5.32 rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Apr 2 2020 Paul Howarth <paul@city-fan.org> - 3.7.5-1
|
|
|
|
|
- Update to 3.75
|
|
|
|
|
- Make build (more) reproducible
|
|
|
|
|
- Removed "portable" from the warnings list, as 32-bit perls (as opposed to
|
|
|
|
|
32-bit platforms) are practically extinct and it warns about a weird subset
|
|
|
|
|
of operations, e.g. 64-bit hex() is not ok, 64-bit addition is fine, makes
|
|
|
|
|
no sense; additionally, other than hex/oct etc. harassment, there is
|
|
|
|
|
nothing in this category that otherwise could be useful
|
|
|
|
|
- Specify all build dependencies
|
|
|
|
|
- Drop ancient obsoletes/provides for removed tests sub-package
|
|
|
|
|
- Drop redundant buildroot cleaning in %%install section
|
|
|
|
|
- Simplify find command using -delete
|
|
|
|
|
- Fix permissions verbosely
|
|
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.4-14
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.4-13
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 3.7.4-12
|
|
|
|
|
- Perl 5.30 rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.4-11
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.4-10
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 3.7.4-9
|
|
|
|
|
- Perl 5.28 rebuild
|
|
|
|
|
* Thu Dec 07 2023 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 3.7.4-8
|
|
|
|
|
- Rebuilt for MSVSphere 8.8
|
|
|
|
|
|
|
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.4-8
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|