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

78 lines
2.3 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-Compress-Raw-Zlib
#
# Copyright (c) 2015 SUSE LINUX 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/
#
%bcond_with pod
Name: perl-Compress-Raw-Zlib
%define cpan_name Compress-Raw-Zlib
Summary: Perl interface to the zlib compression library
License: Zlib and (GPL-1.0+ or Artistic-1.0)
Group: Development/Libraries/Perl
Version: 2.069
Release: 0
Url: http://cpan.org/modules/by-module/Compress/
Source: http://search.cpan.org/CPAN/authors/id/P/PM/PMQS/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
%if 0%{?with pod}
BuildRequires: perl(Test::Pod) >= 1.00
%endif
%{perl_requires}
%description
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_).
%prep
%setup -q -n %{cpan_name}-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%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
%clean
%{__rm} -rf %{buildroot}
%files -f %{name}.files
%defattr(644,root,root,755)
%doc Changes README
%changelog