File mingw32-bzip2.spec of Package mingw32-bzip2
#
# spec file for package mingw32-bzip2
#
# Copyright (c) 2018 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/
#
Name: mingw32-bzip2
Version: 1.0.8
Release: 0
Summary: MinGW port of bzip2 file compression utility
License: BSD-3-Clause
Group: Development/Libraries/C and C++
URL: https://sourceware.org/bzip2
Source0: https://sourceware.org/pub/bzip2/bzip2-%{version}.tar.gz
#!BuildIgnore: post-build-checks
# PATCH-FEATURE-OPENSUSE bzip2-1.0.6-autoconfiscated.patch sbrabec@suse.cz -- Convert to a standard autoconf based package.
#Patch0: ftp://ftp.suse.com/pub/people/sbrabec/bzip2/for_downstream/bzip2-1.0.6.2-autoconfiscated.patch
Patch0: bzip2-1.0.6.2-autoconfiscated.patch
BuildRequires: automake
BuildRequires: autoconf
BuildRequires: libtool
BuildRequires: mingw32-cross-binutils
BuildRequires: mingw32-cross-gcc
BuildRequires: mingw32-filesystem >= 26
%_mingw32_package_header_debug
BuildArch: noarch
%description
Bzip2 is a freely available, patent-free, high quality data compressor.
Bzip2 compresses files to within 10 to 15 percent of the capabilities
of the best techniques available. However, bzip2 has the added benefit
of being approximately two times faster at compression and six times
faster at decompression than those techniques. Bzip2 is not the
fastest compression utility, but it does strike a balance between speed
and compression capability.
This package contains development tools and libraries for use when
cross-compiling Windows software.
%package -n mingw32-libbz2-1
Summary: MinGW port of bzip2 file compression utility
Group: System/Libraries
Obsoletes: mingw32-libbz2
%description -n mingw32-libbz2-1
Bzip2 is a freely available, patent-free, high quality data compressor.
Bzip2 compresses files to within 10 to 15 percent of the capabilities
of the best techniques available. However, bzip2 has the added benefit
of being approximately two times faster at compression and six times
faster at decompression than those techniques. Bzip2 is not the
fastest compression utility, but it does strike a balance between speed
and compression capability.
This package contains development tools and libraries for use when
cross-compiling Windows software.
%package -n mingw32-libbz2-devel
Summary: MinGW port of bzip2 file compression utility
Group: Development/Libraries/C and C++
Requires: mingw32-libbz2-1 = %{version}
%description -n mingw32-libbz2-devel
Bzip2 is a freely available, patent-free, high quality data compressor.
Bzip2 compresses files to within 10 to 15 percent of the capabilities
of the best techniques available. However, bzip2 has the added benefit
of being approximately two times faster at compression and six times
faster at decompression than those techniques. Bzip2 is not the
fastest compression utility, but it does strike a balance between speed
and compression capability.
This package contains development tools and libraries for use when
cross-compiling Windows software.
%_mingw32_debug_package
%prep
%setup -q -n bzip2-%{version}
%patch -P 0 -p0
%build
autoreconf -fiv
%{_mingw32_configure}
%{_mingw32_make} %{?_smp_mflags}
%install
%{_mingw32_make_install}
%files
%defattr(-,root,root)
%{_mingw32_bindir}/bunzip2.exe
%{_mingw32_bindir}/bzcat.exe
%{_mingw32_bindir}/bzcmp
%{_mingw32_bindir}/bzdiff
%{_mingw32_bindir}/bzegrep
%{_mingw32_bindir}/bzfgrep
%{_mingw32_bindir}/bzgrep
%{_mingw32_bindir}/bzip2.exe
%{_mingw32_bindir}/bzip2recover.exe
%{_mingw32_bindir}/bzless
%{_mingw32_bindir}/bzmore
%{_mingw32_mandir}/man1
%files -n mingw32-libbz2-1
%defattr(-,root,root)
%{_mingw32_bindir}/libbz2-1.dll
%files -n mingw32-libbz2-devel
%defattr(-,root,root)
%{_mingw32_includedir}/bzlib.h
%{_mingw32_libdir}/libbz2.dll.a
%{_mingw32_libdir}/pkgconfig/bzip2.pc
%changelog