dfb4d0f
# Suspect that upstream prefers single-decimal versions
b448183
%global cpanversion 3.74
b448183
%global rpmversion 3.7.4
dfb4d0f
dfb4d0f
# This arch-specific package has no binaries and generates no debuginfo
dfb4d0f
%global debug_package %{nil}
dfb4d0f
b59fd37
Name:		perl-common-sense
b59fd37
Summary:	"Common sense" Perl defaults 
dfb4d0f
Version:	%{rpmversion}
6892e61
Release:	11%{?dist}
b59fd37
License:	GPL+ or Artistic
3d58a55
URL:		https://metacpan.org/release/common-sense
3d58a55
Source0:	https://cpan.metacpan.org/authors/id/M/ML/MLEHMANN/common-sense-%{cpanversion}.tar.gz 
dfb4d0f
Patch1:		common-sense-3.71-podenc.patch
b448183
BuildRequires:	coreutils
b448183
BuildRequires:	findutils
b448183
BuildRequires:	make
b5b5c4e
BuildRequires:	perl-interpreter
aced082
BuildRequires:	perl-generators
b59fd37
BuildRequires:	perl(ExtUtils::MakeMaker)
dfb4d0f
BuildRequires:	/usr/bin/pod2man
dfb4d0f
BuildRequires:	/usr/bin/pod2text
b59fd37
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Chris Weyl 730df22
ed25b39
# Obsolete/provide old -tests subpackage (can be removed in F19 development cycle)
ed25b39
Obsoletes:	%{name}-tests < %{version}-%{release}
ed25b39
Provides:	%{name}-tests = %{version}-%{release}
ed25b39
Chris Weyl 730df22
%description
Chris Weyl 730df22
This module implements some sane defaults for Perl programs, as defined
Chris Weyl 730df22
by two typical (or not so typical - use your common sense) specimens of
Chris Weyl 730df22
Perl coders:
Chris Weyl 730df22
d8c12d2
It's supposed to be mostly the same, with much lower memory usage, as:
d8c12d2
 
d8c12d2
	use utf8;
d8c12d2
	use strict qw(vars subs);
d8c12d2
	use feature qw(say state switch);
d8c12d2
	use feature qw(unicode_strings unicode_eval current_sub fc evalbytes);
d8c12d2
	no feature qw(array_base);
d8c12d2
	no warnings;
d8c12d2
	use warnings qw(FATAL closed threads internal debugging pack
d8c12d2
			portable prototype inplace io pipe unpack malloc
d8c12d2
			deprecated glob digit printf layer
d8c12d2
			reserved taint closure semicolon);
d8c12d2
	no warnings qw(exec newline unopened);
Chris Weyl 730df22
Chris Weyl 730df22
%prep
dfb4d0f
%setup -q -n common-sense-%{cpanversion}
dfb4d0f
dfb4d0f
# Specify POD encoding
dfb4d0f
%patch1
dfb4d0f
Chris Weyl 730df22
%build
b59fd37
perl Makefile.PL INSTALLDIRS=vendor
Chris Weyl 730df22
make %{?_smp_mflags}
Chris Weyl 730df22
Chris Weyl 730df22
%install
b59fd37
rm -rf %{buildroot}
Chris Weyl 74a0099
make pure_install DESTDIR=%{buildroot}
b59fd37
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
b59fd37
%{_fixperms} %{buildroot}
Chris Weyl 730df22
b448183
# Have a non-empty manpage
dfb4d0f
pod2man sense.pod > %{buildroot}%{_mandir}/man3/common::sense.3pm
dfb4d0f
Chris Weyl 730df22
%check
Chris Weyl 730df22
make test
Chris Weyl 730df22
Chris Weyl 730df22
%files
b448183
%if 0%{?_licensedir:1}
b448183
%license LICENSE
b448183
%else
b448183
%doc LICENSE
b448183
%endif
b448183
%doc Changes README t/
dfb4d0f
%dir %{perl_vendorarch}/common/
dfb4d0f
%{perl_vendorarch}/common/sense.pm
dfb4d0f
%doc %{perl_vendorarch}/common/sense.pod
b448183
%{_mandir}/man3/common::sense.3*
Chris Weyl 730df22
Chris Weyl 730df22
%changelog
6892e61
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.4-11
6892e61
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
6892e61
df0efb5
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.4-10
df0efb5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
df0efb5
0d6ebbe
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 3.7.4-9
0d6ebbe
- Perl 5.28 rebuild
0d6ebbe
95a5da0
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.4-8
95a5da0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
95a5da0
3b82881
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.4-7
3b82881
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
3b82881
04b4b02
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.4-6
04b4b02
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
04b4b02
e7a9468
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 3.7.4-5
e7a9468
- Perl 5.26 rebuild
e7a9468
36dbba1
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.4-4
36dbba1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
36dbba1
1ea97e1
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 3.7.4-3
1ea97e1
- Perl 5.24 rebuild
1ea97e1
8e4f7d8
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.4-2
8e4f7d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
8e4f7d8
b448183
* Mon Jun 29 2015 Paul Howarth <paul@city-fan.org> - 3.7.4-1
b448183
- Update to 3.74
b448183
  - The generated README file was empty
