Bootstrapping done

- Bootstrapping done
- Simplify find command using -delete
- File permissions from tarball no longer need fixing
- Drop redundant %{?perl_default_filter}
This commit is contained in:
Paul Howarth 2016-09-12 10:26:16 +01:00
parent e544cc04c6
commit 4a2e98c443
1 changed files with 12 additions and 10 deletions

View File

@ -1,8 +1,6 @@
%global perl_bootstrap 1
Name: perl-Object-InsideOut
Version: 4.02
Release: 5%{?dist}
Release: 6%{?dist}
Summary: Comprehensive inside-out object support module
Group: Development/Libraries
License: GPL+ or Artistic
@ -37,13 +35,13 @@ BuildRequires: perl(Test::More) >= 0.98
BuildRequires: perl(threads)
BuildRequires: perl(Thread::Queue)
BuildRequires: perl(threads::shared)
# Optional tests:
# Optional tests
BuildRequires: perl(Storable)
# Dependencies
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(Data::Dumper) >= 2.131
Requires: perl(Scalar::Util) >= 1.23
%{?perl_default_filter}
# Remove underspecified dependencies
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}perl\\(Object::InsideOut\\)$
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Scalar::Util\\)
@ -64,8 +62,6 @@ to the object's ID.
%prep
%setup -q -n Object-InsideOut-%{version}
# fix permissions
find lib -type f -print0 | xargs -0 chmod 0644
%build
perl Makefile.PL INSTALLDIRS=vendor
@ -73,19 +69,25 @@ make %{?_smp_mflags}
%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
%{_fixperms} %{buildroot}/*
find %{buildroot} -type f -name .packlist -delete
%{_fixperms} %{buildroot}
%check
make test
%files
%doc examples Changes README
%doc examples/ Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*.3*
%changelog
* Mon Sep 12 2016 Paul Howarth <paul@city-fan.org> - 4.02-6
- Bootstrapping done
- Simplify find command using -delete
- File permissions from tarball no longer need fixing
- Drop redundant %%{?perl_default_filter}
* Mon Sep 12 2016 Paul Howarth <paul@city-fan.org> - 4.02-5
- Bootstrap build for Math::Random::MT::Auto on aarch64