Blame SPECS/perl-common-sense.spec

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