]> git.pld-linux.org Git - packages/crossmingw32-zlib.git/blobdiff - crossmingw32-zlib.spec
- build using configure
[packages/crossmingw32-zlib.git] / crossmingw32-zlib.spec
index 1810a708a5d1977e213b568ea324c5abaf1bfe81..08d692cfad40752be15e6c7997f116e4b1d7f86f 100644 (file)
@@ -2,26 +2,30 @@
 # Conditional build:
 %bcond_without asmopt  # without assmbler optimization for i586+
 #
 # Conditional build:
 %bcond_without asmopt  # without assmbler optimization for i586+
 #
-%ifnarch i586 i686 athlon
+# disable asmopt where not applicable
+%ifarch i386 i486
+%undefine      with_asmopt
+%endif
+%ifnarch %{ix86}
 %undefine      with_asmopt
 %endif
 %define                realname                zlib
 Summary:       Library for compression and decompression - Ming32 cross version
 %undefine      with_asmopt
 %endif
 %define                realname                zlib
 Summary:       Library for compression and decompression - Ming32 cross version
-Summary(de):   Library für die Komprimierung und Dekomprimierung
-Summary(es):   Biblioteca para compresión y descompresión
-Summary(fr):   bibliothèque de compression et décompression
-Summary(pl):   Biblioteka z podprogramami do kompresji i dekompresji - wersja skro¶na dla Ming32
-Summary(pt_BR):        Biblioteca para compressão e descompressão
-Summary(ru):   âÉÂÌÉÏÔÅËÁ ÄÌÑ ËÏÍÐÒÅÓÓÉÉ É ÄÅËÏÍÐÒÅÓÓÉÉ
-Summary(tr):   Sýkýþtýrma iþlemleri için kitaplýk
-Summary(uk):   â¦Â̦ÏÔÅËÁ ÄÌÑ ËÏÍÐÒÅÓ¦§ ÔÁ ÄÅËÏÍÐÒÅÓ¦§
+Summary(de.UTF-8):     Library für die Komprimierung und Dekomprimierung
+Summary(es.UTF-8):     Biblioteca para compresión y descompresión
+Summary(fr.UTF-8):     bibliothèque de compression et décompression
+Summary(pl.UTF-8):     Biblioteka z podprogramami do kompresji i dekompresji - wersja skrośna dla Ming32
+Summary(pt_BR.UTF-8):  Biblioteca para compressão e descompressão
+Summary(ru.UTF-8):     Библиотека для компрессии и декомпрессии
+Summary(tr.UTF-8):     Sıkıştırma işlemleri için kitaplık
+Summary(uk.UTF-8):     Бібліотека для компресії та декомпресії
 Name:          crossmingw32-%{realname}
 Name:          crossmingw32-%{realname}
-Version:       1.2.1
-Release:       2
+Version:       1.2.3
+Release:       1
 License:       BSD
 Group:         Libraries
 License:       BSD
 Group:         Libraries
-Source0:       http://www.gzip.org/zlib/%{realname}-%{version}.tar.gz
-# Source0-md5: ef1cb003448b4a53517b8f25adb12452
+Source0:       http://www.zlib.net/%{realname}-%{version}.tar.gz
+# Source0-md5: debc62758716a169df9f62e6ab2bc634
 Patch0:                %{realname}-asmopt.patch
 Patch1:                %{name}-shared.patch
 URL:           http://www.zlib.org/
 Patch0:                %{realname}-asmopt.patch
 Patch1:                %{name}-shared.patch
 URL:           http://www.zlib.org/
@@ -32,8 +36,15 @@ BuildRoot:   %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %define                no_install_post_strip   1
 
 %define                target                  i386-mingw32
 %define                no_install_post_strip   1
 
 %define                target                  i386-mingw32
+%define                target_platform         i386-pc-mingw32
 %define                arch                    %{_prefix}/%{target}
 %define                arch                    %{_prefix}/%{target}
+%define                gccarch                 %{_prefix}/lib/gcc-lib/%{target}
+%define                gcclib                  %{_prefix}/lib/gcc-lib/%{target}/%{version}
 
 
+%define                _sysprefix              /usr
+%define                _prefix                 %{_sysprefix}/%{target}
+%define                _aclocaldir             %{_datadir}/aclocal
+%define                _pkgconfigdir           %{_libdir}/pkgconfig
 %define                __cc                    %{target}-gcc
 %define                __cxx                   %{target}-g++
 
 %define                __cc                    %{target}-gcc
 %define                __cxx                   %{target}-g++
 
@@ -48,76 +59,76 @@ uncompressed data. This version of the library supports only one
 compression method (deflation) but other algorithms may be added later
 and will have the same stream interface.
 
 compression method (deflation) but other algorithms may be added later
 and will have the same stream interface.
 
