Update to 3.74

- New upstream release 3.74
  - The generated README file was empty
- Use %license where possible
This commit is contained in:
Paul Howarth 2015-06-29 16:04:14 +01:00
parent bdb2a3ea6f
commit b4481834cf
2 changed files with 21 additions and 10 deletions

View File

@ -1,6 +1,6 @@
# Suspect that upstream prefers single-decimal versions
%global cpanversion 3.73
%global rpmversion 3.7.3
%global cpanversion 3.74
%global rpmversion 3.7.4
# This arch-specific package has no binaries and generates no debuginfo
%global debug_package %{nil}
@ -8,13 +8,17 @@
Name: perl-common-sense
Summary: "Common sense" Perl defaults
Version: %{rpmversion}
Release: 5%{?dist}
Release: 1%{?dist}
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/common-sense
Source0: http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/common-sense-%{cpanversion}.tar.gz
Patch1: common-sense-3.71-podenc.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: make
BuildRequires: perl
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: /usr/bin/pod2man
BuildRequires: /usr/bin/pod2text
@ -49,9 +53,6 @@ It's supposed to be mostly the same, with much lower memory usage, as:
# Specify POD encoding
%patch1
# Pod moved from sense.pm to sense.pod, resulting in empty upstream README file
pod2text sense.pod > README
%build
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
@ -62,7 +63,7 @@ make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
%{_fixperms} %{buildroot}
# Have a non-empty manpage too
# Have a non-empty manpage
pod2man sense.pod > %{buildroot}%{_mandir}/man3/common::sense.3pm
%check
@ -72,13 +73,23 @@ make test
rm -rf %{buildroot}
%files
%doc LICENSE Changes README t/
%if 0%{?_licensedir:1}
%license LICENSE
%else
%doc LICENSE
%endif
%doc Changes README t/
%dir %{perl_vendorarch}/common/
%{perl_vendorarch}/common/sense.pm
%doc %{perl_vendorarch}/common/sense.pod
%{_mandir}/man3/common::sense.3pm*
%{_mandir}/man3/common::sense.3*
%changelog
* Mon Jun 29 2015 Paul Howarth <paul@city-fan.org> - 3.7.4-1
- Update to 3.74
- The generated README file was empty
- Use %%license where possible
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7.3-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

View File

@ -1 +1 @@
6da7455a43ab60ed21c2a5e3b3ddeda8 common-sense-3.73.tar.gz
35b273147200c4c95eef7816f83e572d common-sense-3.74.tar.gz