]> git.pld-linux.org Git - packages/crossmingw32-gtk+2.git/blame - crossmingw32-gtk+2.spec
- updated to 2.24.33 (final GTK+ 2.x release)
[packages/crossmingw32-gtk+2.git] / crossmingw32-gtk+2.spec
CommitLineData
403ad31c
JB
1Summary: The GIMP Toolkit - MinGW32 cross version
2Summary(pl.UTF-8): GIMP Toolkit - wersja skrośna dla MinGW32
7fdc3553 3Name: crossmingw32-gtk+2
f0229111
JB
4Version: 2.24.33
5Release: 1
ebdd473f 6License: LGPL v2+
48d19c97 7Group: Development/Libraries
f0229111
JB
8Source0: https://download.gnome.org/sources/gtk+/2.24/gtk+-%{version}.tar.xz
9# Source0-md5: 0118e98dbe0e4dab90ce475f9f0e6c0c
10URL: https://www.gtk.org/
5153e7ad
JB
11BuildRequires: autoconf >= 2.62
12BuildRequires: automake >= 1:1.7
61695393 13BuildRequires: crossmingw32-atk >= 1.30.0
52d1b4ed 14BuildRequires: crossmingw32-cairo >= 1.6
c344952f 15BuildRequires: crossmingw32-gcc
5153e7ad 16BuildRequires: crossmingw32-gdk-pixbuf2 >= 2.22.0
d335792d
JB
17BuildRequires: crossmingw32-glib2 >= 2.28.0
18BuildRequires: crossmingw32-pango >= 1.28.0
e50a77a0
JB
19# glib-genmarshal, glib-mkenums
20BuildRequires: glib2-devel >= 1:2.28.0
5fbdf08a 21BuildRequires: gtk-doc >= 1.17
5153e7ad 22BuildRequires: libtool
696c8b6e 23BuildRequires: pkgconfig >= 1:0.15
2933c807 24BuildRequires: sed >= 4.0
e61d6315
JB
25BuildRequires: tar >= 1:1.22
26BuildRequires: xz
61695393 27Requires: crossmingw32-atk >= 1.30.0
52d1b4ed 28Requires: crossmingw32-cairo >= 1.6
5153e7ad 29Requires: crossmingw32-gdk-pixbuf2 >= 2.22.0
d335792d
JB
30Requires: crossmingw32-glib2 >= 2.28.0
31Requires: crossmingw32-pango >= 1.28.0
8ceeecf3 32BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
68fb726e 33
75332778 34%define abivers 2.10.0
35
68fb726e 36%define no_install_post_strip 1
37
38%define target i386-mingw32
39%define target_platform i386-pc-mingw32
68fb726e 40
75332778 41%define _sysprefix /usr
42%define _prefix %{_sysprefix}/%{target}
390b4263 43%define _libdir %{_prefix}/lib
17addd2a 44%define _pkgconfigdir %{_prefix}/lib/pkgconfig
c344952f 45%define _dlldir /usr/share/wine/windows/system
68fb726e 46%define __cc %{target}-gcc
47%define __cxx %{target}-g++
9d3dd679 48%define __pkgconfig_provides %{nil}
27f9b062 49%define __pkgconfig_requires %{nil}
68fb726e 50
332a20bd 51%define _ssp_cflags %{nil}
65efc79a
JB
52%ifnarch %{ix86}
53# arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
54%define optflags -O2
55%endif
68f3ee9b 56# -z options are invalid for mingw linker, most of -f options are Linux-specific
65efc79a 57%define filterout_ld -Wl,-z,.*
68f3ee9b 58%define filterout_c -f[-a-z0-9=]*
75332778 59
68fb726e 60%description
65efc79a 61GTK+, which stands for the GIMP ToolKit, is a library for creating
68fb726e 62graphical user interfaces for the X Window System. It is designed to
86060e18 63be small, efficient, and flexible. GTK+ is written in C with a very
75c7a1f8 64object-oriented approach. GDK (part of GTK+) is a drawing toolkit
68fb726e 65which provides a thin layer over Xlib to help automate things like
75c7a1f8 66dealing with different color depths, and GTK is a widget set for
68fb726e 67creating user interfaces.
68
c344952f 69This package contains the cross version for Win32.
68fb726e 70
03785f8d 71%description -l pl.UTF-8
65efc79a 72GTK+, która to biblioteka stała się podstawą programu GIMP, zawiera
03785f8d
JR
73funkcje do tworzenia graficznego interfejsu użytkownika pod X Window.
74Była tworzona z założeniem żeby była mała, efektywna i wygodna. GTK+
75jest napisane w C z podejściem zorientowanym bardzo obiektowo. GDK
88b4a88a 76(część GTK+) jest warstwą pośrednią pomiędzy Xlib a właściwym GTK
03785f8d
JR
77zapewniającą pracę niezależnie od głębi koloru (ilości bitów na
78piksel). GTK (druga część GTK+) jest natomiast już zbiorem różnego
79rodzaju kontrolek służących do tworzenia interfejsu użytkownika.
80
c344952f
JB
81Ten pakiet zawiera wersję skrośną dla Win32.
82
83%package dll
84Summary: DLL GTK+ libraries for Windows
85Summary(pl.UTF-8): Biblioteki DLL GTK+ dla Windows
86Group: Applications/Emulators
61695393 87Requires: crossmingw32-atk-dll >= 1.30.0
52d1b4ed 88Requires: crossmingw32-cairo-dll >= 1.6
531fc2c5 89Requires: crossmingw32-gdk-pixbuf2-dll >= 2.22.0
d335792d
JB
90Requires: crossmingw32-glib2-dll >= 2.28.0
91Requires: crossmingw32-pango-dll >= 1.28.0
c344952f
JB
92Requires: wine
93
94%description dll
95DLL GTK+ libraries for Windows.
03785f8d 96
c344952f
JB
97%description dll -l pl.UTF-8
98Biblioteki DLL GTK+ dla Windows.
68fb726e 99
100%prep
75332778 101%setup -q -n gtk+-%{version}
fc84daf0
JB
102
103# avoid rebuilding builtin stock icons cache
104# (requires native gtk-update-icon-cache >= 2.24.24 < 3.0)
105touch gtk/stamp-icons gtk/gtkbuiltincache.h
75332778 106
9cb2b76e
JB
107# -Wl, makes recent libtools pass it as linker flag before any objects,
108# which is incompatible with as-needed; use plain -luuid with pass_all
109# hack below
110%{__sed} -i -e 's@-Wl,-luuid@-luuid@' configure.ac
111
75332778 112%build
696c8b6e 113export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig
75332778 114%{__libtoolize}
115%{__aclocal}
75332778 116%{__autoconf}
5153e7ad 117%{__autoheader}
75332778 118%{__automake}
119%configure \
120 --target=%{target} \
121 --host=%{target} \
4905614a 122 --disable-cups \
75332778 123 --disable-gtk-doc \
124 --disable-man \
75332778 125 --disable-xkb \
c94e0076 126 --with-gdktarget=win32 \
75332778 127 --without-x \
c344952f 128 --without-xinput
75332778 129
9cb2b76e
JB
130# by default mingw32 libtool doesn't allow to embed static libraries
131# in shared libraries (only import libraries are allowed); override this
132# to allow static libuuid
133%{__sed} -i -e 's/^\(deplibs_check_method\)=.*/\1="pass_all"/' libtool
2933c807
JB
134# avoid -luuid in shared linking
135%{__sed} -i -e 's/ -luuid//;$aLibs.private: -luuid' gdk*.pc
9cb2b76e 136
e50a77a0
JB
137%{__make} \
138 GLIB_GENMARSHAL=/usr/bin/glib-genmarshal \
139 GLIB_MKENUMS=/usr/bin/glib-mkenums
68fb726e 140
141%install
142rm -rf $RPM_BUILD_ROOT
75332778 143
d335792d
JB
144# .def installation is not parallel-compliant
145%{__make} -j1 install \
c344952f
JB
146 DESTDIR=$RPM_BUILD_ROOT
147
148install -d $RPM_BUILD_ROOT%{_dlldir}
2933c807 149%{__mv} $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
75332778 150
c344952f
JB
151%if 0%{!?debug:1}
152%{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
153%{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
154%endif
75332778 155
e50a77a0
JB
156# runtime
157%{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/gtk-2.0/im-multipress.conf
158%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{gtk-2.0,locale,themes}
159%{__rm} $RPM_BUILD_ROOT%{_bindir}/gtk*.exe
160# development - use from native gtk+2 if necessary
161%{__rm} $RPM_BUILD_ROOT%{_bindir}/gtk-builder-convert
162%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{aclocal,gtk-doc}
75332778 163# shut up check-files (static modules and *.la for modules)
d335792d
JB
164%{__rm} -r $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/modules/*.{a,la}
165%{__rm} -r $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/2.*/*/*.{a,la}
322cd77d
JB
166# obsoleted by pkg-config
167%{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
75332778 168
68fb726e 169%clean
170rm -rf $RPM_BUILD_ROOT
171
172%files
a05b8fdb 173%defattr(644,root,root,755)
65efc79a 174%{_libdir}/libgailutil.dll.a
390b4263 175%{_libdir}/libgdk-win32-2.0.dll.a
390b4263 176%{_libdir}/libgtk-win32-2.0.dll.a
61695393 177%{_libdir}/gailutil.def
390b4263 178%{_libdir}/gdk-win32-2.0.def
390b4263 179%{_libdir}/gtk-win32-2.0.def
75332778 180%dir %{_libdir}/gtk-2.0
c344952f 181%{_libdir}/gtk-2.0/include
65efc79a 182%{_includedir}/gail-1.0
c344952f 183%{_includedir}/gtk-2.0
65efc79a 184%{_pkgconfigdir}/gail.pc
390b4263 185%{_pkgconfigdir}/gdk-2.0.pc
390b4263
JB
186%{_pkgconfigdir}/gdk-win32-2.0.pc
187%{_pkgconfigdir}/gtk+-2.0.pc
188%{_pkgconfigdir}/gtk+-win32-2.0.pc
c344952f
JB
189
190%files dll
191%defattr(644,root,root,755)
65efc79a 192%{_dlldir}/libgailutil-*.dll
390b4263 193%{_dlldir}/libgdk-win32-2.0-*.dll
390b4263 194%{_dlldir}/libgtk-win32-2.0-*.dll
61695393
JB
195%dir %{_libdir}/gtk-2.0
196%dir %{_libdir}/gtk-2.0/2.10.0
197%dir %{_libdir}/gtk-2.0/2.10.0/engines
198%{_libdir}/gtk-2.0/2.10.0/engines/libpixmap.dll
199%{_libdir}/gtk-2.0/2.10.0/engines/libwimp.dll
200%dir %{_libdir}/gtk-2.0/2.10.0/immodules
201%{_libdir}/gtk-2.0/2.10.0/immodules/im-*.dll
61695393
JB
202%dir %{_libdir}/gtk-2.0/modules
203%{_libdir}/gtk-2.0/modules/libgail.dll
This page took 0.108135 seconds and 4 git commands to generate.