Update to 3.74
- New upstream release 3.74 - The generated README file was empty - Use %license where possible
This commit is contained in:
parent
bdb2a3ea6f
commit
b4481834cf
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user