2.034 bump, some cleanup, fixing requirements
This commit is contained in:
parent
1e63fe1af9
commit
78f2ca0e88
|
@ -1 +1,2 @@
|
|||
/IO-Compress-2.033.tar.gz
|
||||
/IO-Compress-2.034.tar.gz
|
||||
|
|
|
@ -2,19 +2,29 @@
|
|||
%{?perl_default_filter}
|
||||
|
||||
Name: perl-IO-Compress
|
||||
Version: 2.033
|
||||
Release: 2%{?dist}
|
||||
Version: 2.034
|
||||
Release: 1%{?dist}
|
||||
Summary: Read and write compressed data
|
||||
License: GPL+ or Artistic
|
||||
Group: Development/Libraries
|
||||
URL: http://search.cpan.org/dist/IO-Compress/
|
||||
Source0: http://www.cpan.org/authors/id/P/PM/PMQS/IO-Compress-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildArch: noarch
|
||||
BuildRequires: perl(Test::Pod), perl(Test::NoWarnings)
|
||||
Requires: perl(Exporter)
|
||||
BuildRequires: perl(bytes)
|
||||
BuildRequires: perl(constant)
|
||||
BuildRequires: perl(Compress::Raw::Bzip2) >= %{version}
|
||||
BuildRequires: perl(Compress::Raw::Zlib) >= %{version}
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl(File::Copy)
|
||||
BuildRequires: perl(File::GlobMapper)
|
||||
BuildRequires: perl(IO::File)
|
||||
BuildRequires: perl(IO::Handle)
|
||||
BuildRequires: perl(IO::Seekable)
|
||||
BuildRequires: perl(Scalar::Util)
|
||||
BuildRequires: perl(Symbol)
|
||||
BuildRequires: perl(Test::Pod) >= 1.00, perl(Test::NoWarnings)
|
||||
BuildRequires: perl(Test::Builder), perl(Test::More), perl(Config)
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
# this is wrapper for different Compress modules
|
||||
Provides: perl-Compress-Zlib = %{version}-%{release}
|
||||
|
@ -47,11 +57,9 @@ included with the IO-Compress distribution:
|
|||
# Remove spurious exec permissions
|
||||
chmod -x lib/IO/Uncompress/{Adapter/Identity,RawInflate}.pm
|
||||
find examples -type f -exec chmod -x {} +
|
||||
|
||||
# Fix shellbangs in examples
|
||||
%{__perl} -pi -e 's|^#!/usr/local/bin/perl\b|#!%{__perl}|' examples/io/anycat \
|
||||
examples/io/bzip2/* examples/io/gzip/* examples/compress-zlib/*
|
||||
|
||||
# Include IO::Compress::FAQ (#634722, CPAN RT#61402)
|
||||
ln pod/FAQ.pod lib/IO/Compress/
|
||||
|
||||
|
@ -60,22 +68,17 @@ ln pod/FAQ.pod lib/IO/Compress/
|
|||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
||||
find $RPM_BUILD_ROOT -type f -name .packlist -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 .packlist -exec rm -f {} \;
|
||||
find %{buildroot} -depth -type d -exec rmdir {} \; 2>/dev/null
|
||||
%{_fixperms} %{buildroot}
|
||||
|
||||
%check
|
||||
# Build using "--without long_tests" to avoid very long tests
|
||||
# (full suite can take nearly an hour on an i7)
|
||||
make test %{?with_long_tests:COMPRESS_ZLIB_RUN_ALL=1}
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc Changes README examples/*
|
||||
%{perl_privlib}/Compress/
|
||||
%{perl_privlib}/File/
|
||||
|
@ -86,6 +89,11 @@ rm -rf $RPM_BUILD_ROOT
|
|||
%{_mandir}/man3/IO::Uncompress::*.3pm*
|
||||
|
||||
%changelog
|
||||
* Tue May 3 2011 Petr Sabata <psabata@redhat.com> - 2.034-1
|
||||
- 2.034 bump
|
||||
- Buildroot and defattr cleanup
|
||||
- Correcting BRs/Rs
|
||||
|
||||
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.033-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||
|
||||
|
|
Loading…
Reference in New Issue