]>
Commit | Line | Data |
---|---|---|
8f6d1a2c | 1 | # |
2 | # Conditional build: | |
57701eb1 | 3 | %bcond_with macmenu # experimental mac/kde-like |
c3844957 | 4 | %bcond_without apidocs # disable gtk-doc |
1cfc56f6 | 5 | %bcond_without cups # disable CUPS support |
86d027d1 | 6 | %bcond_without static_libs # don't build static library |
8f6d1a2c | 7 | # |
f4d0ca3c | 8 | Summary: The Gimp Toolkit |
2602e0ec ER |
9 | Summary(cs.UTF-8): Sada nástrojů pro Gimp |
10 | Summary(de.UTF-8): Der Gimp-Toolkit | |
11 | Summary(fi.UTF-8): Gimp-työkalukokoelma | |
12 | Summary(fr.UTF-8): Le toolkit de Gimp | |
13 | Summary(it.UTF-8): Il toolkit per Gimp | |
14 | Summary(pl.UTF-8): Gimp Toolkit | |
15 | Summary(tr.UTF-8): Gimp ToolKit arayüz kitaplığı | |
94be343e | 16 | Name: gtk+2 |
024984dd | 17 | Version: 2.12.1 |
a22dffb8 | 18 | Release: 3 |
f9ca522f | 19 | Epoch: 2 |
099be6e8 | 20 | License: LGPL v2+ |
f4d0ca3c | 21 | Group: X11/Libraries |
6b1f8c28 | 22 | #Source0: ftp://ftp.gtk.org/pub/gtk/v2.10/gtk+-%{version}.tar.bz2 |
24738a6b | 23 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gtk+/2.12/gtk+-%{version}.tar.bz2 |
024984dd | 24 | # Source0-md5: c46f34addc2fe3ea6756055d59fb8856 |
f9ca522f | 25 | Patch0: %{name}-insensitive-iain.patch |
57701eb1 | 26 | Patch1: %{name}-menu-mac.patch |
76111637 | 27 | Patch2: %{name}-compose-table.patch.bz2 |
37368d16 | 28 | Patch3: %{name}-objective-c++.patch |
f4d0ca3c | 29 | URL: http://www.gtk.org/ |
024984dd | 30 | BuildRequires: atk-devel >= 1:1.20.0 |
f9ca522f | 31 | BuildRequires: autoconf >= 2.54 |
3d6d603f | 32 | BuildRequires: automake >= 1:1.7 |
71261649 | 33 | BuildRequires: cairo-devel >= 1.4.0 |
1cfc56f6 | 34 | %{?with_cups:BuildRequires: cups-devel} |
f9ca522f | 35 | BuildRequires: docbook-dtd412-xml |
36 | BuildRequires: docbook-style-xsl | |
f4d0ca3c | 37 | BuildRequires: gettext-devel |
024984dd | 38 | BuildRequires: glib2-devel >= 1:2.14.2 |
71261649 MB |
39 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.8} |
40 | BuildRequires: gtk-doc-automake >= 1.8 | |
8ba31ccb | 41 | BuildRequires: libjpeg-devel |
42 | BuildRequires: libpng-devel | |
bae602ac | 43 | BuildRequires: libtiff-devel |
060affee | 44 | BuildRequires: libtool >= 1:1.4.2-9 |
24738a6b | 45 | BuildRequires: libxml2-progs >= 1:2.6.30 |
71261649 | 46 | BuildRequires: libxslt-progs >= 1.1.20 |
024984dd | 47 | BuildRequires: pango-devel >= 1:1.18.3 |
f9ca522f | 48 | BuildRequires: perl-base |
01c9c76b | 49 | BuildRequires: pkgconfig |
2d64e5ba | 50 | BuildRequires: rpmbuild(macros) >= 1.197 |
88d12146 | 51 | BuildRequires: xorg-lib-libX11-devel |
52 | BuildRequires: xorg-lib-libXcursor-devel | |
53 | BuildRequires: xorg-lib-libXext-devel | |
54 | BuildRequires: xorg-lib-libXft-devel | |
2071d7b2 | 55 | BuildRequires: xorg-lib-libXi-devel |
88d12146 | 56 | BuildRequires: xorg-lib-libXinerama-devel |
57 | BuildRequires: xorg-lib-libXrandr-devel | |
58 | BuildRequires: xorg-lib-libXrender-devel | |
024984dd | 59 | Requires: atk >= 1:1.20.0 |
71261649 | 60 | Requires: cairo >= 1.4.0 |
024984dd MB |
61 | Requires: glib2 >= 1:2.14.2 |
62 | Requires: pango >= 1:1.18.3 | |
9d638349 | 63 | Obsoletes: gtk2 |
7c655924 | 64 | Conflicts: gtk2-engines < 1:2.2.0-6 |
e1c87a15 JB |
65 | # autopanog.exe crashes with gtk+2 2.8.x and libgdiplus 1.1.8 |
66 | Conflicts: libgdiplus < 1.1.9 | |
812a098a | 67 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
f4d0ca3c | 68 | |
8f2bfc77 | 69 | %define abivers 2.10.0 |
70 | ||
f4d0ca3c | 71 | %description |
7f31ceb9 | 72 | GTK+, which stands for the Gimp ToolKit, is a library for creating |
f4d0ca3c | 73 | graphical user interfaces for the X Window System. It is designed to |
7f31ceb9 | 74 | be small, efficient, and flexible. GTK+ is written in C with a very |
74e95a76 | 75 | object-oriented approach. GDK (part of GTK+) is a drawing toolkit |
f4d0ca3c | 76 | which provides a thin layer over Xlib to help automate things like |
74e95a76 | 77 | dealing with different color depths, and GTK is a widget set for |
f4d0ca3c AF |
78 | creating user interfaces. |
79 | ||
869b0b0f JR |
80 | %description -l cs.UTF-8 |
81 | Knihovny X původně psané pro GIMP, které nyní používá také řada jiných | |
82 | programů. | |
f4d0ca3c | 83 | |
869b0b0f | 84 | %description -l da.UTF-8 |
f4d0ca3c AF |
85 | X biblioteker, oprindeligt udviklet til GIMP, men anvendes nu af flere |
86 | forskellige programmer. | |
87 | ||
869b0b0f JR |
88 | %description -l de.UTF-8 |
89 | Die X-Libraries, die ursprünglich für GIMP geschrieben wurden und | |
90 | mittlerweile für eine ganze Reihe anderer Programme benutzt werden. | |
f4d0ca3c | 91 | |
869b0b0f | 92 | %description -l fr.UTF-8 |
f4d0ca3c | 93 | X-kirjastot, jotka alunperin kirjoitettiin GIMP:lle, mutta joita |
869b0b0f | 94 | käytetään nyt myös useissa muissakin ohjelmissa. |
f4d0ca3c | 95 | |
869b0b0f | 96 | %description -l it.UTF-8 |
f4d0ca3c AF |
97 | Libreria X scritta per GIMP. Viene usata da diversi programmi. |
98 | ||
869b0b0f JR |
99 | %description -l pl.UTF-8 |
100 | GTK+, która to biblioteka stała się podstawą programu Gimp zawiera | |
101 | funkcje do tworzenia graficznego interfejsu użytkownika pod X Window. | |
102 | Była tworzona z założeniem żeby była mała, efektywna i wygodna. GTK+ | |
103 | jest napisane w C z podejściem zorientowanym bardzo obiektowo. GDK | |
104 | (część GTK+) jest warstwą pośrednią pomiędzy Xlib a właściwym GTK | |
105 | zapewniającą pracę niezależnie od głębi koloru (ilości bitów na | |
106 | piksel). GTK (druga część GTK+) jest natomiast już zbiorem różnego | |
107 | rodzaju kontrolek służących do tworzenia interfejsu użytkownika. | |
f4d0ca3c | 108 | |
869b0b0f JR |
109 | %description -l tr.UTF-8 |
110 | Başlangıçta GIMP için yazılmış X kitaplıkları. Şu anda başka | |
111 | programlarca da kullanılmaktadır. | |
f4d0ca3c AF |
112 | |
113 | %package devel | |
7f31ceb9 | 114 | Summary: GTK+ header files and development documentation |
2602e0ec ER |
115 | Summary(cs.UTF-8): Sada nástrojů GIMP a kreslící kit GIMP |
116 | Summary(da.UTF-8): GIMP Toolkit og GIMP Tegnings-værktøj | |
117 | Summary(de.UTF-8): GIMP Toolkit und GIMP Drawing Kit | |
118 | Summary(fi.UTF-8): Gimp-työkalukokoelma ja Gimp-piirtotyökalut | |
119 | Summary(fr.UTF-8): Toolkit de GIMP (GTK) et Kit de dessin de GIMP (GDK) | |
120 | Summary(it.UTF-8): GIMP Toolkit and GIMP Drawing Kit | |
121 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do GTK+ | |
122 | Summary(tr.UTF-8): GIMP araç takımı ve çizim takımı | |
f4d0ca3c | 123 | Group: X11/Development/Libraries |
f9ca522f | 124 | Requires: %{name} = %{epoch}:%{version}-%{release} |
024984dd MB |
125 | Requires: atk-devel >= 1:1.20.0 |
126 | Requires: glib2-devel >= 1:2.14.2 | |
127 | Requires: pango-devel >= 1:1.18.3 | |
88d12146 | 128 | Requires: xorg-lib-libX11-devel |
129 | Requires: xorg-lib-libXcursor-devel | |
130 | Requires: xorg-lib-libXext-devel | |
131 | Requires: xorg-lib-libXft-devel | |
dee40e6b | 132 | Requires: xorg-lib-libXi-devel |
88d12146 | 133 | Requires: xorg-lib-libXinerama-devel |
134 | Requires: xorg-lib-libXrandr-devel | |
135 | Requires: xorg-lib-libXrender-devel | |
9d638349 | 136 | Obsoletes: gtk2-devel |
f4d0ca3c AF |
137 | |
138 | %description devel | |
7f31ceb9 | 139 | Header files and development documentation for the GTK+ libraries. |
f4d0ca3c | 140 | |
869b0b0f JR |
141 | %description devel -l pl.UTF-8 |
142 | Pliki nagłówkowe i dokumentacja do bibliotek GTK+. | |
f4d0ca3c AF |
143 | |
144 | %package static | |
7f31ceb9 | 145 | Summary: GTK+ static libraries |
2602e0ec | 146 | Summary(pl.UTF-8): Biblioteki statyczne GTK+ |
f4d0ca3c | 147 | Group: X11/Development/Libraries |
f9ca522f | 148 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
f4d0ca3c AF |
149 | |
150 | %description static | |
7f31ceb9 | 151 | GTK+ static libraries. |
f4d0ca3c | 152 | |
869b0b0f | 153 | %description static -l pl.UTF-8 |
7f31ceb9 | 154 | Biblioteki statyczne GTK+ |
f4d0ca3c | 155 | |
d58327d0 | 156 | %package apidocs |
157 | Summary: GTK+ API documentation | |
2602e0ec | 158 | Summary(pl.UTF-8): Dokumentacja API GTK+ |
d58327d0 | 159 | Group: Documentation |
160 | Requires: gtk-doc-common | |
161 | ||
162 | %description apidocs | |
163 | GTK+ API documentation. | |
164 | ||
869b0b0f | 165 | %description apidocs -l pl.UTF-8 |
d58327d0 | 166 | Dokumentacja API GTK+. |
167 | ||
168 | %package examples | |
f384505a | 169 | Summary: GTK+ - example programs |
2602e0ec | 170 | Summary(pl.UTF-8): GTK+ - programy przykładowe |
f384505a | 171 | Group: X11/Development/Libraries |
43146b6b | 172 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
d58327d0 | 173 | |
174 | %description examples | |
175 | GTK+ - example programs. | |
176 | ||
869b0b0f JR |
177 | %description examples -l pl.UTF-8 |
178 | GTK+ - przykładowe programy. | |
d58327d0 | 179 | |
f4d0ca3c | 180 | %prep |
42033f63 | 181 | %setup -q -n gtk+-%{version} |
ceb159c9 | 182 | %patch0 -p1 |
57701eb1 | 183 | %{?with_macmenu:%patch1 -p0} |
76111637 | 184 | %patch2 -p1 |
37368d16 | 185 | %patch3 -p1 |
f4d0ca3c AF |
186 | |
187 | %build | |
d17e131c | 188 | %{?with_apidocs:%{__gtkdocize}} |
31ee3695 | 189 | %{__libtoolize} |
2d64e5ba | 190 | %{__glib_gettextize} |
6966c6aa | 191 | %{__aclocal} |
7ca534e7 | 192 | %{__autoheader} |
f9ca522f | 193 | %{__autoconf} |
194 | %{__automake} | |
f4d0ca3c | 195 | %configure \ |
1cfc56f6 | 196 | %{!?with_cups:ac_cv_path_CUPS_CONFIG=no} \ |
2d64e5ba | 197 | %{?debug:--enable-debug=yes} \ |
14e63668 | 198 | --%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \ |
2d64e5ba | 199 | --enable-man \ |
f4d0ca3c | 200 | --enable-shm \ |
0d288597 | 201 | --%{?with_static_libs:en}%{!?with_static_libs:dis}able-static \ |
39470fc4 | 202 | --with-gdktarget=x11 \ |
c3844957 | 203 | %{?with_apidocs:--with-html-dir=%{_gtkdocdir}} \ |
d58327d0 | 204 | --with-xinput=yes |
94be343e | 205 | %{__make} |
f4d0ca3c AF |
206 | |
207 | %install | |
208 | rm -rf $RPM_BUILD_ROOT | |
9b7df8a5 | 209 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} \ |
8f2bfc77 | 210 | $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/%{abivers}/filesystems |
f4d0ca3c AF |
211 | |
212 | %{__make} install \ | |
213 | DESTDIR=$RPM_BUILD_ROOT \ | |
94be343e | 214 | m4datadir=%{_aclocaldir} \ |
060affee | 215 | pkgconfigdir=%{_pkgconfigdir} |
f4d0ca3c | 216 | |
737cc900 AF |
217 | touch $RPM_BUILD_ROOT%{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders |
218 | touch $RPM_BUILD_ROOT%{_sysconfdir}/gtk-2.0/gtk.immodules | |
33137503 | 219 | |
96ccaff9 | 220 | cp -r examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
221 | ||
55b30b18 | 222 | # remove unsupported locale scheme |
2a2855ba | 223 | rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/{en@IPA,io} |
c6103d6d | 224 | # shut up check-files (static modules and *.la for modules) |
9b7df8a5 | 225 | rm -rf $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/%{abivers}/*/*.{a,la} |
c6103d6d | 226 | |
7f31ceb9 | 227 | # for various GTK+2 modules |
9b7df8a5 | 228 | install -d $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/modules |
55b30b18 | 229 | |
24738a6b | 230 | rm -r $RPM_BUILD_ROOT%{_datadir}/locale/az_IR |
2aa0e20a | 231 | |
f9ca522f | 232 | %find_lang %{name} --all-name |
f4d0ca3c AF |
233 | |
234 | %clean | |
235 | rm -rf $RPM_BUILD_ROOT | |
236 | ||
737cc900 | 237 | %post |
291bd4b5 | 238 | /sbin/ldconfig |
737cc900 | 239 | umask 022 |
a22dffb8 ER |
240 | %{_bindir}/gdk-pixbuf-query-loaders > %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders |
241 | %{_bindir}/gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-2.0/gtk.immodules | |
f9ca522f | 242 | exit 0 |
737cc900 | 243 | |
924f8b2f | 244 | %postun |
291bd4b5 | 245 | /sbin/ldconfig |
a22dffb8 | 246 | if [ "$1" = "0" ]; then |
924f8b2f | 247 | umask 022 |
a22dffb8 ER |
248 | %{_bindir}/gdk-pixbuf-query-loaders > %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders |
249 | %{_bindir}/gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-2.0/gtk.immodules | |
924f8b2f | 250 | fi |
f7b61fed JB |
251 | exit 0 |
252 | ||
253 | %triggerpostun -- gtk+2 < 2:2.4.0 | |
254 | umask 022 | |
a22dffb8 ER |
255 | %{_bindir}/gdk-pixbuf-query-loaders > %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders |
256 | %{_bindir}/gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-2.0/gtk.immodules | |
f7b61fed | 257 | exit 0 |
f4d0ca3c | 258 | |
f9ca522f | 259 | %files -f %{name}.lang |
f4d0ca3c | 260 | %defattr(644,root,root,755) |
f9ca522f | 261 | %doc AUTHORS NEWS README |
94be343e AM |
262 | %attr(755,root,root) %{_bindir}/gtk-demo |
263 | %attr(755,root,root) %{_bindir}/gtk-query* | |
4678f014 | 264 | %attr(755,root,root) %{_bindir}/gtk-update-icon-cache |
737cc900 | 265 | %attr(755,root,root) %{_bindir}/gdk-pixbuf-query-loaders |
f4d0ca3c | 266 | %attr(755,root,root) %{_libdir}/lib*.so.*.* |
8f2bfc77 | 267 | |
4a14682b | 268 | %dir %{_libdir}/gtk-2.0 |
269 | %dir %{_libdir}/gtk-2.0/modules | |
270 | %dir %{_libdir}/gtk-2.0/%{abivers} | |
271 | %dir %{_libdir}/gtk-2.0/%{abivers}/engines | |
272 | %dir %{_libdir}/gtk-2.0/%{abivers}/filesystems | |
273 | %dir %{_libdir}/gtk-2.0/%{abivers}/immodules | |
274 | %dir %{_libdir}/gtk-2.0/%{abivers}/loaders | |
275 | %dir %{_libdir}/gtk-2.0/%{abivers}/printbackends | |
276 | %attr(755,root,root) %{_libdir}/gtk-2.0/%{abivers}/engines/libpixmap.so | |
277 | %attr(755,root,root) %{_libdir}/gtk-2.0/%{abivers}/immodules/*.so | |
278 | %attr(755,root,root) %{_libdir}/gtk-2.0/%{abivers}/loaders/*.so | |
279 | %attr(755,root,root) %{_libdir}/gtk-2.0/%{abivers}/printbackends/*.so | |
9b7df8a5 JB |
280 | |
281 | # XXX: just demo data - move to examples? | |
4a14682b | 282 | %{_datadir}/gtk-2.0 |
9b7df8a5 | 283 | |
4a14682b | 284 | %dir %{_sysconfdir}/gtk-2.0 |
285 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gtk-2.0/im-multipress.conf | |
286 | %ghost %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders | |
287 | %ghost %{_sysconfdir}/gtk-2.0/gtk.immodules | |
737cc900 AF |
288 | %dir %{_datadir}/themes/Default/gtk-* |
289 | %{_datadir}/themes/Default/gtk-*/gtkrc | |
bae602ac | 290 | %dir %{_datadir}/themes/Emacs |
737cc900 AF |
291 | %dir %{_datadir}/themes/Emacs/gtk-* |
292 | %{_datadir}/themes/Emacs/gtk-*/gtkrc | |
59dac2f1 AM |
293 | %dir %{_datadir}/themes/Raleigh |
294 | %dir %{_datadir}/themes/Raleigh/gtk-* | |
295 | %{_datadir}/themes/Raleigh/gtk-*/gtkrc | |
f4d0ca3c AF |
296 | |
297 | %files devel | |
298 | %defattr(644,root,root,755) | |
96ccaff9 | 299 | %doc ChangeLog |
24738a6b | 300 | %attr(755,root,root) %{_bindir}/gtk-builder-convert |
94be343e | 301 | %attr(755,root,root) %{_bindir}/*csource |
f4d0ca3c | 302 | %attr(755,root,root) %{_libdir}/lib*.so |
beef18ef | 303 | %{_libdir}/lib*.la |
f4d0ca3c | 304 | %{_includedir}/* |
94be343e | 305 | %{_aclocaldir}/*.m4 |
4a14682b | 306 | %{_libdir}/gtk-2.0/include |
94be343e AM |
307 | %{_pkgconfigdir}/*.pc |
308 | %{_mandir}/man1/* | |
f4d0ca3c | 309 | |
55f48af8 | 310 | %if %{with static_libs} |
f4d0ca3c AF |
311 | %files static |
312 | %defattr(644,root,root,755) | |
313 | %{_libdir}/lib*.a | |
55f48af8 | 314 | %endif |
d58327d0 | 315 | |
316 | %if %{with apidocs} | |
317 | %files apidocs | |
318 | %defattr(644,root,root,755) | |
319 | %{_gtkdocdir}/* | |
320 | %endif | |
321 | ||
322 | %files examples | |
323 | %defattr(644,root,root,755) | |
324 | %{_examplesdir}/%{name}-%{version} |