]> git.pld-linux.org Git - packages/crossmingw32-bzip2.git/blame - crossmingw32-bzip2.spec
- updated to 1.0.8
[packages/crossmingw32-bzip2.git] / crossmingw32-bzip2.spec
CommitLineData
190fa751 1%define realname bzip2
dae882fc 2Summary: Extremely powerful file compression utility - MinGW32 cross version
ee87feb9
ER
3Summary(es.UTF-8): Un compresor de archivos con un nuevo algoritmo
4Summary(fr.UTF-8): Utilitaire de compression de fichier extrêmement puissant
dae882fc 5Summary(pl.UTF-8): Kompresor plików bzip2 - wersja skrośna dla MinGW32
ee87feb9
ER
6Summary(pt_BR.UTF-8): Compactador de arquivo extremamente poderoso
7Summary(uk.UTF-8): Компресор файлів на базі алгоритму блочного сортування
8Summary(ru.UTF-8): Компрессор файлов на основе алгоритма блочной сортировки
190fa751 9Name: crossmingw32-%{realname}
7e38a753 10Version: 1.0.8
5a2e43c8 11Release: 1
190fa751 12License: BSD-like
13Group: Applications/Archiving
5a2e43c8 14Source0: https://sourceware.org/pub/bzip2/%{realname}-%{version}.tar.gz
7e38a753 15# Source0-md5: 67e051268d0c475ea773822f7500d0e5
33b831de 16Patch0: %{name}.patch
5a2e43c8 17URL: https://sourceware.org/bzip2/
e6e945fd 18BuildRequires: crossmingw32-gcc
33b831de
JB
19Requires: crossmingw32-runtime
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
190fa751 21
22%define no_install_post_strip 1
23
24%define target i386-mingw32
25%define target_platform i386-pc-mingw32
190fa751 26
411c00c7
JB
27%define _sysprefix /usr
28%define _prefix %{_sysprefix}/%{target}
29%define _libdir %{_prefix}/lib
30%define _dlldir /usr/share/wine/windows/system
190fa751 31%define __cc %{target}-gcc
32%define __cxx %{target}-g++
33
411c00c7
JB
34%ifnarch %{ix86}
35# arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
2304a716 36%define optflags -O2
37%endif
142c4a2f
JB
38# -z options are invalid for mingw linker, most of -f options are Linux-specific
39%define filterout_ld -Wl,-z,.*
40%define filterout_c -f[-a-z0-9=]*
2304a716 41
190fa751 42%description
43Bzip2 compresses files using the Burrows-Wheeler block-sorting text
44compression algorithm, and Huffman coding. Compression is generally
45considerably better than that achieved by more conventional
46LZ77/LZ78-based compressors, and approaches the performance of the PPM
47family of statistical compressors. The command-line options are
48deliberately very similar to those of GNU Gzip, but they are not
49identical.
50
65749fdf
JR
51%description -l es.UTF-8
52Bzip2 es un programa de compresión/descompresión. Típicamente el
190fa751 53archivo compactado queda entre 20 la 30 por ciento menor de que se
54fuera compactado con gzip. Observa que bzip2 no entiende los archivos
55del bzip original, ni los archivos del gzip.
56
65749fdf 57%description -l fr.UTF-8
190fa751 58Bzip2 compresse des fichiers en utilisant l'algorithme de compression
59en tri de blocks de texte Burrows-Wheeler, et le codage Huffman. La
65749fdf
JR
60compression est considérablement meilleure que celle effectuée par les
61plus conventionels compresseurs basés sur LZ77/LZ78, et approche la
190fa751 62performance de la famille PPM de compresseurs statistiques.
63
65749fdf
JR
64%description -l pl.UTF-8
65Kompresor bzip2 używa algorytmu Burrows-Wheelera do kompresji danych i
190fa751 66metody Huffmana do ich kodowania. Kompresja pliku czy archiwum tar
65749fdf
JR
67jest z reguły lepsza niż w przypadku stosowania klasycznych
68kompresorów LZ77/LZ78. Opcje linii poleceń są bardzo podobne do
69poleceń GNU Gzip ale nie są identyczne.
190fa751 70
65749fdf
JR
71%description -l pt_BR.UTF-8
72Bzip2 é um programa de compressão/descompressão. Tipicamente o arquivo
190fa751 73compactado fica 20 a 30 por cento menor do que se fosse compactado com
74o gzip.
75
65749fdf 76Note que o bzip2 não entende os arquivos do bzip original, nem os
190fa751 77arquivos do gzip.
78
65749fdf
JR
79%description -l ru.UTF-8
80bzip2 компрессирует файлы используя компрессирующий текстовый алгоритм
81блочной сортировки Burrows-Wheeler и кодирование Huffman'а.
82Достигаемая компрессия обычно существенно лучше достигаемой более
83привычными компрессорами на основе LZ77/LZ78 и приближается к той,
84которую обеспечивает семейство статистических компрессоров PPM.
190fa751 85
65749fdf
JR
86%description -l uk.UTF-8
87bzip2 компресує файли використовуючи текстовий алгоритм блочного
88сортування Burrows-Wheeler та кодування Huffman'а. Компресія, яка
89досягається bzip2, як правило краща за ту, що забезпечують
90розповсюджені компресори на базі LZ77/LZ78 і наближається до тої, що
91її забезпечує сімейство статистичних компресорів PPM.
190fa751 92
411c00c7 93%package static
dae882fc
JB
94Summary: Static bzip2 library (cross MinGW32 version)
95Summary(pl.UTF-8): Statyczna biblioteka bzip2 (wersja skrośna MinGW32)
411c00c7
JB
96Group: Development/Libraries
97Requires: %{name} = %{version}-%{release}
98
99%description static
dae882fc 100Static bzip2 library (cross MinGW32 version).
411c00c7
JB
101
102%description static -l pl.UTF-8
dae882fc 103Statyczna biblioteka bzip2 (wersja skrośna MinGW32).
411c00c7 104
e044f105 105%package dll
106Summary: %{realname} - DLL library for Windows
ee87feb9 107Summary(pl.UTF-8): %{realname} - biblioteka DLL dla Windows
e044f105 108Group: Applications/Emulators
109
110%description dll
111%{realname} - DLL library for Windows.
112
65749fdf 113%description dll -l pl.UTF-8
e044f105 114%{realname} - biblioteka DLL dla Windows.
115
190fa751 116%prep
117%setup -q -n %{realname}-%{version}
118%patch0 -p1
119
120%build
33b831de 121%{__make} \
142c4a2f
JB
122 AR="%{target}-ar" \
123 RANLIB="%{target}-ranlib" \
33b831de
JB
124 CC="%{__cc}" \
125 CFLAGS="%{rpmcflags} -Wall \$(BIGFILES)"
190fa751 126
e044f105 127%install
128rm -rf $RPM_BUILD_ROOT
411c00c7 129install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir},%{_dlldir}}
e044f105 130
411c00c7
JB
131install *.h $RPM_BUILD_ROOT%{_includedir}
132install *.a $RPM_BUILD_ROOT%{_libdir}
133install *.dll $RPM_BUILD_ROOT%{_dlldir}
134
135%if 0%{!?debug:1}
136%{target}-strip $RPM_BUILD_ROOT%{_dlldir}/*.dll
137%{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
138%endif
e044f105 139
0f148b48
JB
140# for compatibility
141ln -sf libbz2.a $RPM_BUILD_ROOT%{_libdir}/libbzip2.a
142ln -sf libbz2.dll.a $RPM_BUILD_ROOT%{_libdir}/libbzip2.dll.a
143
190fa751 144%clean
145rm -rf $RPM_BUILD_ROOT
146
147%files
33b831de 148%defattr(644,root,root,755)
0f148b48 149%{_libdir}/libbz2.dll.a
411c00c7
JB
150%{_libdir}/libbzip2.dll.a
151%{_includedir}/bzlib*.h
152
153%files static
154%defattr(644,root,root,755)
0f148b48 155%{_libdir}/libbz2.a
411c00c7 156%{_libdir}/libbzip2.a
e044f105 157
158%files dll
159%defattr(644,root,root,755)
411c00c7 160%{_dlldir}/bzip2.dll
This page took 0.151564 seconds and 4 git commands to generate.