1 Summary: LZMA library - MinGW32 cross version
2 Summary(pl.UTF-8): Biblioteka LZMA - wersja skrośna dla MinGW32
7 Group: Development/Libraries
8 Source0: https://github.com/tukaani-project/xz/releases/download/v%{version}/xz-%{version}.tar.bz2
9 # Source0-md5: 098549e685e27620f2fe2883b02c35f2
10 URL: https://tukaani.org/xz/
11 BuildRequires: crossmingw32-gcc >= 3.4
12 BuildRequires: tar >= 1:1.22
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 %define no_install_post_strip 1
17 %define _enable_debug_packages 0
19 %define target i386-mingw32
20 %define target_platform i386-pc-mingw32
22 %define _sysprefix /usr
23 %define _prefix %{_sysprefix}/%{target}
24 %define _libdir %{_prefix}/lib
25 %define _pkgconfigdir %{_prefix}/lib/pkgconfig
26 %define _dlldir /usr/share/wine/windows/system
27 %define __cc %{target}-gcc
28 %define __cxx %{target}-g++
29 %define __pkgconfig_provides %{nil}
30 %define __pkgconfig_requires %{nil}
33 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
36 # -z options are invalid for mingw linker
37 %define filterout_ld -Wl,-z,.*
38 %define filterout_c -f[-a-z0-9=]*
41 LZMA is default and general compression method of 7z format in 7-Zip
42 program. LZMA provides high compression ratio and very fast
43 decompression, so it is very suitable for embedded applications.
45 This package contains the cross version for Win32.
47 %description -l pl.UTF-8
48 LZMA jest domyślnym i ogólnym algorytmem kompresji formatu 7z
49 stosowanego przez 7-Zip. LZMA zapewnia wysoki stopień kompresji i
50 bardzo szybką dekompresję, więc nadaje się do zastosowań osadzonych.
52 Ten pakiet zawiera wersję skrośną dla Win32.
55 Summary: Static LZMA library (cross MinGW32 version)
56 Summary(pl.UTF-8): Statyczna biblioteka LZMA (wersja skrośna MinGW32)
57 Group: Development/Libraries
58 Requires: %{name} = %{version}-%{release}
61 Static LZMA library (cross MinGW32 version).
63 %description static -l pl.UTF-8
64 Statyczna biblioteka LZMA (wersja skrośna MinGW32).
67 Summary: LZMA - DLL library for Windows
68 Summary(pl.UTF-8): LZMA - biblioteka DLL dla Windows
69 Group: Applications/Emulators
73 LZMA - DLL library for Windows.
75 %description dll -l pl.UTF-8
76 LZMA - biblioteka DLL dla Windows.
79 %setup -q -n xz-%{version}
89 rm -rf $RPM_BUILD_ROOT
92 DESTDIR=$RPM_BUILD_ROOT
94 install -d $RPM_BUILD_ROOT%{_dlldir}
95 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
98 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
99 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
102 %{__rm} -r $RPM_BUILD_ROOT%{_bindir}/* \
103 $RPM_BUILD_ROOT%{_mandir} \
104 $RPM_BUILD_ROOT%{_datadir}/doc/xz \
105 $RPM_BUILD_ROOT%{_datadir}/locale
108 rm -rf $RPM_BUILD_ROOT
111 %defattr(644,root,root,755)
112 %doc AUTHORS COPYING README THANKS doc/*.txt
113 %{_libdir}/liblzma.dll.a
114 %{_libdir}/liblzma.la
116 %{_includedir}/lzma.h
117 %{_pkgconfigdir}/liblzma.pc
120 %defattr(644,root,root,755)
124 %defattr(644,root,root,755)
125 %{_dlldir}/liblzma-5.dll