-%description -l de
+%description -l de.UTF-8
 Die zlib-Komprimierungs-Library bietet speicherinterne Komprimierungs-
 Die zlib-Komprimierungs-Library bietet speicherinterne Komprimierungs-
-und Dekomprimierungsfunktionen, einschließlich Integritätsprüfungen
-der unkomprimierten Daten. Diese Version der Library unterstützt nur
-eine Komprimierungsmethode (Deflation), doch können weitere
-Algorithmen nachträglich eingefügt werden und haben dann dieselbe
-Oberfläche.
-
-%description -l es
-La biblioteca de compresión 'zlib' nos ofrece funciones de compresión
-y descompresión en memoria, incluyendo chequeo de la integridad de
-datos no comprimidos. Esta versión de la biblioteca soporta solamente
-un método de compresión (deflación) pero otros algoritmos pueden ser
-añadidos más tarde y tendrán la misma interface. Esta biblioteca se
+und Dekomprimierungsfunktionen, einschließlich Integritätsprüfungen
+der unkomprimierten Daten. Diese Version der Library unterstützt nur
+eine Komprimierungsmethode (Deflation), doch können weitere
+Algorithmen nachträglich eingefügt werden und haben dann dieselbe
+Oberfläche.
+
+%description -l es.UTF-8
+La biblioteca de compresión 'zlib' nos ofrece funciones de compresión
+y descompresión en memoria, incluyendo chequeo de la integridad de
+datos no comprimidos. Esta versión de la biblioteca soporta solamente
+un método de compresión (deflación) pero otros algoritmos pueden ser
+añadidos más tarde y tendrán la misma interface. Esta biblioteca se
 usa por varios programas de sistema.
 
 usa por varios programas de sistema.
 
-%description -l fr
-La bibliothèque de compression « zlib » offre des fonctions de
-compression et de décompression en mémoire, ainsi qu'une vérification
-de l'intégrité des données décompressées. La version de cette
-bibliothèque ne gère qu'une méthode de compression (deflation), mais
-d'autres algorithmes peuvent être ajoutés plus tard et auront la même
+%description -l fr.UTF-8
+La bibliothèque de compression Â« zlib Â» offre des fonctions de
+compression et de décompression en mémoire, ainsi qu'une vérification
+de l'intégrité des données décompressées. La version de cette
+bibliothèque ne gère qu'une méthode de compression (deflation), mais
+d'autres algorithmes peuvent être ajoutés plus tard et auront la même
 interface.
 
 interface.
 
-%description -l pl
-Biblioteka zlib udostêpnia podprogramy do kompresji i dekompresji w
-pamiêci operacyjnej w³±cznie ze sprawdzaniem integralno¶ci w trakcie
-dekompresji. Ta wersja biblioteki udostêpnia tylko jedn± metodê
-kompresji o nazwie deflation niemniej inne algorytmy mog± byæ
-dodawane udostêpniaj±c taki sam interfejs funkcji operuj±cych na
+%description -l pl.UTF-8
+Biblioteka zlib udostępnia podprogramy do kompresji i dekompresji w
+pamięci operacyjnej włącznie ze sprawdzaniem integralności w trakcie
+dekompresji. Ta wersja biblioteki udostępnia tylko jedną metodę
+kompresji o nazwie deflation niemniej inne algorytmy mogą być
+dodawane udostępniając taki sam interfejs funkcji operujących na
 strumieniu danych.
 
 strumieniu danych.
 
