Fix FTBFS due to missing buildreq perl-devel

- Fix FTBFS due to missing buildreq perl-devel
- Simplify find command using -empty and -delete
- Make %files list more explicit
f38
Paul Howarth 9 years ago
parent fa3a40c53b
commit 9b6454c003

@ -1,19 +1,20 @@
Name: perl-autobox
Version: 2.83
Release: 4%{?dist}
Release: 5%{?dist}
Summary: Call methods on native types
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/autobox/
Source0: http://www.cpan.org/authors/id/C/CH/CHOCOLATE/autobox-%{version}.tar.gz
BuildRequires: perl
BuildRequires: perl-devel
BuildRequires: perl(Config)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
# Run-time:
BuildRequires: perl(Carp)
# Data::Dumper not used at tests
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(Exporter)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Scope::Guard) >= 0.20
@ -25,11 +26,12 @@ BuildRequires: perl(FindBin)
BuildRequires: perl(lib)
BuildRequires: perl(Test::More)
BuildRequires: perl(vars)
# Dependencies:
Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
Requires: perl(Data::Dumper)
Requires: perl(Scope::Guard) >= 0.20
%{?perl_default_filter}
# Remove under-specified dependencies
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(Scope::Guard\\)$
@ -47,19 +49,26 @@ make %{?_smp_mflags}
%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} +
%{_fixperms} %{buildroot}/*
find %{buildroot} -type f -name '*.bs' -empty -delete
%{_fixperms} %{buildroot}
%check
make test
%files
%doc Changes README
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/autobox*
%{_mandir}/man3/*
%{perl_vendorarch}/auto/autobox/
%{perl_vendorarch}/autobox/
%{perl_vendorarch}/autobox.pm
%doc %{perl_vendorarch}/autobox.pod
%{_mandir}/man3/autobox.3*
%changelog
* Tue Apr 19 2016 Paul Howarth <paul@city-fan.org> - 2.83-5
- Fix FTBFS due to missing buildreq perl-devel
- Simplify find command using -empty and -delete
- Make %%files list more explicit
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.83-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

Loading…
Cancel
Save