Fix FTBFS due to missing buildreq perl-devel
- Fix FTBFS due to missing buildreq perl-devel
- Simplify find command using -empty and -delete
- Use %{_fixperms} macro rather than our own chmod incantation
- Make %files list more explicit
This commit is contained in:
parent
9f04968526
commit
43cb0abeb2
@ -1,15 +1,20 @@
|
||||
Name: perl-Digest-CRC
|
||||
Version: 0.21
|
||||
Release: 4%{?dist}
|
||||
Release: 5%{?dist}
|
||||
Summary: Generic CRC functions
|
||||
Group: Development/Libraries
|
||||
License: Public Domain
|
||||
URL: http://search.cpan.org/dist/Digest-CRC
|
||||
Source0: http://search.cpan.org/CPAN/authors/id/O/OL/OLIMAUL/Digest-CRC-%{version}.tar.gz
|
||||
# Build
|
||||
BuildRequires: coreutils
|
||||
BuildRequires: findutils
|
||||
BuildRequires: gcc
|
||||
BuildRequires: make
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-devel
|
||||
BuildRequires: perl(Config)
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
||||
# Runtime
|
||||
BuildRequires: perl(DynaLoader)
|
||||
BuildRequires: perl(Exporter)
|
||||
@ -18,6 +23,7 @@ BuildRequires: perl(Symbol)
|
||||
BuildRequires: perl(vars)
|
||||
# Tests only
|
||||
BuildRequires: perl(Fcntl)
|
||||
# Dependencies
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
|
||||
Requires: perl(DynaLoader)
|
||||
Requires: perl(Symbol)
|
||||
@ -35,19 +41,25 @@ make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
make pure_install DESTDIR=%{buildroot}
|
||||
find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} +
|
||||
chmod -R u+w %{buildroot}/*
|
||||
find %{buildroot} -type f -name '*.bs' -empty -delete
|
||||
%{_fixperms} %{buildroot}
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%files
|
||||
%doc Changes README
|
||||
%{perl_vendorarch}/auto/*
|
||||
%{perl_vendorarch}/Digest
|
||||
%{_mandir}/man3/*.3*
|
||||
%{perl_vendorarch}/auto/Digest/
|
||||
%{perl_vendorarch}/Digest/
|
||||
%{_mandir}/man3/Digest::CRC.3*
|
||||
|
||||
%changelog
|
||||
* Tue Apr 19 2016 Paul Howarth <paul@city-fan.org> - 0.21-5
|
||||
- Fix FTBFS due to missing buildreq perl-devel
|
||||
- Simplify find command using -empty and -delete
|
||||
- Use %%{_fixperms} macro rather than our own chmod incantation
|
||||
- Make %%files list more explicit
|
||||
|
||||
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.21-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user