8b9d294
%{?mingw_package_header}
8b9d294
8b9d294
Name:           mingw-xz
794b077
Version:        5.2.4
a98beaf
Release:        3%{?dist}
8b9d294
Summary:        Cross-compiled LZMA compression utilities
8b9d294
ec75054
# Scripts xz{grep,diff,less,more} and symlinks (copied from gzip) are
ec75054
# GPLv2+, binaries are Public Domain (linked against LGPL getopt_long but its
ec75054
# OK), documentation is Public Domain.
ec75054
License:        GPLv2+ and Public Domain
8b9d294
URL:            http://tukaani.org/xz/
ec75054
Source0:        http://tukaani.org/xz/xz-%{version}.tar.xz
8b9d294
8b9d294
BuildArch:      noarch
8b9d294
8b9d294
BuildRequires:  mingw32-filesystem >= 95
8b9d294
BuildRequires:  mingw64-filesystem >= 95
8b9d294
BuildRequires:  mingw32-gcc
8b9d294
BuildRequires:  mingw64-gcc
8b9d294
BuildRequires:  mingw32-binutils
8b9d294
BuildRequires:  mingw64-binutils
8b9d294
8b9d294
8b9d294
%description
8b9d294
XZ Utils are an attempt to make LZMA compression easy to use on free (as in
8b9d294
freedom) operating systems. This is achieved by providing tools and libraries
8b9d294
which are similar to use than the equivalents of the most popular existing
8b9d294
compression algorithms.
8b9d294
8b9d294
LZMA is a general purpose compression algorithm designed by Igor Pavlov as
8b9d294
part of 7-Zip. It provides high compression ratio while keeping the
8b9d294
decompression speed fast.
8b9d294
8b9d294
8b9d294
# Mingw32
8b9d294
%package -n mingw32-xz
8b9d294
Summary:        Cross-compiled LZMA compression utilities
8b9d294
Requires:       mingw32-xz-libs = %{version}-%{release}
8b9d294
8b9d294
%description -n mingw32-xz
8b9d294
XZ Utils are an attempt to make LZMA compression easy to use on free (as in
8b9d294
freedom) operating systems. This is achieved by providing tools and libraries
8b9d294
which are similar to use than the equivalents of the most popular existing
8b9d294
compression algorithms.
8b9d294
8b9d294
LZMA is a general purpose compression algorithm designed by Igor Pavlov as
8b9d294
part of 7-Zip. It provides high compression ratio while keeping the
8b9d294
decompression speed fast.
8b9d294
8b9d294
8b9d294
%package -n mingw32-xz-libs
8b9d294
Summary:        Libraries for decoding LZMA compression
ec75054
License:        Public Domain
8b9d294
8b9d294
8b9d294
%description -n mingw32-xz-libs
8b9d294
Libraries for decoding files compressed with LZMA or XZ utils.
8b9d294
8b9d294
8b9d294
%package -n mingw32-xz-libs-static
8b9d294
Summary:        Static version of the xz library
ec75054
License:        Public Domain
8b9d294
Requires:       mingw32-xz-libs = %{version}-%{release}
8b9d294
8b9d294
8b9d294
%description -n mingw32-xz-libs-static
8b9d294
Static version of the xz library.
8b9d294
8b9d294
8b9d294
# Mingw64
8b9d294
%package -n mingw64-xz
8b9d294
Summary:        Cross-compiled LZMA compression utilities
8b9d294
Requires:       mingw64-xz-libs = %{version}-%{release}
8b9d294
8b9d294
%description -n mingw64-xz
8b9d294
XZ Utils are an attempt to make LZMA compression easy to use on free (as in
8b9d294
freedom) operating systems. This is achieved by providing tools and libraries
8b9d294
which are similar to use than the equivalents of the most popular existing
8b9d294
compression algorithms.
8b9d294
8b9d294
LZMA is a general purpose compression algorithm designed by Igor Pavlov as
8b9d294
part of 7-Zip. It provides high compression ratio while keeping the
8b9d294
decompression speed fast.
8b9d294
8b9d294
8b9d294
%package -n mingw64-xz-libs
8b9d294
Summary:        Libraries for decoding LZMA compression
ec75054
License:        Public Domain
8b9d294
8b9d294
8b9d294
%description -n mingw64-xz-libs
8b9d294
Libraries for decoding files compressed with LZMA or XZ utils.
8b9d294
8b9d294
8b9d294
%package -n mingw64-xz-libs-static
8b9d294
Summary:        Static version of the xz library
ec75054
License:        Public Domain
8b9d294
Requires:       mingw64-xz-libs = %{version}-%{release}
8b9d294
8b9d294
8b9d294
%description -n mingw64-xz-libs-static
8b9d294
Static version of the xz library.
8b9d294
8b9d294
8b9d294
%?mingw_debug_package
8b9d294
8b9d294
8b9d294
%prep
ec75054
%setup -q -n xz-%{version}
8b9d294
8b9d294
8b9d294
%build
8b9d294
MINGW32_CFLAGS="%{mingw32_cflags} -D_FILE_OFFSET_BITS=64" \
8b9d294
MINGW64_CFLAGS="%{mingw64_cflags} -D_FILE_OFFSET_BITS=64" \
8b9d294
%mingw_configure --disable-nls \
8b9d294
                 --disable-lzmadec \
8b9d294
                 --disable-lzmainfo \
8b9d294
                 --disable-lzma-links \
8b9d294
                 --disable-scripts
