Blame SPECS/perl-common-sense.spec

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