Spec clean-up

- Classify buildreqs by usage
- Drop legacy Group: tag
- Use %license where possible
- Drop %defattr, redundant since rpm 4.4
- Drop buildroot cleaning in %install section
- Don't need to remove empty directories from the buildroot
epel9
Paul Howarth 7 years ago
parent 62bce462eb
commit fa8e8fed5c

@ -1,18 +1,29 @@
Name: perl-DateTime-Calendar-Mayan Name: perl-DateTime-Calendar-Mayan
Version: 0.0601 Version: 0.0601
Release: 26%{?dist} Release: 27%{?dist}
License: GPL+ or Artistic License: GPL+ or Artistic
Group: Development/Libraries
Summary: Mayan Long Count Calendar Summary: Mayan Long Count Calendar
Url: https://metacpan.org/release/DateTime-Calendar-Mayan URL: https://metacpan.org/release/DateTime-Calendar-Mayan
Source: https://cpan.metacpan.org/authors/id/J/JH/JHOBLITT/DateTime-Calendar-Mayan-%{version}.tar.gz Source0: https://cpan.metacpan.org/modules/by-module/DateTime/DateTime-Calendar-Mayan-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
# Module Build
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: perl-generators BuildRequires: perl-generators
BuildRequires: perl(DateTime) >= 0.15 BuildRequires: perl-interpreter
BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Module::Build::Compat) BuildRequires: perl(Module::Build::Compat)
# Runtime
BuildRequires: perl(constant)
BuildRequires: perl(DateTime) >= 0.15
BuildRequires: perl(Params::Validate) >= 0.64 BuildRequires: perl(Params::Validate) >= 0.64
BuildRequires: perl(strict)
BuildRequires: perl(vars)
# Test Suite
BuildRequires: perl(DateTime::Duration)
BuildRequires: perl(Test::More) BuildRequires: perl(Test::More)
BuildRequires: perl(warnings)
# Dependencies
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%description %description
@ -28,22 +39,33 @@ perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
rm -rf %{buildroot}
make pure_install DESTDIR=%{buildroot} make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';' find %{buildroot} -type f -name .packlist -delete
find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null %{_fixperms} -c %{buildroot}
%{_fixperms} %{buildroot}
%check %check
make test make test
%files %files
%defattr(-,root,root,-) %if 0%{?_licensedir:1}
%doc README Changes LICENSE Todo %license LICENSE
%else
%doc LICENSE
%endif
%doc Changes README Todo
%{perl_vendorlib}/DateTime/ %{perl_vendorlib}/DateTime/
%{_mandir}/man3/DateTime::Calendar::Mayan.3pm* %{_mandir}/man3/DateTime::Calendar::Mayan.3*
%changelog %changelog
* Thu Jul 5 2018 Paul Howarth <paul@city-fan.org> - 0.0601-27
- Spec clean-up
- Classify buildreqs by usage
- Drop legacy Group: tag
- Use %%license where possible
- Drop %%defattr, redundant since rpm 4.4
- Drop buildroot cleaning in %%install section
- Don't need to remove empty directories from the buildroot
* Fri Jun 29 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.0601-26 * Fri Jun 29 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.0601-26
- Perl 5.28 rebuild - Perl 5.28 rebuild

Loading…
Cancel
Save