-%description -l pt_BR
-A biblioteca de compressão 'zlib' oferece funções de compressão e
-descompressão em memória, incluindo checagem da integridade de dados
-não comprimidos. Essa versão da biblioteca suporta somente um método
-de compressão (deflação) mas outros algoritmos podem ser adicionados
-mais tarde e terão a mesma interface. Essa biblioteca é usada por
-vários programas de sistema.
-
-%description -l ru
-âÉÂÌÉÏÔÅËÁ ËÏÍÐÒÅÓÓÉÉ zlib ÓÏÄÅÒÖÉÔ ÆÕÎËÃÉÉ ËÏÍÐÒÅÓÓÉÉ É ÄÅËÏÍÐÒÅÓÓÉÉ
-× ÐÁÍÑÔÉ, ×ËÌÀÞÁÀ ÐÒÏ×ÅÒËÕ ÃÅÌÏÓÔÎÏÓÔÉ ÄÅËÏÍÐÒÅÓÓÉÒÏ×ÁÎÎÙÈ ÄÁÎÎÙÈ. üÔÁ
-×ÅÒÓÉÑ ÐÏÄÄÅÒÖÉ×ÁÅÔ ÔÏÌØËÏ ÏÄÉΠÍÅÔÏÄ ËÏÍÐÒÅÓÓÉÉ (deflation), ÎÏ
-×ÐÏÓÌÅÄÓÔ×ÉÉ × ÎÅÅ ÍÏÇÕÔ ÂÙÔØ ÄÏÂÁ×ÌÅÎÙ É ÄÒÕÇÉÅ ÍÅÔÏÄÙ, É ×ÓÅ ÏÎÉ
-ÂÕÄÕÔ ÉÓÐÏÌØÚÏ×ÁÔØ ÔÏÔ ÖÅ ÐÏÔÏËÏ×ÙÊ ÉÎÔÅÒÆÅÊÓ.
-
-%description -l tr
-zlib sýkýþtýrma kitaplýðý bellekte sýkýþtýrma ve açma fonksiyonlarý
-içermektedir. Bu sürüm yalnýzca 'deflation' yöntemini
-desteklemektedir. Ancak baþka algoritmalarýn ayný arabirimle
-eriþilebilecek þekilde eklenme olasýlýðý vardýr. Bu kitaplýk bir dizi
-sistem yazýlýmý tarafýndan kullanýlmaktadýr.
-
-%description -l uk
-â¦Â̦ÏÔÅËÁ ËÏÍÐÒÅÓ¦§ zlib Í¦ÓÔÉÔØ ÆÕÎË槠ËÏÍÐÒÅÓ¦§ ÔÁ ÄÅËÏÍÐÒÅÓ¦§ ×
ÁÍ'ÑÔ¦ Ú ÐÅÒÅצÒËÏÀ Ã¦ÌÏÓÔ¦ ÄÅËÏÍÐÒÅÓÏ×ÁÎÉÈ ÄÁÎÉÈ. ãÑ ×ÅÒÓ¦Ñ
¦ÄÔÒÉÍÕ¤ Ô¦ÌØËÉ ÏÄÉΠÍÅÔÏÄ ËÏÍÐÒÅÓ¦§ (deflation), ÁÌÅ × ÍÁÊÂÕÔÎØÏÍÕ ×
-Îŧ ÍÏÖÕÔØ ÂÕÔÉ ÄÏÄÁΦ ¦ ¦ÎÛ¦ ÍÅÔÏÄÉ ¦ ×Ó¦ ×ÏÎÉ ÂÕÄÕÔØ ×ÉËÏÒÉÓÔÏ×Õ×ÁÔÉ
-ÔÏÊ ÖÅ ÓÁÍÉÊ ÐÏÔÏËÏ×ÉÊ ¦ÎÔÅÒÆÅÊÓ.
+%description -l pt_BR.UTF-8
+A biblioteca de compressão 'zlib' oferece funções de compressão e
+descompressão em memória, incluindo checagem da integridade de dados
+não comprimidos. Essa versão da biblioteca suporta somente um método
+de compressão (deflação) mas outros algoritmos podem ser adicionados
+mais tarde e terão a mesma interface. Essa biblioteca é usada por
+vários programas de sistema.
+
+%description -l ru.UTF-8
+Библиотека компрессии zlib содержит функции компрессии и декомпрессии
+в памяти, включаю проверку целостности декомпрессированных данных. Эта
+версия поддерживает только один метод компрессии (deflation), но
+впоследствии в нее могут быть добавлены и другие методы, и все они
+будут использовать тот же потоковый интерфейс.
+
+%description -l tr.UTF-8
+zlib sıkıştırma kitaplığı bellekte sıkıştırma ve açma fonksiyonları
+içermektedir. Bu sürüm yalnızca 'deflation' yöntemini
+desteklemektedir. Ancak başka algoritmaların aynı arabirimle
+erişilebilecek şekilde eklenme olasılığı vardır. Bu kitaplık bir dizi
+sistem yazılımı tarafından kullanılmaktadır.
+
+%description -l uk.UTF-8
+Бібліотека компресії zlib містить функції компресії та декомпресії в
¿Ð°Ð¼'Ñ\8fÑ\82Ñ\96 Ð· Ð¿ÐµÑ\80евÑ\96Ñ\80коÑ\8e Ñ\86Ñ\96лоÑ\81Ñ\82Ñ\96 Ð´ÐµÐºÐ¾Ð¼Ð¿Ñ\80еÑ\81ованиÑ\85 Ð´Ð°Ð½Ð¸Ñ\85. Ð¦Ñ\8f Ð²ÐµÑ\80Ñ\81Ñ\96Ñ\8f
¿Ñ\96дÑ\82Ñ\80имÑ\83Ñ\94 Ñ\82Ñ\96лÑ\8cки Ð¾Ð´Ð¸Ð½ Ð¼ÐµÑ\82од ÐºÐ¾Ð¼Ð¿Ñ\80еÑ\81Ñ\96Ñ\97 (deflation), Ð°Ð»Ðµ Ð² Ð¼Ð°Ð¹Ð±Ñ\83Ñ\82нÑ\8cомÑ\83 Ð²
+неї можуть бути додані і інші методи і всі вони будуть використовувати
+той же самий потоковий інтерфейс.
 
 %package dll
 Summary:       zlib - DLL library for Windows
 
 %package dll
 Summary:       zlib - DLL library for Windows
