[perl-B-Compiling] 0.04 bump
Petr Šabata
psabata at fedoraproject.org
Tue Nov 11 10:47:07 UTC 2014
commit 7384a50b35dadd5814be18aa3d22094ea8f9acbc
Author: Petr Šabata <contyk at redhat.com>
Date: Tue Nov 11 11:46:55 2014 +0100
0.04 bump
- Modernize spec
.gitignore | 1 +
perl-B-Compiling.spec | 34 +++++++++++++++++++++-------------
sources | 2 +-
3 files changed, 23 insertions(+), 14 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 58ed56d..3ca8dcd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
B-Compiling-0.02.tar.gz
+/B-Compiling-0.04.tar.gz
diff --git a/perl-B-Compiling.spec b/perl-B-Compiling.spec
index 8db1e25..3b96b6f 100644
--- a/perl-B-Compiling.spec
+++ b/perl-B-Compiling.spec
@@ -1,15 +1,24 @@
Name: perl-B-Compiling
-Version: 0.02
-Release: 14%{?dist}
+Version: 0.04
+Release: 1%{?dist}
Summary: Expose PL_compiling to perl
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/B-Compiling/
Source0: http://www.cpan.org/authors/id/F/FL/FLORA/B-Compiling-%{version}.tar.gz
-BuildRequires: perl(ExtUtils::MakeMaker)
+# Build
+BuildRequires: perl
+BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
+BuildRequires: perl(strict)
+BuildRequires: perl(warnings)
+# Runtime
+BuildRequires: perl(B)
BuildRequires: perl(Sub::Exporter)
+BuildRequires: perl(XSLoader)
+# Tests only
BuildRequires: perl(Test::More)
-Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+BuildRequires: perl(Test::More)
+Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
%{?perl_default_filter}
@@ -20,29 +29,28 @@ This module exposes the perl interpreter's PL_compiling variable to perl.
%setup -q -n B-Compiling-%{version}
%build
-%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
+perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" NO_PACKLIST
make %{?_smp_mflags}
%install
-make pure_install DESTDIR=$RPM_BUILD_ROOT
-
-find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
-find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
-find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
-
-%{_fixperms} $RPM_BUILD_ROOT/*
+make pure_install DESTDIR=%{buildroot}
+find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} +
+%{_fixperms} %{buildroot}/*
%check
make test
%files
-%defattr(-,root,root,-)
%doc Changes README
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/B*
%{_mandir}/man3/*
%changelog
+* Tue Nov 11 2014 Petr Šabata <contyk at redhat.com> - 0.04-1
+- 0.04 bump
+- Modernize spec
+
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik at redhat.com> - 0.02-14
- Perl 5.20 rebuild
diff --git a/sources b/sources
index 8e076db..4a8d52c 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-fce284d7a9914c9847694960235db72a B-Compiling-0.02.tar.gz
+fe70646c681b8efe13552f7a672e8799 B-Compiling-0.04.tar.gz
More information about the scm-commits
mailing list