2008-12-21 11:09:18 +00:00
|
|
|
#
|
2009-06-19 12:36:23 +00:00
|
|
|
# spec file for package perl-Compress-Raw-Zlib
|
2008-12-21 11:09:18 +00:00
|
|
|
#
|
2009-06-19 12:36:23 +00:00
|
|
|
# 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.
|
|
|
|
|
|
2008-12-21 11:09:18 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
|
2009-06-19 12:36:23 +00:00
|
|
|
#Distribution: %dist
|
|
|
|
|
#Packager: %packager
|
|
|
|
|
#Vendor: %vendor
|
|
|
|
|
|
2008-12-21 11:09:18 +00:00
|
|
|
Name: perl-Compress-Raw-Zlib
|
2009-06-19 12:36:23 +00:00
|
|
|
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
|
2008-12-21 11:09:18 +00:00
|
|
|
Summary: Perl interface to the zlib compression library
|
2011-05-06 08:22:58 +00:00
|
|
|
Version: 2.034
|
2008-12-21 11:09:18 +00:00
|
|
|
Release: 1
|
2011-05-06 08:22:58 +00:00
|
|
|
License: BSD3c and (GPL+ or Artistic)
|
2009-06-19 12:36:23 +00:00
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
|
Url: http://cpan.org/modules/by-module/Compress/
|
2010-06-25 21:25:59 +00:00
|
|
|
Source: http://search.cpan.org/CPAN/authors/id/P/PM/PMQS/%{cpan_name}-%{version}.tar.bz2
|
2008-12-21 11:09:18 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-12-03 13:58:23 +00:00
|
|
|
%{perl_requires}
|
2009-06-19 12:36:23 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
|
BuildRequires: perl(Test::Pod) >= 1.00
|
2011-01-12 08:34:22 +00:00
|
|
|
Provides: %{cpan_name}
|
2008-12-21 11:09:18 +00:00
|
|
|
|
|
|
|
|
%description
|
2009-06-19 12:36:23 +00:00
|
|
|
%{cpan_name} module for perl
|
2008-12-21 11:09:18 +00:00
|
|
|
|
2009-06-19 12:36:23 +00:00
|
|
|
This module provides a Perl interface to the zlib compression library.
|
2008-12-21 11:09:18 +00:00
|
|
|
|
2009-06-19 12:36:23 +00:00
|
|
|
Authors:
|
|
|
|
|
Paul Marquess <pmqs@cpan.org>
|
2008-12-21 11:09:18 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2009-06-19 12:36:23 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2008-12-21 11:09:18 +00:00
|
|
|
|
|
|
|
|
%build
|
2009-06-19 12:36:23 +00:00
|
|
|
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL
|
|
|
|
|
%{__make}
|
2008-12-21 11:09:18 +00:00
|
|
|
|
2009-06-19 12:36:23 +00:00
|
|
|
%check
|
|
|
|
|
%{__make} test
|
|
|
|
|
|
2008-12-21 11:09:18 +00:00
|
|
|
%install
|
2009-06-19 12:36:23 +00:00
|
|
|
%perl_make_install
|
2008-12-21 11:09:18 +00:00
|
|
|
%perl_process_packlist
|
2009-06-19 12:36:23 +00:00
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc Changes README
|
2008-12-21 11:09:18 +00:00
|
|
|
|
2010-06-25 22:37:48 +00:00
|
|
|
%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
|
|
|
|
|
|
2010-06-25 23:37:09 +00:00
|
|
|
# %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
|
2010-06-25 22:34:32 +00:00
|
|
|
fi
|
|
|
|
|
|
2008-12-21 11:09:18 +00:00
|
|
|
%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)
|