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
|
|
|
#
|
2015-10-06 11:33:37 +00:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-06-21 08:05:02 +00:00
|
|
|
#
|
2009-06-19 12:36:23 +00:00
|
|
|
# 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/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2012-06-25 09:53:05 +00:00
|
|
|
%bcond_with pod
|
2012-02-20 12:26:39 +00:00
|
|
|
|
2008-12-21 11:09:18 +00:00
|
|
|
Name: perl-Compress-Raw-Zlib
|
2012-06-25 09:53:05 +00:00
|
|
|
%define cpan_name Compress-Raw-Zlib
|
2011-10-31 08:25:45 +00:00
|
|
|
Summary: Perl interface to the zlib compression library
|
2012-06-25 09:53:05 +00:00
|
|
|
License: Zlib and (GPL-1.0+ or Artistic-1.0)
|
2012-02-20 12:26:39 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2015-10-06 11:33:37 +00:00
|
|
|
Version: 2.069
|
2012-06-25 09:53:05 +00:00
|
|
|
Release: 0
|
|
|
|
|
Url: http://cpan.org/modules/by-module/Compress/
|
2011-06-21 08:05:02 +00:00
|
|
|
Source: http://search.cpan.org/CPAN/authors/id/P/PM/PMQS/%{cpan_name}-%{version}.tar.gz
|
2015-10-06 11:33:37 +00:00
|
|
|
Source1: cpanspec.yml
|
2012-06-25 09:53:05 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2009-06-19 12:36:23 +00:00
|
|
|
BuildRequires: perl
|
2012-02-20 12:26:39 +00:00
|
|
|
BuildRequires: perl-macros
|
2012-06-25 09:53:05 +00:00
|
|
|
%if 0%{?with pod}
|
|
|
|
|
BuildRequires: perl(Test::Pod) >= 1.00
|
|
|
|
|
%endif
|
2011-10-31 08:25:45 +00:00
|
|
|
%{perl_requires}
|
2011-06-21 08:05:02 +00:00
|
|
|
|
2008-12-21 11:09:18 +00:00
|
|
|
%description
|
2012-06-25 09:53:05 +00:00
|
|
|
The _Compress::Raw::Zlib_ module provides a Perl interface to the _zlib_
|
|
|
|
|
compression library (see the /AUTHOR manpage for details about where to get
|
|
|
|
|
_zlib_).
|
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
|
2012-06-25 09:53:05 +00:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
|
|
|
|
%{__make} %{?_smp_mflags}
|
2011-06-21 08:05:02 +00:00
|
|
|
|
2009-06-19 12:36:23 +00:00
|
|
|
%check
|
2012-06-25 09:53:05 +00:00
|
|
|
%{__make} test
|
2011-06-21 08:05:02 +00:00
|
|
|
|
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
|
|
|
|
|
|
2010-06-25 22:37:48 +00:00
|
|
|
%post
|
2011-10-31 08:25:45 +00:00
|
|
|
## This will only have an effect if you run rpm -i --force,
|
2010-06-25 22:37:48 +00:00
|
|
|
## as /usr/share/man/man3/Compress::Raw::Zlib.3pm.gz
|
|
|
|
|
## is a direct file conflict with perl itself. bnc#617621
|
|
|
|
|
|
2011-05-11 08:49:28 +00:00
|
|
|
# %%perl_archlib /usr/lib/perl5/5.10.0/i586-linux-thread-multi
|
2011-10-31 08:25:45 +00:00
|
|
|
if [ -f %{perl_archlib}/Compress/Raw/Zlib.pm ]; then
|
2010-06-25 23:37:09 +00:00
|
|
|
mv -f %{perl_archlib}/Compress/Raw/Zlib.pm \
|
|
|
|
|
%{perl_archlib}/Compress/Raw/Zlib.old.pm
|
2010-06-25 22:34:32 +00:00
|
|
|
fi
|
|
|
|
|
|
2012-06-25 09:53:05 +00:00
|
|
|
%clean
|
|
|
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
|
%defattr(644,root,root,755)
|
|
|
|
|
%doc Changes README
|
|
|
|
|
|
2008-12-21 11:09:18 +00:00
|
|
|
%changelog
|