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