- Modernize spec
f38
Petr Šabata 10 years ago
parent 76a26f5c6a
commit 7384a50b35

1
.gitignore vendored

@ -1 +1,2 @@
B-Compiling-0.02.tar.gz B-Compiling-0.02.tar.gz
/B-Compiling-0.04.tar.gz

@ -1,15 +1,24 @@
Name: perl-B-Compiling Name: perl-B-Compiling
Version: 0.02 Version: 0.04
Release: 14%{?dist} Release: 1%{?dist}
Summary: Expose PL_compiling to perl Summary: Expose PL_compiling to perl
License: GPL+ or Artistic License: GPL+ or Artistic
Group: Development/Libraries Group: Development/Libraries
URL: http://search.cpan.org/dist/B-Compiling/ URL: http://search.cpan.org/dist/B-Compiling/
Source0: http://www.cpan.org/authors/id/F/FL/FLORA/B-Compiling-%{version}.tar.gz 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(Sub::Exporter)
BuildRequires: perl(XSLoader)
# Tests only
BuildRequires: perl(Test::More) 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} %{?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} %setup -q -n B-Compiling-%{version}
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" NO_PACKLIST
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
make pure_install DESTDIR=$RPM_BUILD_ROOT make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} +
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; %{_fixperms} %{buildroot}/*
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/*
%check %check
make test make test
%files %files
%defattr(-,root,root,-)
%doc Changes README %doc Changes README
%{perl_vendorarch}/auto/* %{perl_vendorarch}/auto/*
%{perl_vendorarch}/B* %{perl_vendorarch}/B*
%{_mandir}/man3/* %{_mandir}/man3/*
%changelog %changelog
* Tue Nov 11 2014 Petr Šabata <contyk@redhat.com> - 0.04-1
- 0.04 bump
- Modernize spec
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.02-14 * Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.02-14
- Perl 5.20 rebuild - Perl 5.20 rebuild

@ -1 +1 @@
fce284d7a9914c9847694960235db72a B-Compiling-0.02.tar.gz fe70646c681b8efe13552f7a672e8799 B-Compiling-0.04.tar.gz

Loading…
Cancel
Save