File mingw64-xz.spec of Package mingw64-xz

#
# spec file for package mingw64-xz
#
# Copyright (c) 2014 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:           mingw64-xz
Version:        5.6.4
Release:        0
Summary:        Command line tools for XZ and LZMA compressed files
License:        GPL-2.0-or-later
Group:          Productivity/Archiving/Compression
Url:            http://tukaani.org/xz/
Source:         http://tukaani.org/xz/xz-%{version}.tar.xz
#!BuildIgnore: post-build-checks
BuildRequires:  mingw64-cross-binutils
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-pkg-config
BuildRequires:  xz
Provides:       mingw64-lzma = %{version}
%_mingw64_package_header_debug
BuildArch:      noarch

%description
This package includes the xz compression tool and other command line tools from XZ Utils. xz has command line syntax
similar to that of gzip. The native file format is the .xz format, but also the legacy .lzma format is supported. The
.xz format supports multiple compression algorithms, of which LZMA2 is currently the primary algorithm. With typical
files, XZ Utils create about 30% smaller files than gzip.

%package -n mingw64-liblzma5
Summary:        Library for XZ and LZMA compressed files
License:        SUSE-Public-Domain
Group:          System/Libraries
Obsoletes:      mingw64-liblzma

%description -n mingw64-liblzma5
liblzma is a general purpose data compression library with an API similar to that of zlib. liblzma supports multiple
algorithms, of which LZMA2 is currently the primary algorithm.  The native file format is .xz, but also the legacy .lzma
format and raw streams (no headers at all) are supported.

%package devel
Summary:        Library for XZ and LZMA compressed files
License:        SUSE-Public-Domain
Group:          Development/Libraries/C and C++
Provides:       mingw64-lzma-devel = %{version}
Requires:       mingw64-liblzma5 = %{version}

%description devel
This package includes the API headers, static library, and other development files related to liblzma.

%package devel-static
Summary:        Static version of LZMA library
License:        SUSE-Public-Domain
Group:          Development/Libraries/C and C++
Requires:       mingw64-lzma-devel = %{version}
Provides:       mingw64-xz-static-devel

%description devel-static
Static library for the LZMA library

%_mingw64_debug_package

%prep
%autosetup -p1 -n xz-%{version}

%build
%{_mingw64_configure} \
	--docdir=%{_mingw64_docdir}/%{name} \
	--disable-lzma-links \
	--enable-shared --enable-static
make %{?_smp_mflags} || make

%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}

%files
%{_mingw64_bindir}/lzmadec.exe
%{_mingw64_bindir}/lzmainfo.exe
%{_mingw64_bindir}/unxz.exe
%{_mingw64_bindir}/xz.exe
%{_mingw64_bindir}/xzcat.exe
%{_mingw64_bindir}/xzdec.exe
%{_mingw64_bindir}/xzcmp
%{_mingw64_bindir}/xzdiff
%{_mingw64_bindir}/xzegrep
%{_mingw64_bindir}/xzfgrep
%{_mingw64_bindir}/xzgrep
%{_mingw64_bindir}/xzless
%{_mingw64_bindir}/xzmore
%{_mingw64_docdir}
%{_mingw64_mandir}/man1

%files -n mingw64-liblzma5
%{_mingw64_bindir}/liblzma-5.dll

%files devel
%{_mingw64_includedir}/lzma.h
%{_mingw64_includedir}/lzma
%{_mingw64_libdir}/liblzma.dll.a
%{_mingw64_libdir}/pkgconfig/liblzma.pc

%files devel-static
%{_mingw64_libdir}/liblzma.a

%changelog
openSUSE Build Service is sponsored by