]> git.pld-linux.org Git - packages/crossmingw32-xz.git/blob - crossmingw32-xz.spec
- updated to 5.6.1
[packages/crossmingw32-xz.git] / crossmingw32-xz.spec
1 Summary:        LZMA library - MinGW32 cross version
2 Summary(pl.UTF-8):      Biblioteka LZMA - wersja skrośna dla MinGW32
3 Name:           crossmingw32-xz
4 Version:        5.6.1
5 Release:        1
6 License:        0BSD
7 Group:          Development/Libraries
8 Source0:        https://github.com/tukaani-project/xz/releases/download/v%{version}/xz-%{version}.tar.bz2
9 # Source0-md5:  87e595fb7cf67af0d9ce331c564a6bf5
10 URL:            https://tukaani.org/xz/
11 BuildRequires:  crossmingw32-gcc >= 3.4
12 BuildRequires:  tar >= 1:1.22
13 BuildRequires:  xz
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %define         no_install_post_strip   1
17 %define         _enable_debug_packages  0
18
19 %define         target                  i386-mingw32
20 %define         target_platform         i386-pc-mingw32
21
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}
31
32 %ifnarch %{ix86}
33 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
34 %define         optflags        -O2
35 %endif
36 # -z options are invalid for mingw linker
37 %define         filterout_ld    -Wl,-z,.*
38 %define         filterout_c     -f[-a-z0-9=]*
39
40 %description
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.
44
45 This package contains the cross version for Win32.
46
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.
51
52 Ten pakiet zawiera wersję skrośną dla Win32.
53
54 %package static
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}
59
60 %description static
61 Static LZMA library (cross MinGW32 version).
62
63 %description static -l pl.UTF-8
64 Statyczna biblioteka LZMA (wersja skrośna MinGW32).
65
66 %package dll
67 Summary:        LZMA - DLL library for Windows
68 Summary(pl.UTF-8):      LZMA - biblioteka DLL dla Windows
69 Group:          Applications/Emulators
70 Requires:       wine
71
72 %description dll
73 LZMA - DLL library for Windows.
74
75 %description dll -l pl.UTF-8
76 LZMA - biblioteka DLL dla Windows.
77
78 %prep
79 %setup -q -n xz-%{version}
80
81 %build
82 %configure \
83         --target=%{target} \
84         --host=%{target}
85
86 %{__make}
87
88 %install
89 rm -rf $RPM_BUILD_ROOT
90
91 %{__make} install \
92         DESTDIR=$RPM_BUILD_ROOT
93
94 install -d $RPM_BUILD_ROOT%{_dlldir}
95 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
96
97 %if 0%{!?debug:1}
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
100 %endif
101
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
106
107 %clean
108 rm -rf $RPM_BUILD_ROOT
109
110 %files
111 %defattr(644,root,root,755)
112 %doc AUTHORS COPYING COPYING.0BSD README THANKS doc/*.txt
113 %{_libdir}/liblzma.dll.a
114 %{_libdir}/liblzma.la
115 %{_includedir}/lzma
116 %{_includedir}/lzma.h
117 %{_pkgconfigdir}/liblzma.pc
118
119 %files static
120 %defattr(644,root,root,755)
121 %{_libdir}/liblzma.a
122
123 %files dll
124 %defattr(644,root,root,755)
125 %{_dlldir}/liblzma-5.dll
This page took 0.097448 seconds and 4 git commands to generate.