1
0
Files
perl-Compress-Raw-Zlib/perl-Compress-Raw-Zlib.spec

96 lines
2.7 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-Compress-Raw-Zlib
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
#Distribution: %dist
#Packager: %packager
#Vendor: %vendor
Name: perl-Compress-Raw-Zlib
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
Summary: Perl interface to the zlib compression library
Version: 2.034
Release: 1
License: BSD3c and (GPL+ or Artistic)
Group: Development/Libraries/Perl
Url: http://cpan.org/modules/by-module/Compress/
Source: http://search.cpan.org/CPAN/authors/id/P/PM/PMQS/%{cpan_name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Test::Pod) >= 1.00
Provides: %{cpan_name}
%description
%{cpan_name} module for perl
This module provides a Perl interface to the zlib compression library.
Authors:
Paul Marquess <pmqs@cpan.org>
%prep
%setup -q -n %{cpan_name}-%{version}
%build
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL
%{__make}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files -f %{name}.files
%defattr(-,root,root)
%doc Changes README
%post
## This will only have an effect if you run rpm -i --force,
## as /usr/share/man/man3/Compress::Raw::Zlib.3pm.gz
## is a direct file conflict with perl itself. bnc#617621
# %perl_archlib /usr/lib/perl5/5.10.0/i586-linux-thread-multi
if [ -f %{perl_archlib}/Compress/Raw/Zlib.pm ]; then
mv -f %{perl_archlib}/Compress/Raw/Zlib.pm \
%{perl_archlib}/Compress/Raw/Zlib.old.pm
fi
%changelog
* Mon Oct 08 2007 - anicka@suse.cz
- update to 2.006
* Makefile.PL: Added INSTALLDIRS directive to install as a core
module when built on a perl >= 5.9.
* Tue Jul 03 2007 - anicka@suse.cz
- update to 2.005
* Only include ppport.h when not being built with perl.
* Wed Mar 07 2007 - anicka@suse.cz
- update to 2.004
* Fixed lvalue substr issue
* Remove redundant code from Zlib.xs
* Mon Feb 26 2007 - anicka@suse.cz
- package created (initial version 2.003)