-Summary(pl):   zlib - biblioteka DLL dla Windows
+Summary(pl.UTF-8):     zlib - biblioteka DLL dla Windows
 Group:         Applications/Emulators
 
 %description dll
 zlib - DLL library for Windows.
 
 Group:         Applications/Emulators
 
 %description dll
 zlib - DLL library for Windows.
 
-%description dll -l pl
+%description dll -l pl.UTF-8
 zlib - biblioteka DLL dla Windows.
 
 %prep
 zlib - biblioteka DLL dla Windows.
 
 %prep
@@ -149,11 +160,48 @@ AR="%{target}-ar rc" \
 RANLIB="%{target}-ranlib" \
 CFLAGS="-D_REENTRANT %{rpmcflags}%{?with_asmopt: -DASMV}" \
 ./configure \
 RANLIB="%{target}-ranlib" \
 CFLAGS="-D_REENTRANT %{rpmcflags}%{?with_asmopt: -DASMV}" \
 ./configure \
-       --prefix=%{arch}
+       --prefix=%{_prefix}
 
 %{__make}
 %{__make} z.dll
 
 
 %{__make}
 %{__make} z.dll
 
+cat << "EOF" >> libz.la
+# libz.la - a libtool library file
+# Generated by ltmain.sh - GNU libtool 1.5.22 (1.1220.2.365 2005/12/18 22:14:06)
+# ^^^^ This line needs to stay
+# Made by czarny czarny at pld-linux.org
+
+# The name that we can dlopen(3).
+dlname='../bin/libz.dll'
+
+# Names of this library.
+library_names='libz.dll.a'
+
+# The name of the static archive.
+old_library='libz.a'
+
+# Libraries that this one depends upon.
+dependency_libs=''
+
+# Version information for libz.
+current=0
+age=0
+revision=0
+
+# Is this an already installed library?
+installed=yes
+
+# Should we warn about portability when linking against -modules?
+shouldnotlink=no
+
+# Files to dlopen/dlpreopen
+dlopen=''
+dlpreopen=''
+
+# Directory that this library needs to be installed in:
+libdir='%{_libdir}'
+EOF
+
 %if 0%{!?debug:1}
 %{target}-strip -R.comment -R.note z.dll
 %{target}-strip -g -R.comment -R.note *.a
 %if 0%{!?debug:1}
 %{target}-strip -R.comment -R.note z.dll
 %{target}-strip -g -R.comment -R.note *.a
@@ -161,24 +209,26 @@ CFLAGS="-D_REENTRANT %{rpmcflags}%{?with_asmopt: -DASMV}" \
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{arch}{/lib,/include}
-install -d $RPM_BUILD_ROOT%{_datadir}/wine/windows/system
+install -d $RPM_BUILD_ROOT%{_prefix}/{/lib,/include,/bin}
 
 %{__make} install \
 
 %{__make} install \
-       prefix=$RPM_BUILD_ROOT%{arch}
+       prefix=$RPM_BUILD_ROOT%{_prefix}
+    
 
 
-install zutil.h $RPM_BUILD_ROOT%{arch}/include
-install libz.dll.a $RPM_BUILD_ROOT%{arch}/lib
-install z.dll $RPM_BUILD_ROOT%{_datadir}/wine/windows/system
+install zutil.h $RPM_BUILD_ROOT%{_includedir}
+install libz.dll.a $RPM_BUILD_ROOT%{_libdir}
+install z.dll $RPM_BUILD_ROOT%{_bindir}/libz.dll
+install libz.la $RPM_BUILD_ROOT%{_libdir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%{arch}/include/*.h
-%{arch}/lib/*
+#%{arch}/include/*.h
+%{_includedir}/*.h
+%{_libdir}/*
 
 %files dll
 %defattr(644,root,root,755)
 
 %files dll
 %defattr(644,root,root,755)
-%{_datadir}/wine/windows/system/*
+%{_bindir}/*.dll
This page took 0.117498 seconds and 4 git commands to generate.