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

Loading…
Cancel
Save