2 Summary: Extremely powerful file compression utility - Ming32 cross version
3 Summary(es.UTF-8): Un compresor de archivos con un nuevo algoritmo
4 Summary(fr.UTF-8): Utilitaire de compression de fichier extrêmement puissant
5 Summary(pl.UTF-8): Kompresor plików bzip2 - wersja skrośna dla Ming32
6 Summary(pt_BR.UTF-8): Compactador de arquivo extremamente poderoso
7 Summary(uk.UTF-8): Компресор файлів на базі алгоритму блочного сортування
8 Summary(ru.UTF-8): Компрессор файлов на основе алгоритма блочной сортировки
9 Name: crossmingw32-%{realname}
13 Group: Applications/Archiving
14 Source0: ftp://sources.redhat.com/pub/bzip2/v102/%{realname}-%{version}.tar.gz
15 # Source0-md5: ee76864958d568677f03db8afad92beb
17 URL: http://sources.redhat.com/bzip2/
18 BuildRequires: crossmingw32-gcc
19 Requires: crossmingw32-runtime
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 %define no_install_post_strip 1
24 %define target i386-mingw32
25 %define target_platform i386-pc-mingw32
26 %define arch %{_prefix}/%{target}
28 %define __cc %{target}-gcc
29 %define __cxx %{target}-g++
31 %ifarch alpha sparc sparc64 sparcv9
36 Bzip2 compresses files using the Burrows-Wheeler block-sorting text
37 compression algorithm, and Huffman coding. Compression is generally
38 considerably better than that achieved by more conventional
39 LZ77/LZ78-based compressors, and approaches the performance of the PPM
40 family of statistical compressors. The command-line options are
41 deliberately very similar to those of GNU Gzip, but they are not
44 %description -l es.UTF-8
45 Bzip2 es un programa de compresión/descompresión. Típicamente el
46 archivo compactado queda entre 20 la 30 por ciento menor de que se
47 fuera compactado con gzip. Observa que bzip2 no entiende los archivos
48 del bzip original, ni los archivos del gzip.
50 %description -l fr.UTF-8
51 Bzip2 compresse des fichiers en utilisant l'algorithme de compression
52 en tri de blocks de texte Burrows-Wheeler, et le codage Huffman. La
53 compression est considérablement meilleure que celle effectuée par les
54 plus conventionels compresseurs basés sur LZ77/LZ78, et approche la
55 performance de la famille PPM de compresseurs statistiques.
57 %description -l pl.UTF-8
58 Kompresor bzip2 używa algorytmu Burrows-Wheelera do kompresji danych i
59 metody Huffmana do ich kodowania. Kompresja pliku czy archiwum tar
60 jest z reguły lepsza niż w przypadku stosowania klasycznych
61 kompresorów LZ77/LZ78. Opcje linii poleceń są bardzo podobne do
62 poleceń GNU Gzip ale nie są identyczne.
64 %description -l pt_BR.UTF-8
65 Bzip2 é um programa de compressão/descompressão. Tipicamente o arquivo
66 compactado fica 20 a 30 por cento menor do que se fosse compactado com
69 Note que o bzip2 não entende os arquivos do bzip original, nem os
72 %description -l ru.UTF-8
73 bzip2 компрессирует файлы используя компрессирующий текстовый алгоритм
74 блочной сортировки Burrows-Wheeler и кодирование Huffman'а.
75 Достигаемая компрессия обычно существенно лучше достигаемой более
76 привычными компрессорами на основе LZ77/LZ78 и приближается к той,
77 которую обеспечивает семейство статистических компрессоров PPM.
79 %description -l uk.UTF-8
80 bzip2 компресує файли використовуючи текстовий алгоритм блочного
81 сортування Burrows-Wheeler та кодування Huffman'а. Компресія, яка
82 досягається bzip2, як правило краща за ту, що забезпечують
83 розповсюджені компресори на базі LZ77/LZ78 і наближається до тої, що
84 її забезпечує сімейство статистичних компресорів PPM.
87 Summary: %{realname} - DLL library for Windows
88 Summary(pl.UTF-8): %{realname} - biblioteka DLL dla Windows
89 Group: Applications/Emulators
92 %{realname} - DLL library for Windows.
94 %description dll -l pl.UTF-8
95 %{realname} - biblioteka DLL dla Windows.
98 %setup -q -n %{realname}-%{version}
102 CC=%{target}-gcc ; export CC
103 CXX=%{target}-g++ ; export CXX
104 LD=%{target}-ld ; export LD
105 AR=%{target}-ar ; export AR
106 AS=%{target}-as ; export AS
107 CROSS_COMPILE=1 ; export CROSS_COMPILE
108 CPPFLAGS="-I%{arch}/include" ; export CPPFLAGS
109 RANLIB=%{target}-ranlib ; export RANLIB
110 LDSHARED="%{target}-gcc -shared" ; export LDSHARED
111 TARGET="%{target}" ; export TARGET
115 CFLAGS="%{rpmcflags} -Wall \$(BIGFILES)"
117 rm -f libbz2.a libbz2.dll
119 $AR cru libbzip2.a blocksort.o huffman.o crctable.o randtable.o compress.o decompress.o bzlib.o
122 %{__cc} --shared libbzip2.a blocksort.o huffman.o crctable.o randtable.o compress.o decompress.o bzlib.o -Wl,--enable-auto-image-base -o bzip2.dll -Wl,--out-implib,libbzip2.dll.a
125 %{target}-strip *.dll
126 %{target}-strip -g -R.comment -R.note *.a
130 rm -rf $RPM_BUILD_ROOT
131 install -d $RPM_BUILD_ROOT%{arch}/{include,lib}
132 install -d $RPM_BUILD_ROOT%{_datadir}/wine/windows/system
134 install *.h $RPM_BUILD_ROOT%{arch}/include
135 install *.a $RPM_BUILD_ROOT%{arch}/lib
136 install *.dll $RPM_BUILD_ROOT%{_datadir}/wine/windows/system
139 rm -rf $RPM_BUILD_ROOT
142 %defattr(644,root,root,755)
147 %defattr(644,root,root,755)
148 %{_datadir}/wine/windows/system/*