|
|
43cd76 |
# Suspect that upstream prefers single-decimal versions
|
|
|
43cd76 |
%global cpanversion 3.75
|
|
|
43cd76 |
%global rpmversion 3.7.5
|
|
|
43cd76 |
|
|
|
43cd76 |
# This arch-specific package has no binaries and generates no debuginfo
|
|
|
43cd76 |
%global debug_package %{nil}
|
|
|
43cd76 |
|
|
|
43cd76 |
Name: perl-common-sense
|
|
|
43cd76 |
Summary: "Common sense" Perl defaults
|
|
|
43cd76 |
Version: %{rpmversion}
|
|
|
43cd76 |
Release: 7%{?dist}
|
|
|
43cd76 |
License: GPL+ or Artistic
|
|
|
43cd76 |
URL: https://metacpan.org/release/common-sense
|
|
|
43cd76 |
Source0: https://cpan.metacpan.org/authors/id/M/ML/MLEHMANN/common-sense-%{cpanversion}.tar.gz
|
|
|
43cd76 |
Patch1: common-sense-3.71-podenc.patch
|
|
|
43cd76 |
# Module Build
|
|
|
43cd76 |
BuildRequires: coreutils
|
|
|
43cd76 |
BuildRequires: findutils
|
|
|
43cd76 |
BuildRequires: make
|
|
|
43cd76 |
BuildRequires: perl-generators
|
|
|
43cd76 |
BuildRequires: perl-interpreter
|
|
|
43cd76 |
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
43cd76 |
BuildRequires: perl(feature)
|
|
|
43cd76 |
BuildRequires: perl(strict)
|
|
|
43cd76 |
BuildRequires: perl(utf8)
|
|
|
43cd76 |
BuildRequires: perl(warnings)
|
|
|
43cd76 |
BuildRequires: /usr/bin/pod2man
|
|
|
43cd76 |
BuildRequires: /usr/bin/pod2text
|
|
|
43cd76 |
# Module Runtime
|
|
|
43cd76 |
# (no additional dependencies)
|
|
|
43cd76 |
# Test Suite
|
|
|
43cd76 |
# (no additional dependencies)
|
|
|
43cd76 |
# Dependencies
|
|
|
43cd76 |
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
43cd76 |
|
|
|
43cd76 |
%description
|
|
|
43cd76 |
This module implements some sane defaults for Perl programs, as defined
|
|
|
43cd76 |
by two typical (or not so typical - use your common sense) specimens of
|
|
|
43cd76 |
Perl coders:
|
|
|
43cd76 |
|
|
|
43cd76 |
It's supposed to be mostly the same, with much lower memory usage, as:
|
|
|
43cd76 |
|
|
|
43cd76 |
use utf8;
|
|
|
43cd76 |
use strict qw(vars subs);
|
|
|
43cd76 |
use feature qw(say state switch);
|
|
|
43cd76 |
use feature qw(unicode_strings unicode_eval current_sub fc evalbytes);
|
|
|
43cd76 |
no feature qw(array_base);
|
|
|
43cd76 |
no warnings;
|
|
|
43cd76 |
use warnings qw(FATAL closed threads internal debugging pack
|
|
|
43cd76 |
prototype inplace io pipe unpack malloc
|
|
|
43cd76 |
deprecated glob digit printf layer
|
|
|
43cd76 |
reserved taint closure semicolon);
|
|
|
43cd76 |
no warnings qw(exec newline unopened);
|
|
|
43cd76 |
|
|
|
43cd76 |
%prep
|
|
|
43cd76 |
%setup -q -n common-sense-%{cpanversion}
|
|
|
43cd76 |
|
|
|
43cd76 |
# Specify POD encoding
|
|
|
43cd76 |
%patch1
|
|
|
43cd76 |
|
|
|
43cd76 |
%build
|
|
|
43cd76 |
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
43cd76 |
make %{?_smp_mflags}
|
|
|
43cd76 |
|
|
|
43cd76 |
%install
|
|
|
43cd76 |
make pure_install DESTDIR=%{buildroot}
|
|
|
43cd76 |
find %{buildroot} -type f -name .packlist -delete
|
|
|
43cd76 |
%{_fixperms} -c %{buildroot}
|
|
|
43cd76 |
|
|
|
43cd76 |
# Have a non-empty manpage
|
|
|
43cd76 |
pod2man sense.pod > %{buildroot}%{_mandir}/man3/common::sense.3pm
|
|
|
43cd76 |
|
|
|
43cd76 |
%check
|
|
|
43cd76 |
make test
|
|
|
43cd76 |
|
|
|
43cd76 |
%files
|
|
|
43cd76 |
%if 0%{?_licensedir:1}
|
|
|
43cd76 |
%license LICENSE
|
|
|
43cd76 |
%else
|
|
|
43cd76 |
%doc LICENSE
|
|
|
43cd76 |
%endif
|
|
|
43cd76 |
%doc Changes README t/
|
|
|
43cd76 |
%dir %{perl_vendorarch}/common/
|
|
|
43cd76 |
%{perl_vendorarch}/common/sense.pm
|
|
|
43cd76 |
%doc %{perl_vendorarch}/common/sense.pod
|
|
|
43cd76 |
%{_mandir}/man3/common::sense.3*
|
|
|
43cd76 |
|
|
|
43cd76 |
%changelog
|
|
|
43cd76 |
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 3.7.5-7
|
|
|
43cd76 |
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
43cd76 |
Related: rhbz#1991688
|
|
|
43cd76 |
|
|
|
43cd76 |
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 3.7.5-6
|
|
|
43cd76 |
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
43cd76 |
|
|
|
43cd76 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.5-5
|
|
|
43cd76 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
43cd76 |
|
|
|
43cd76 |
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.5-4
|
|
|
43cd76 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
43cd76 |
|
|
|
43cd76 |
* Sat Jun 27 2020 Jitka Plesnikova <jplesnik@redhat.com> - 3.7.5-3
|
|
|
43cd76 |
- Perl 5.32 re-rebuild updated packages
|
|
|
43cd76 |
|
|
|
43cd76 |
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 3.7.5-2
|
|
|
43cd76 |
- Perl 5.32 rebuild
|
|
|
43cd76 |
|
|
|
43cd76 |
* Thu Apr 2 2020 Paul Howarth <paul@city-fan.org> - 3.7.5-1
|
|
|
43cd76 |
- Update to 3.75
|
|
|
43cd76 |
- Make build (more) reproducible
|
|
|
43cd76 |
- Removed "portable" from the warnings list, as 32-bit perls (as opposed to
|
|
|
43cd76 |
32-bit platforms) are practically extinct and it warns about a weird subset
|
|
|
43cd76 |
of operations, e.g. 64-bit hex() is not ok, 64-bit addition is fine, makes
|
|
|
43cd76 |
no sense; additionally, other than hex/oct etc. harassment, there is
|
|
|
43cd76 |
nothing in this category that otherwise could be useful
|
|
|
43cd76 |
- Specify all build dependencies
|
|
|
43cd76 |
- Drop ancient obsoletes/provides for removed tests sub-package
|
|
|
43cd76 |
- Drop redundant buildroot cleaning in %%install section
|
|
|
43cd76 |
- Simplify find command using -delete
|
|
|
43cd76 |
- Fix permissions verbosely
|
|
|
43cd76 |
|
|
|
43cd76 |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.4-14
|
|
|
43cd76 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
43cd76 |
|
|
|
43cd76 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.4-13
|
|
|
43cd76 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
43cd76 |
|
|
|
43cd76 |
* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 3.7.4-12
|
|
|
43cd76 |
- Perl 5.30 rebuild
|
|
|
43cd76 |
|
|
|
43cd76 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.4-11
|
|
|
43cd76 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
43cd76 |
|
|
|
43cd76 |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.4-10
|
|
|
43cd76 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
43cd76 |
|
|
|
43cd76 |
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 3.7.4-9
|
|
|
43cd76 |
- Perl 5.28 rebuild
|
|
|
43cd76 |
|
|
|
43cd76 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.4-8
|
|
|
43cd76 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
43cd76 |
|
|
|
43cd76 |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.4-7
|
|
|
43cd76 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
43cd76 |
|
|
|
43cd76 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.4-6
|
|
|
43cd76 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
43cd76 |
|
|
|
43cd76 |
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 3.7.4-5
|
|
|
43cd76 |
- Perl 5.26 rebuild
|
|
|
43cd76 |
|
|
|
43cd76 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.4-4
|
|
|
43cd76 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
43cd76 |
|
|
|
43cd76 |
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 3.7.4-3
|
|
|
43cd76 |
- Perl 5.24 rebuild
|
|
|
43cd76 |
|
|
|
43cd76 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.4-2
|
|
|
43cd76 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
43cd76 |
|
|
|
43cd76 |
* Mon Jun 29 2015 Paul Howarth <paul@city-fan.org> - 3.7.4-1
|
|
|
43cd76 |
- Update to 3.74
|
|
|
43cd76 |
- The generated README file was empty
|
|
|
43cd76 |
- Use %%license where possible
|
|
|
43cd76 |
|
|
|
43cd76 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7.3-5
|
|
|
43cd76 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
43cd76 |
|
|
|
43cd76 |
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 3.7.3-4
|
|
|
43cd76 |
- Perl 5.22 rebuild
|
|
|
43cd76 |
|
|
|
43cd76 |
* Tue Aug 26 2014 Jitka Plesnikova <jplesnik@redhat.com> - 3.7.3-3
|
|
|
43cd76 |
- Perl 5.20 rebuild
|
|
|
43cd76 |
|
|
|
43cd76 |
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7.3-2
|
|
|
43cd76 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
43cd76 |
|
|
|
43cd76 |
* Thu Jun 12 2014 Paul Howarth <paul@city-fan.org> - 3.7.3-1
|
|
|
43cd76 |
- Update to 3.73
|
|
|
43cd76 |
- Move pod to separate file, to further improve loading times
|
|
|
43cd76 |
- Make it arch-specific, adding a test that warns when an old version is
|
|
|
43cd76 |
still installed
|
|
|
43cd76 |
- Due to a logic glitch, warnings were not enabled at all on 5.16
|
|
|
43cd76 |
- Remove "deprecated", as it turned out to be yet another time bomb as p5p
|
|
|
43cd76 |
don't care the least about backwards compatibility anymore
|
|
|
43cd76 |
(https://rt.perl.org/Public/Bug/Display.html?id=119123)
|
|
|
43cd76 |
- Manually generate the manpage so we get a non-empty one
|
|
|
43cd76 |
|
|
|
43cd76 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6-7
|
|
|
43cd76 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
43cd76 |
|
|
|
43cd76 |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6-6
|
|
|
43cd76 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
43cd76 |
|
|
|
43cd76 |
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 3.6-5
|
|
|
43cd76 |
- Perl 5.18 rebuild
|
|
|
43cd76 |
|
|
|
43cd76 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6-4
|
|
|
43cd76 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
43cd76 |
|
|
|
43cd76 |
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6-3
|
|
|
43cd76 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
43cd76 |
|
|
|
43cd76 |
* Thu Jun 28 2012 Petr Pisar <ppisar@redhat.com> - 3.6-2
|
|
|
43cd76 |
- Perl 5.16 rebuild
|
|
|
43cd76 |
|
|
|
43cd76 |
* Sun Jun 17 2012 Paul Howarth <paul@city-fan.org> - 3.6-1
|
|
|
43cd76 |
- Update to 3.6:
|
|
|
43cd76 |
- Work around more 5.16 breakage - $^H doesn't work as nicely as P5P make
|
|
|
43cd76 |
you believe
|
|
|
43cd76 |
- Add features: unicode_strings current_sub fc evalbytes
|
|
|
43cd76 |
- Disable features: array_base
|
|
|
43cd76 |
|
|
|
43cd76 |
* Mon Jun 11 2012 Petr Pisar <ppisar@redhat.com> - 3.5-2
|
|
|
43cd76 |
- Perl 5.16 rebuild
|
|
|
43cd76 |
|
|
|
43cd76 |
* Sat Mar 24 2012 Paul Howarth <paul@city-fan.org> - 3.5-1
|
|
|
43cd76 |
- Update to 3.5:
|
|
|
43cd76 |
- Localise $^W, as this causes warnings with 5.16 when some lost soul uses
|
|
|
43cd76 |
-w; common::sense doesn't support $^W, but tries to shield module authors
|
|
|
43cd76 |
and programs from its ill effects
|
|
|
43cd76 |
- Don't need to remove empty directories from buildroot
|
|
|
43cd76 |
- Drop %%defattr, redundant since rpm 4.4
|
|
|
43cd76 |
|
|
|
43cd76 |
* Sat Jan 21 2012 Paul Howarth <paul@city-fan.org> - 3.4-5
|
|
|
43cd76 |
- Obsolete/provide old -tests subpackage to support upgrades
|
|
|
43cd76 |
|
|
|
43cd76 |
* Thu Jan 19 2012 Paul Howarth <paul@city-fan.org> - 3.4-4
|
|
|
43cd76 |
- Reinstate compatibility with older distributions like EL-5
|
|
|
43cd76 |
- Drop -tests subpackage (general lack of interest in this), but include
|
|
|
43cd76 |
them as documentation for the main package
|
|
|
43cd76 |
- Don't use macros for commands
|
|
|
43cd76 |
- Make %%files list more explicit
|
|
|
43cd76 |
- Use tabs
|
|
|
43cd76 |
|
|
|
43cd76 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4-3
|
|
|
43cd76 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
43cd76 |
|
|
|
43cd76 |
* Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 3.4-2
|
|
|
43cd76 |
- Perl mass rebuild
|
|
|
43cd76 |
|
|
|
43cd76 |
* Sat May 07 2011 Iain Arnell <iarnell@gmail.com> - 3.4-1
|
|
|
43cd76 |
- Update to latest upstream version
|
|
|
43cd76 |
|
|
|
43cd76 |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3-2
|
|
|
43cd76 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
43cd76 |
|
|
|
43cd76 |
* Sat Dec 18 2010 Iain Arnell <iarnell@gmail.com> - 3.3-1
|
|
|
43cd76 |
- Update to latest upstream version
|
|
|
43cd76 |
- Clean up spec for modern rpmbuild
|
|
|
43cd76 |
|
|
|
43cd76 |
* Wed Dec 15 2010 Marcela Maslanova <mmaslano@redhat.com> - 3.0-3
|
|
|
43cd76 |
- Rebuild to fix problems with vendorarch/lib (#661697)
|
|
|
43cd76 |
|
|
|
43cd76 |
* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 3.0-2
|
|
|
43cd76 |
- Mass rebuild with perl 5.12.0
|
|
|
43cd76 |
|
|
|
43cd76 |
* Sun Mar 14 2010 Chris Weyl <cweyl@alumni.drew.edu> - 3.0-1
|
|
|
43cd76 |
- Update by Fedora::App::MaintainerTools 0.006
|
|
|
43cd76 |
- PERL_INSTALL_ROOT => DESTDIR
|
|
|
43cd76 |
- Updating to latest GA CPAN version (3.0)
|
|
|
43cd76 |
|
|
|
43cd76 |
* Fri Dec 4 2009 Stepan Kasal <skasal@redhat.com> - 1.0-3
|
|
|
43cd76 |
- Rebuild against perl 5.10.1
|
|
|
43cd76 |
|
|
|
43cd76 |
* Sun Sep 27 2009 Chris Weyl <cweyl@alumni.drew.edu> - 1.0-2
|
|
|
43cd76 |
- Update summary (though now we deviate from upstream)
|
|
|
43cd76 |
|
|
|
43cd76 |
* Mon Aug 31 2009 Chris Weyl <cweyl@alumni.drew.edu> - 1.0-1
|
|
|
43cd76 |
- Auto-update to 1.0 (by cpan-spec-update 0.01)
|
|
|
43cd76 |
|
|
|
43cd76 |
* Fri Aug 21 2009 Chris Weyl <cweyl@alumni.drew.edu> - 0.04-0
|
|
|
43cd76 |
- Initial RPM packaging
|
|
|
43cd76 |
- Generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.8)
|