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://tukaani.org/xz/xz-%{version}.tar.bz2
9 # Source0-md5: b3264b15ab1db04c8c428dc81838d4eb
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
18 %define target i386-mingw32
19 %define target_platform i386-pc-mingw32
21 %define _sysprefix /usr
22 %define _prefix %{_sysprefix}/%{target}
23 %define _libdir %{_prefix}/lib
24 %define _pkgconfigdir %{_prefix}/lib/pkgconfig
25 %define _dlldir /usr/share/wine/windows/system
26 %define __cc %{target}-gcc
27 %define __cxx %{target}-g++
28 %define __pkgconfig_provides %{nil}
29 %define __pkgconfig_requires %{nil}
32 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
35 # -z options are invalid for mingw linker
36 %define filterout_ld -Wl,-z,.*
37 %define filterout_c -f[-a-z0-9=]*
40 LZMA is default and general compression method of 7z format in 7-Zip
41 program. LZMA provides high compression ratio and very fast
42 decompression, so it is very suitable for embedded applications.
44 This package contains the cross version for Win32.
46 %description -l pl.UTF-8
47 LZMA jest domyślnym i ogólnym algorytmem kompresji formatu 7z
48 stosowanego przez 7-Zip. LZMA zapewnia wysoki stopień kompresji i
49 bardzo szybką dekompresję, więc nadaje się do zastosowań osadzonych.
51 Ten pakiet zawiera wersję skrośną dla Win32.
54 Summary: Static LZMA library (cross MinGW32 version)
55 Summary(pl.UTF-8): Statyczna biblioteka LZMA (wersja skrośna MinGW32)
56 Group: Development/Libraries
57 Requires: %{name} = %{version}-%{release}
60 Static LZMA library (cross MinGW32 version).
62 %description static -l pl.UTF-8
63 Statyczna biblioteka LZMA (wersja skrośna MinGW32).
66 Summary: LZMA - DLL library for Windows
67 Summary(pl.UTF-8): LZMA - biblioteka DLL dla Windows
68 Group: Applications/Emulators
72 LZMA - DLL library for Windows.
74 %description dll -l pl.UTF-8
75 LZMA - biblioteka DLL dla Windows.
78 %setup -q -n xz-%{version}
88 rm -rf $RPM_BUILD_ROOT
91 DESTDIR=$RPM_BUILD_ROOT
93 install -d $RPM_BUILD_ROOT%{_dlldir}
94 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
97 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
98 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
101 %{__rm} -r $RPM_BUILD_ROOT%{_bindir}/* \
102 $RPM_BUILD_ROOT%{_mandir}/man1 \
103 $RPM_BUILD_ROOT%{_datadir}/doc/xz \
104 $RPM_BUILD_ROOT%{_datadir}/locale
107 rm -rf $RPM_BUILD_ROOT
110 %defattr(644,root,root,755)
111 %doc AUTHORS COPYING README THANKS doc/*.txt
112 %{_libdir}/liblzma.dll.a
113 %{_libdir}/liblzma.la
115 %{_includedir}/lzma.h
116 %{_pkgconfigdir}/liblzma.pc
119 %defattr(644,root,root,755)
123 %defattr(644,root,root,755)
124 %{_dlldir}/liblzma-5.dll