File perl-Compress-Bzip2.spec of Package perl-Compress-Bzip2
#
# spec file for package perl-Compress-Bzip2
#
# Copyright (c) 2013 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/
#
Name: perl-Compress-Bzip2
%define cpan_name Compress-Bzip2
Summary: Interface to Bzip2 compression library
License: GPL-1.0+ or Artistic-1.0
Group: Development/Libraries/Perl
Version: 2.16
Release: 0
Url: http://cpan.org/modules/by-module/Compress/
Source: %{cpan_name}-%{version}.tar.gz
Patch: %{cpan_name}-2.09.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Carp)
BuildRequires: perl(Config)
BuildRequires: perl(Fcntl)
BuildRequires: perl(File::Copy)
BuildRequires: perl(File::Spec)
BuildRequires: perl(Getopt::Std)
BuildRequires: perl(Test::More)
# other not perl || perl-base
BuildRequires: libbz2-devel
Requires: bzip2
%description
The Compress::Bzip2 module provides a Perl interface to the Bzip2 compression
library (see "AUTHOR" for details about where to get Bzip2). A relevant subset
of the functionality provided by Bzip2 is available in Compress::Bzip2.
%prep
%setup -q -n %{cpan_name}-%{version}
%patch -p0
%build
#BUILD_BZLIB=0
BZLIB_INCLUDE="%{_includedir}"
BZLIB_LIB="%{_libdir}"
BZLIB_BIN="%{_bindir}"
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall" LDDLFLAGS=" -shared -L%{_libdir}" LDFLAGS=" -L%{_libdir}"
%{__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 COPYING Changes README
%changelog