86 lines
2.4 KiB
RPMSpec
86 lines
2.4 KiB
RPMSpec
Name: perl-Compress-Raw-Zlib
|
|
Epoch: 0
|
|
Version: 2.030
|
|
Release: 2%{?dist}
|
|
Summary: Low-Level Interface to zlib compression library
|
|
License: GPL+ or Artistic
|
|
Group: Development/Libraries
|
|
URL: http://search.cpan.org/dist/Compress-Raw-Zlib/
|
|
Source0: http://www.cpan.org/authors/id/P/PM/PMQS/Compress-Raw-Zlib-%{version}.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
BuildRequires: zlib-devel
|
|
Obsoletes: perl-Compress-Raw-Zlib <= 0:2.023-112
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
%description
|
|
The Compress::Raw::Zlib module provides a Perl interface to the zlib
|
|
compression library, which is used by IO::Compress::Zlib.
|
|
|
|
%prep
|
|
%setup -q -n Compress-Raw-Zlib-%{version}
|
|
%{?filter_setup:
|
|
%filter_from_provides /Zlib.so/d
|
|
%?perl_default_filter
|
|
}
|
|
|
|
%build
|
|
BUILD_ZLIB=False
|
|
OLD_ZLIB=False
|
|
ZLIB_LIB=%{_libdir}
|
|
ZLIB_INCLUDE=%{_includedir}
|
|
export BUILD_ZLIB OLD_ZLIB ZLIB_LIB ZLIB_INCLUDE
|
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=perl OPTIMIZE="$RPM_OPT_FLAGS"
|
|
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 -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
|
|
make test
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc Changes README
|
|
%{perl_archlib}/auto/*
|
|
%{perl_archlib}/Compress*
|
|
%{_mandir}/man3/*
|
|
|
|
%changelog
|
|
* Wed Dec 15 2010 Marcela Maslanova <mmaslano@redhat.com> - 0:2.030-2
|
|
- 661697 rebuild for fixing problems with vendorach/lib
|
|
|
|
* Mon Jul 26 2010 Petr Sabata <psabata@redhat.com> - 0:2.030-1
|
|
- 2.030 version bump
|
|
|
|
* Thu May 06 2010 Marcela Maslanova <mmaslano@redhat.com> - 0:2.027-1
|
|
- update
|
|
|
|
* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 0:2.024-3
|
|
- Mass rebuild with perl-5.12.0
|
|
|
|
* Mon Mar 29 2010 Marcela Mašláňová <mmaslano@redhat.com> 2.024-2
|
|
- split again from main package for updated version
|
|
|
|
* Tue Jul 17 2007 Robin Norwood <rnorwood@redhat.com> - 2.005-2
|
|
- Bump release to beat F-7 version
|
|
|
|
* Sun Jul 01 2007 Robin Norwood <rnorwood@redhat.com> - 2.005-1
|
|
- update to 2.005.
|
|
|
|
* Tue Jun 05 2007 Robin Norwood <rnorwood@redhat.com> - 2.004-1
|
|
- Initial build from CPAN
|
|
|