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