b448183
- Use %%license where possible
b448183
bdb2a3e
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7.3-5
bdb2a3e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
bdb2a3e
e887baa
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 3.7.3-4
e887baa
- Perl 5.22 rebuild
e887baa
bac457e
* Tue Aug 26 2014 Jitka Plesnikova <jplesnik@redhat.com> - 3.7.3-3
bac457e
- Perl 5.20 rebuild
bac457e
1957cbc
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7.3-2
1957cbc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
1957cbc
dfb4d0f
* Thu Jun 12 2014 Paul Howarth <paul@city-fan.org> - 3.7.3-1
dfb4d0f
- Update to 3.73
dfb4d0f
  - Move pod to separate file, to further improve loading times
dfb4d0f
  - Make it arch-specific, adding a test that warns when an old version is
dfb4d0f
    still installed
dfb4d0f
  - Due to a logic glitch, warnings were not enabled at all on 5.16
dfb4d0f
  - Remove "deprecated", as it turned out to be yet another time bomb as p5p
dfb4d0f
    don't care the least about backwards compatibility anymore
dfb4d0f
    (https://rt.perl.org/Public/Bug/Display.html?id=119123)
dfb4d0f
- Manually generate the manpage so we get a non-empty one
dfb4d0f
951b4b2
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6-7
951b4b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
951b4b2
1628a40
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6-6
1628a40
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
1628a40
4b8e138
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 3.6-5
4b8e138
- Perl 5.18 rebuild
4b8e138
afd77ee
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6-4
afd77ee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
afd77ee
7c8431a
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6-3
7c8431a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
7c8431a
aa07468
* Thu Jun 28 2012 Petr Pisar <ppisar@redhat.com> - 3.6-2
aa07468
- Perl 5.16 rebuild
aa07468
d8c12d2
* Sun Jun 17 2012 Paul Howarth <paul@city-fan.org> - 3.6-1
d8c12d2
- Update to 3.6:
d8c12d2
  - Work around more 5.16 breakage - $^H doesn't work as nicely as P5P make
d8c12d2
    you believe
d8c12d2
  - Add features: unicode_strings current_sub fc evalbytes
d8c12d2
  - Disable features: array_base
d8c12d2
85f263b
* Mon Jun 11 2012 Petr Pisar <ppisar@redhat.com> - 3.5-2
85f263b
- Perl 5.16 rebuild
85f263b
69b4235
* Sat Mar 24 2012 Paul Howarth <paul@city-fan.org> - 3.5-1
69b4235
- Update to 3.5:
69b4235
  - Localise $^W, as this causes warnings with 5.16 when some lost soul uses
69b4235
    -w; common::sense doesn't support $^W, but tries to shield module authors
69b4235
    and programs from its ill effects
69b4235
- Don't need to remove empty directories from buildroot
69b4235
- Drop %%defattr, redundant since rpm 4.4
69b4235
ed25b39
* Sat Jan 21 2012 Paul Howarth <paul@city-fan.org> - 3.4-5
ed25b39
- Obsolete/provide old -tests subpackage to support upgrades
ed25b39
b59fd37
* Thu Jan 19 2012 Paul Howarth <paul@city-fan.org> - 3.4-4
b59fd37
- Reinstate compatibility with older distributions like EL-5
b59fd37
- Drop -tests subpackage (general lack of interest in this), but include
b59fd37
  them as documentation for the main package
b59fd37
- Don't use macros for commands
b59fd37
- Make %%files list more explicit
b59fd37
- Use tabs
b59fd37
21ec40f
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4-3
21ec40f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
21ec40f
fade017
* Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 3.4-2
fade017
- Perl mass rebuild
fade017
b59fd37
* Sat May 07 2011 Iain Arnell <iarnell@gmail.com> - 3.4-1
b59fd37
- Update to latest upstream version
be0cd48
9d7076c
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3-2
9d7076c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
9d7076c
69b4235
* Sat Dec 18 2010 Iain Arnell <iarnell@gmail.com> - 3.3-1
b59fd37
- Update to latest upstream version
b59fd37
- Clean up spec for modern rpmbuild
fceb436
c6e239e
* Wed Dec 15 2010 Marcela Maslanova <mmaslano@redhat.com> - 3.0-3
b59fd37
- Rebuild to fix problems with vendorarch/lib (#661697)
c6e239e
e0e5bc1
* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 3.0-2
69b4235
- Mass rebuild with perl 5.12.0
e0e5bc1
b59fd37
* Sun Mar 14 2010 Chris Weyl <cweyl@alumni.drew.edu> - 3.0-1
b59fd37
- Update by Fedora::App::MaintainerTools 0.006
Chris Weyl 74a0099
- PERL_INSTALL_ROOT => DESTDIR
b59fd37
- Updating to latest GA CPAN version (3.0)
Chris Weyl 74a0099
c401afe
* Fri Dec  4 2009 Stepan Kasal <skasal@redhat.com> - 1.0-3
b59fd37
- Rebuild against perl 5.10.1
c401afe
b59fd37
* Sun Sep 27 2009 Chris Weyl <cweyl@alumni.drew.edu> - 1.0-2
b59fd37
- Update summary (though now we deviate from upstream)
Chris Weyl 730df22
b59fd37
* Mon Aug 31 2009 Chris Weyl <cweyl@alumni.drew.edu> - 1.0-1
b59fd37
- Auto-update to 1.0 (by cpan-spec-update 0.01)
Chris Weyl 730df22
b59fd37
* Fri Aug 21 2009 Chris Weyl <cweyl@alumni.drew.edu> - 0.04-0
b59fd37
- Initial RPM packaging
b59fd37
- Generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.8)