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
|
|
|
#
|
2012-01-31 10:28:59 +00:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products 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/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: perl-Compress-Raw-Zlib
|
2012-01-31 10:28:59 +00:00
|
|
|
Version: 2.048
|
|
|
|
|
Release: 0
|
2011-10-31 08:25:45 +00:00
|
|
|
%define cpan_name Compress-Raw-Zlib
|
|
|
|
|
Summary: Perl interface to the zlib compression library
|
2012-01-31 10:28:59 +00:00
|
|
|
License: Zlib and (GPL-1.0+ or Artistic-1.0)
|
2011-10-31 08:25:45 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2012-01-31 10:28:59 +00:00
|
|
|
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
|
2009-06-19 12:36:23 +00:00
|
|
|
BuildRequires: perl
|
2011-10-31 08:25:45 +00:00
|
|
|
BuildRequires: perl-macros
|
2012-01-31 10:28:59 +00:00
|
|
|
BuildRequires: perl(Test::Pod) >= 1.00
|
2011-01-12 08:34:22 +00:00
|
|
|
Provides: %{cpan_name}
|
2011-10-31 08:25:45 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
%{perl_requires}
|
2011-06-21 08:05:02 +00:00
|
|
|
|
2008-12-21 11:09:18 +00:00
|
|
|
%description
|
2011-06-21 08:05:02 +00:00
|
|
|
|
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
|
|
|
|
|
|
|
|
%prep
|
2009-06-19 12:36:23 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2008-12-21 11:09:18 +00:00
|
|
|
|
|
|
|
|
%build
|
2011-10-31 08:25:45 +00:00
|
|
|
CFLAGS="%{optflags}" perl Makefile.PL
|
|
|
|
|
make
|
2011-06-21 08:05:02 +00:00
|
|
|
|
2009-06-19 12:36:23 +00:00
|
|
|
%check
|
2011-10-31 08:25:45 +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
|
|
|
|
|
|
|
|
|
|
%clean
|
2011-10-31 08:25:45 +00:00
|
|
|
rm -rf %{buildroot}
|
2011-06-21 08:05:02 +00:00
|
|
|
|
2009-06-19 12:36:23 +00:00
|
|
|
%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
|
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
|
|
|
|
|
|
2008-12-21 11:09:18 +00:00
|
|
|
%changelog
|