]> git.pld-linux.org Git - packages/crossmingw32-glib2.git/blame - crossmingw32-glib2.spec
- updated to 2.16.5
[packages/crossmingw32-glib2.git] / crossmingw32-glib2.spec
CommitLineData
9bd01504 1Summary: Useful routines for 'C' programming - Ming32 cross version
ab514c36
ER
2Summary(cs.UTF-8): Šikovná knihovna s funkcemi pro pomocné programy
3Summary(da.UTF-8): Nyttige biblioteksfunktioner
4Summary(de.UTF-8): Eine nützliche Library von Dienstprogramm-Funktionen
5Summary(es.UTF-8): Conjunto de funciones gráficas utilitarias
6Summary(fi.UTF-8): Kirjasto, jossa on työkalufunktioita
7Summary(fr.UTF-8): Bibliothèque de fonctions utilitaires
8Summary(ja.UTF-8): 便利なユーティリティ関数のライブラリ
9Summary(pl.UTF-8): Biblioteka zawierająca wiele użytecznych funkcji C - wersja skrośna dla Ming32
10Summary(pt_BR.UTF-8): Conjunto de funções gráficas utilitárias
11Summary(tr.UTF-8): Yararlı ufak yordamlar kitaplığı
12Summary(zh_CN.UTF-8): 实用工具函数库
e528a0cc
JB
13%define realname glib
14Name: crossmingw32-%{realname}2
ee10c7d4 15Version: 2.16.5
07551a26 16Release: 1
745caf87 17License: LGPL v2+
794b98a7 18Group: Development/Libraries
706c24a3 19Source0: http://ftp.gnome.org/pub/GNOME/sources/glib/2.16/glib-%{version}.tar.bz2
ee10c7d4 20# Source0-md5: 039f02d47d4071322a3f00abf031e5d9
328832ab 21Patch0: %{name}-stacktest.patch
706c24a3 22Patch1: %{realname}2-lt.patch
c6b9b5e4 23URL: http://www.gtk.org/
e8cb87ac 24BuildRequires: autoconf >= 2.54
706c24a3 25BuildRequires: automake >= 1:1.7
34e8fb8f 26BuildRequires: crossmingw32-gcc
c9a1f2ad 27BuildRequires: crossmingw32-gettext
34e8fb8f 28BuildRequires: crossmingw32-libiconv
18367b2a 29BuildRequires: crossmingw32-pcre >= 7.6
794b98a7 30BuildRequires: libtool
706c24a3 31BuildRequires: pkgconfig >= 1:0.16.0
794b98a7 32Requires: crossmingw32-gettext
18367b2a 33Requires: crossmingw32-pcre >= 7.6
07551a26 34BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
c6b9b5e4 35
36%define no_install_post_strip 1
37
38%define target i386-mingw32
c9a1f2ad 39%define host %{target}
40%define target_platform %{target}
c6b9b5e4 41
328832ab 42%define _sysprefix /usr
43%define _prefix %{_sysprefix}/%{target}
26297d4f 44%define _libdir %{_prefix}/lib
328832ab 45%define _pkgconfigdir %{_prefix}/lib/pkgconfig
794b98a7 46%define _dlldir /usr/share/wine/windows/system
c6b9b5e4 47%define __cc %{target}-gcc
48%define __cxx %{target}-g++
49
50%description
51GLib, is a library which includes support routines for C such as
52lists, trees, hashes, memory allocation, and many other things. GLIB
53includes also generally useful data structures used by GIMP and many
54other.
55
9bd01504 56This package contains the cross version for Win32.
57
411499f2
JR
58%description -l cs.UTF-8
59Šikovná knihovna s funkcemi pro pomocné programy. Vývojové knihovny a
60hlavičky jsou v balíčku glib-devel.
c6b9b5e4 61
411499f2 62%description -l da.UTF-8
c6b9b5e4 63Nyttigt bibliotek med forskellige funktioner. Udviklings- biblioteker
64og headerfiler er i glib-devel pakken.
65
411499f2
JR
66%description -l de.UTF-8
67Eine nützliche Library von Dienstprogramm-Funktionen.
c6b9b5e4 68Entwicklungs-Libraries und Header befinden sich in glib-devel.
69
411499f2 70%description -l es.UTF-8
c6b9b5e4 71Conjunto de funciones utilitarias. Bibliotecas de desarrollo y
411499f2 72archivos de inclusión están en glib-devel.
c6b9b5e4 73
411499f2
JR
74%description -l fi.UTF-8
75Kirjasto, jossa on työkalufunktioita. Kehitysversiot ja
c6b9b5e4 76header-tiedostot ovat glib-devel-paketissa.
77
411499f2 78%description -l ja.UTF-8
411499f2
JR
79GLibはユーティリティ関数を集めた便利なライブラリです。このC言語用ライブラリは、
80いくつかの問題を解決するよう設計されており、多くのプログラムから要求される使いやすい
81関数を提供します。
c6b9b5e4 82
411499f2
JR
83GLibはGDK,
84GTK+他多くのアプリケーションで利用される。このライブラリに依存するアプリケーション
85等のためにこのglibパッケージをインストールしてください。
c6b9b5e4 86
411499f2
JR
87%description -l pl.UTF-8
88Glib jest zestawem bibliotek zawierających funkcje do obsługi list i
89drzew, funkcje mieszające, funkcje do alokacji pamięci i dużo innych
90podstawowych funkcji i różnych struktur danych używanych przez program
c6b9b5e4 91GIMP i wiele innych.
92
411499f2 93Ten pakiet zawiera wersję skrośną dla Win32.
9bd01504 94
411499f2
JR
95%description -l pt_BR.UTF-8
96Conjunto de funções utilitárias. Bibliotecas de desenvolvimento e
97arquivos de inclusão estão em glib-devel.
c6b9b5e4 98
411499f2
JR
99%description -l tr.UTF-8
100Yararlı yordamlar kitaplığı. Geliştirme kitaplıkları ve başlık
101dosyaları glib-devel paketinde yer almaktadır.
c6b9b5e4 102
794b98a7
JB
103%package dll
104Summary: DLL glib2 libraries for Windows
105Summary(pl.UTF-8): Biblioteki DLL glib2 dla Windows
106Group: Applications/Emulators
107Requires: crossmingw32-gettext-dll
18367b2a 108Requires: crossmingw32-pcre-dll >= 7.6
794b98a7
JB
109Requires: wine
110
111%description dll
112DLL glib2 libraries for Windows.
113
114%description dll -l pl.UTF-8
115Biblioteki DLL glib2 dla Windows.
116
c6b9b5e4 117%prep
e528a0cc 118%setup -q -n %{realname}-%{version}
328832ab 119%patch0 -p1
706c24a3 120%patch1 -p1
328832ab 121
122%build
2ff0a90e 123export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig
328832ab 124%{__libtoolize}
125%{__aclocal}
126%{__automake}
127%{__autoconf}
128%configure \
c9a1f2ad 129 --target=%{target} \
130 --host=%{target} \
131 --disable-gtk-doc \
fdf96f32
JB
132 --enable-shared \
133 --with-pcre=system
328832ab 134
135%{__make}
c6b9b5e4 136
137%install
138rm -rf $RPM_BUILD_ROOT
34e8fb8f 139
328832ab 140%{__make} install \
141 DESTDIR=$RPM_BUILD_ROOT
c6b9b5e4 142
794b98a7
JB
143install -d $RPM_BUILD_ROOT%{_dlldir}
144mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
b6da3f2c 145
ce3c9485
JB
146%if 0%{!?debug:1}
147%{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
148%{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
149%endif
150
794b98a7
JB
151rm -f $RPM_BUILD_ROOT%{_libdir}/charset.alias
152# use system glib2-devel instead
153rm -rf $RPM_BUILD_ROOT%{_datadir}/{aclocal,glib-2.0,gtk-doc,man}
154# runtime
155rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
c6b9b5e4 156
157%clean
158rm -rf $RPM_BUILD_ROOT
159
794b98a7 160%files
37a1690c 161%defattr(644,root,root,755)
706c24a3 162%{_libdir}/libgio-2.0.dll.a
794b98a7
JB
163%{_libdir}/libglib-2.0.dll.a
164%{_libdir}/libgmodule-2.0.dll.a
165%{_libdir}/libgobject-2.0.dll.a
166%{_libdir}/libgthread-2.0.dll.a
706c24a3 167%{_libdir}/libgio-2.0.la
794b98a7
JB
168%{_libdir}/libglib-2.0.la
169%{_libdir}/libgmodule-2.0.la
170%{_libdir}/libgobject-2.0.la
171%{_libdir}/libgthread-2.0.la
d81a5388 172%{_libdir}/gio-2.0.def
794b98a7
JB
173%{_libdir}/glib-2.0.def
174%{_libdir}/gmodule-2.0.def
175%{_libdir}/gobject-2.0.def
176%{_libdir}/gthread-2.0.def
328832ab 177%{_includedir}/glib-2.0
794b98a7 178%dir %{_libdir}/glib-2.0
328832ab 179%dir %{_libdir}/glib-2.0/include
180%{_libdir}/glib-2.0/include/glibconfig.h
706c24a3 181%{_pkgconfigdir}/gio-2.0.pc
26297d4f
JB
182%{_pkgconfigdir}/glib-2.0.pc
183%{_pkgconfigdir}/gmodule-2.0.pc
184%{_pkgconfigdir}/gmodule-export-2.0.pc
185%{_pkgconfigdir}/gmodule-no-export-2.0.pc
186%{_pkgconfigdir}/gobject-2.0.pc
187%{_pkgconfigdir}/gthread-2.0.pc
794b98a7
JB
188
189%files dll
190%defattr(644,root,root,755)
706c24a3 191%{_dlldir}/libgio-2.0-*.dll
794b98a7
JB
192%{_dlldir}/libglib-2.0-*.dll
193%{_dlldir}/libgmodule-2.0-*.dll
194%{_dlldir}/libgobject-2.0-*.dll
195%{_dlldir}/libgthread-2.0-*.dll
This page took 0.079833 seconds and 4 git commands to generate.