Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
c3031ed242 | ||
|
b3d10d0897 |
1
.gitignore
vendored
1
.gitignore
vendored
@ -10,3 +10,4 @@ Compress-Bzip2-2.09.tar.gz
|
||||
/Compress-Bzip2-2.22.tar.gz
|
||||
/Compress-Bzip2-2.24.tar.gz
|
||||
/Compress-Bzip2-2.25.tar.gz
|
||||
/Compress-Bzip2-2.26.tar.gz
|
||||
|
@ -1,8 +1,10 @@
|
||||
# Run optional tests
|
||||
%bcond_without perl_Compress_Bzip2_enables_optional_test
|
||||
|
||||
Name: perl-Compress-Bzip2
|
||||
Version: 2.25
|
||||
Version: 2.26
|
||||
Release: 1%{?dist}
|
||||
Summary: Interface to Bzip2 compression library
|
||||
Group: Development/Libraries
|
||||
# bzlib-src/win-tst-dlltest.c (unbundled): Public Domain
|
||||
# bzlib-src/LICENSE (unbundled): BSD
|
||||
# bzlib-src/manual.ps (unbundled): GPL+ with exception
|
||||
@ -11,7 +13,6 @@ License: GPL+ or Artistic
|
||||
URL: http://search.cpan.org/dist/Compress-Bzip2/
|
||||
Source0: http://www.cpan.org/authors/id/R/RU/RURBAN/Compress-Bzip2-%{version}.tar.gz
|
||||
BuildRequires: bzip2-devel >= 1.0.5
|
||||
BuildRequires: coreutils
|
||||
BuildRequires: findutils
|
||||
BuildRequires: gcc
|
||||
BuildRequires: make
|
||||
@ -41,7 +42,7 @@ BuildRequires: perl(Cwd)
|
||||
BuildRequires: perl(Test::More)
|
||||
# Test::Kwalitee not used
|
||||
# Optional tests:
|
||||
%if !%{defined perl_bootstrap}
|
||||
%if !%{defined perl_bootstrap} && %{with perl_Compress_Bzip2_enables_optional_test}
|
||||
BuildRequires: perl(Test::LeakTrace)
|
||||
%endif
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
@ -60,19 +61,18 @@ the preferred IO::Compress::Bzip2 instead.
|
||||
%prep
|
||||
%setup -q -n Compress-Bzip2-%{version}
|
||||
# Remove bundled bzip2 library
|
||||
find bzlib-src -mindepth 1 -type f \! -name 'sample*' -exec rm -rf {} +
|
||||
find bzlib-src -mindepth 1 -type f \! -name 'sample*' -delete
|
||||
sed -i -e '/^bzlib-src\//d' MANIFEST
|
||||
find bzlib-src -type f >>MANIFEST
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
|
||||
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 OPTIMIZE="$RPM_OPT_FLAGS"
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
||||
find $RPM_BUILD_ROOT -type f -name .packlist -delete
|
||||
find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -delete
|
||||
chmod -R u+w $RPM_BUILD_ROOT/*
|
||||
make pure_install DESTDIR=%{buildroot}
|
||||
find %{buildroot} -type f -name '*.bs' -empty -delete
|
||||
%{_fixperms} %{buildroot}
|
||||
|
||||
%check
|
||||
make test
|
||||
@ -85,6 +85,9 @@ make test
|
||||
%{_mandir}/man3/*.3pm*
|
||||
|
||||
%changelog
|
||||
* Tue Apr 11 2017 Petr Pisar <ppisar@redhat.com> - 2.26-1
|
||||
- 2.26 bump
|
||||
|
||||
* Mon Nov 14 2016 Petr Pisar <ppisar@redhat.com> - 2.25-1
|
||||
- 2.25 bump
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user