]> git.pld-linux.org Git - packages/crossmingw32-bzip2.git/blob - crossmingw32-bzip2.spec
- alphasparc fix
[packages/crossmingw32-bzip2.git] / crossmingw32-bzip2.spec
1 %define         realname                bzip2
2 Summary:        Extremely powerful file compression utility - Ming32 cross version
3 Summary(es):    Un compresor de archivos con un nuevo algoritmo
4 Summary(fr):    Utilitaire de compression de fichier extrêmement puissant
5 Summary(pl):    Kompresor plików bzip2 - wersja skro¶na dla Ming32
6 Summary(pt_BR): Compactador de arquivo extremamente poderoso
7 Summary(uk):    ëÏÍÐÒÅÓÏÒ ÆÁÊ̦נÎÁ ÂÁÚ¦ ÁÌÇÏÒÉÔÍÕ ÂÌÏÞÎÏÇÏ ÓÏÒÔÕ×ÁÎÎÑ
8 Summary(ru):    ëÏÍÐÒÅÓÓÏÒ ÆÁÊÌÏ× ÎÁ ÏÓÎÏ×Å ÁÌÇÏÒÉÔÍÁ ÂÌÏÞÎÏÊ ÓÏÒÔÉÒÏ×ËÉ
9 Name:           crossmingw32-%{realname}
10 Version:        1.0.2
11 Release:        1
12 License:        BSD-like
13 Group:          Applications/Archiving
14 Source0:        ftp://sources.redhat.com/pub/bzip2/v102/%{realname}-%{version}.tar.gz
15 # Source0-md5:  ee76864958d568677f03db8afad92beb
16 Patch0:         %{name}.patch
17 URL:            http://sources.redhat.com/bzip2/
18 BuildRequires:  crossmingw32-gcc
19 Requires:       crossmingw32-runtime
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %define         no_install_post_strip   1
23
24 %define         target                  i386-mingw32
25 %define         target_platform         i386-pc-mingw32
26 %define         arch                    %{_prefix}/%{target}
27
28 %define         __cc                    %{target}-gcc
29 %define         __cxx                   %{target}-g++
30
31 %ifarch alpha sparc sparc64 sparcv9
32 %define         optflags        -O2
33 %endif
34
35 %description
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
42 identical.
43
44 %description -l es
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.
49
50 %description -l fr
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.
56
57 %description -l pl
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.
63
64 %description -l pt_BR
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
67 o gzip.
68
69 Note que o bzip2 não entende os arquivos do bzip original, nem os
70 arquivos do gzip.
71
72 %description -l ru
73 bzip2 ËÏÍÐÒÅÓÓÉÒÕÅÔ ÆÁÊÌÙ ÉÓÐÏÌØÚÕÑ ËÏÍÐÒÅÓÓÉÒÕÀÝÉÊ ÔÅËÓÔÏ×ÙÊ ÁÌÇÏÒÉÔÍ
74 ÂÌÏÞÎÏÊ ÓÏÒÔÉÒÏ×ËÉ Burrows-Wheeler É ËÏÄÉÒÏ×ÁÎÉÅ Huffman'Á.
75 äÏÓÔÉÇÁÅÍÁÑ ËÏÍÐÒÅÓÓÉÑ ÏÂÙÞÎÏ ÓÕÝÅÓÔ×ÅÎÎÏ ÌÕÞÛÅ ÄÏÓÔÉÇÁÅÍÏÊ ÂÏÌÅÅ
76 ÐÒÉ×ÙÞÎÙÍÉ ËÏÍÐÒÅÓÓÏÒÁÍÉ ÎÁ ÏÓÎÏ×Å LZ77/LZ78 É ÐÒÉÂÌÉÖÁÅÔÓÑ Ë ÔÏÊ,
77 ËÏÔÏÒÕÀ ÏÂÅÓÐÅÞÉ×ÁÅÔ ÓÅÍÅÊÓÔ×Ï ÓÔÁÔÉÓÔÉÞÅÓËÉÈ ËÏÍÐÒÅÓÓÏÒÏ× PPM.
78
79 %description -l uk
80 bzip2 ËÏÍÐÒÅÓÕ¤ ÆÁÊÌÉ ×ÉËÏÒÉÓÔÏ×ÕÀÞÉ ÔÅËÓÔÏ×ÉÊ ÁÌÇÏÒÉÔÍ ÂÌÏÞÎÏÇÏ
81 ÓÏÒÔÕ×ÁÎÎÑ Burrows-Wheeler ÔÁ ËÏÄÕ×ÁÎÎÑ Huffman'Á. ëÏÍÐÒÅÓ¦Ñ, ÑËÁ
82 ÄÏÓÑÇÁ¤ÔØÓÑ bzip2, ÑË ÐÒÁ×ÉÌÏ ËÒÁÝÁ ÚÁ ÔÕ, ÝÏ ÚÁÂÅÚÐÅÞÕÀÔØ
83 ÒÏÚÐÏ×ÓÀÄÖÅΦ ËÏÍÐÒÅÓÏÒÉ ÎÁ ÂÁÚ¦ LZ77/LZ78 ¦ ÎÁÂÌÉÖÁ¤ÔØÓÑ ÄÏ Ôϧ, ÝÏ
84 §§ ÚÁÂÅÚÐÅÞÕ¤ Ó¦ÍÅÊÓÔ×Ï ÓÔÁÔÉÓÔÉÞÎÉÈ ËÏÍÐÒÅÓÏҦנPPM.
85
86 %prep
87 %setup -q -n %{realname}-%{version}
88 %patch0 -p1
89
90 %build
91 %{__make} \
92         CC="%{__cc}" \
93         CFLAGS="%{rpmcflags} -Wall \$(BIGFILES)"
94
95 %install
96 rm -rf $RPM_BUILD_ROOT
97
98 %{__make} install \
99         DESTDIR=$RPM_BUILD_ROOT \
100         PREFIX=$RPM_BUILD_ROOT%{arch}
101
102 install libbz2.dll $RPM_BUILD_ROOT%{arch}/bin
103
104 %if 0%{!?debug:1}
105 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{arch}/bin/*.dll
106 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{arch}/lib/*.a
107 %endif
108
109 %clean
110 rm -rf $RPM_BUILD_ROOT
111
112 %files
113 %defattr(644,root,root,755)
114 %{arch}/bin/libbz2.dll
115 %{arch}/lib/libbz2.a
116 %{arch}/include/bzlib.h
This page took 0.071949 seconds and 3 git commands to generate.