8b9d294
%mingw_make %{?_smp_mflags}
8b9d294
8b9d294
8b9d294
%install
8b9d294
%mingw_make_install DESTDIR=$RPM_BUILD_ROOT
8b9d294
8b9d294
iconv -f latin1 -t utf-8 < NEWS > NEWS.utf8; cp NEWS.utf8 NEWS
8b9d294
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
8b9d294
find $RPM_BUILD_ROOT -name cpio.5 -exec rm -f {} ';'
8b9d294
find $RPM_BUILD_ROOT -name mtree.5 -exec rm -f {} ';'
8b9d294
find $RPM_BUILD_ROOT -name tar.5 -exec rm -f {} ';'
8b9d294
8b9d294
# Remove documentation which duplicates that found in the native package.
8b9d294
rm -r $RPM_BUILD_ROOT/%{mingw32_prefix}/share
8b9d294
rm -r $RPM_BUILD_ROOT/%{mingw64_prefix}/share
8b9d294
8b9d294
8b9d294
# Win32
8b9d294
%files -n mingw32-xz
ec75054
%license COPYING COPYING.GPLv2 COPYING.GPLv3 COPYING.LGPLv2.1
8b9d294
%{mingw32_bindir}/unxz.exe
8b9d294
%{mingw32_bindir}/xz.exe
8b9d294
%{mingw32_bindir}/xzcat.exe
8b9d294
%{mingw32_bindir}/xzdec.exe
8b9d294
8b9d294
%files -n mingw32-xz-libs
ec75054
%license COPYING
8b9d294
%{mingw32_bindir}/liblzma-5.dll
ec75054
%{mingw32_includedir}/lzma
8b9d294
%{mingw32_includedir}/lzma.h
8b9d294
%{mingw32_libdir}/liblzma.dll.a
8b9d294
%{mingw32_libdir}/pkgconfig/liblzma.pc
8b9d294
8b9d294
%files -n mingw32-xz-libs-static
ec75054
%license COPYING
8b9d294
%{mingw32_libdir}/liblzma.a
8b9d294
8b9d294
8b9d294
# Win64
8b9d294
%files -n mingw64-xz
ec75054
%license COPYING COPYING.GPLv2 COPYING.GPLv3 COPYING.LGPLv2.1
8b9d294
%{mingw64_bindir}/unxz.exe
8b9d294
%{mingw64_bindir}/xz.exe
8b9d294
%{mingw64_bindir}/xzcat.exe
8b9d294
%{mingw64_bindir}/xzdec.exe
8b9d294
8b9d294
%files -n mingw64-xz-libs
ec75054
%license COPYING
8b9d294
%{mingw64_bindir}/liblzma-5.dll
ec75054
%{mingw64_includedir}/lzma
8b9d294
%{mingw64_includedir}/lzma.h
8b9d294
%{mingw64_libdir}/liblzma.dll.a
8b9d294
%{mingw64_libdir}/pkgconfig/liblzma.pc
8b9d294
8b9d294
%files -n mingw64-xz-libs-static
ec75054
%license COPYING
8b9d294
%{mingw64_libdir}/liblzma.a
8b9d294
8b9d294
8b9d294
%changelog
a98beaf
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.4-3
a98beaf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
a98beaf
598810f
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.4-2
598810f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
598810f
794b077
* Tue Aug 13 2019 Marc-André Lureau <marcandre.lureau@redhat.com> - 5.2.4-1
794b077
- New upstream version.
794b077
3e234f3
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.3-6
3e234f3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
3e234f3
1a90b2b
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.3-5
1a90b2b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
1a90b2b
c98a4bd
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.3-4
c98a4bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
c98a4bd
4ebad06
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.3-3
4ebad06
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
4ebad06
385e942
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.3-2
385e942
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
385e942
88a623d
* Sat Apr 01 2017 Michael Cronenworth <mike@cchtml.com> - 5.2.3-1
88a623d
- New upstream version.
88a623d
4662c04
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.2-4
4662c04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
4662c04
e395e7a
* Fri Aug 05 2016 Michael Cronenworth <mike@cchtml.com> - 5.2.2-3
e395e7a
- Enable thread support
e395e7a
41d64bd
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.2-2
41d64bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
41d64bd
2f7159a
* Mon Dec 28 2015 Michael Cronenworth <mike@cchtml.com> - 5.2.2-1
2f7159a
- New upstream version.
2f7159a
9b5b9a1
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.2.1-2
9b5b9a1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
9b5b9a1
c96414d
* Mon Mar 02 2015 Michael Cronenworth <mike@cchtml.com> - 5.2.1-1
c96414d
- New upstream version.
c96414d
  http://www.mail-archive.com/xz-devel@tukaani.org/msg00226.html
c96414d
ec75054
* Fri Jan 30 2015 Michael Cronenworth <mike@cchtml.com> - 5.2.0-1
ec75054
- New upstream version.
ec75054
1935e07
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.2-5alpha
1935e07
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
1935e07
6344c41
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.2-4alpha
6344c41
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
6344c41
70e6278
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.2-3alpha
70e6278
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
70e6278
8b9d294
* Sun Aug 26 2012 Michael Cronenworth <mike@cchtml.com> - 5.1.2-2alpha
8b9d294
- Fix CFLAGS.
8b9d294
8b9d294
* Sun Aug 26 2012 Michael Cronenworth <mike@cchtml.com> - 5.1.2-1alpha
8b9d294
- New upstream version.
8b9d294
8b9d294
* Thu Jun 07 2012 Michael Cronenworth <mike@cchtml.com> - 5.1.1-1alpha
8b9d294
- Initial RPM release.