[2721] | 1 | # Note that this is NOT a relocatable package |
---|
| 2 | |
---|
[6179] | 3 | %define glib2_base_version 2.32.2 |
---|
[2721] | 4 | %define glib2_version %{glib2_base_version}-1 |
---|
[6011] | 5 | %define pango_base_version 1.30.0 |
---|
[2721] | 6 | %define pango_version %{pango_base_version}-1 |
---|
[6011] | 7 | %define atk_base_version 2.4.0 |
---|
[2721] | 8 | %define atk_version %{atk_base_version}-1 |
---|
[6011] | 9 | %define cairo_base_version 1.12.0 |
---|
[2721] | 10 | %define cairo_version %{cairo_base_version}-1 |
---|
[6011] | 11 | %define gdkpixbuf2_base_version 2.26.1 |
---|
[2721] | 12 | %define gdkpixbuf2_version %{gdkpixbuf2_base_version}-1 |
---|
[6011] | 13 | %define gobject_introspection_version 1.32.1 |
---|
[2721] | 14 | |
---|
| 15 | |
---|
[6179] | 16 | %define base_version 3.4.3 |
---|
[2721] | 17 | %define bin_version 3.0.0 |
---|
| 18 | |
---|
| 19 | # biarch support |
---|
| 20 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
| 21 | %define _query_suffix %{nil} |
---|
| 22 | %if %{build_compat32} |
---|
| 23 | %define _query_suffix -32 |
---|
| 24 | %endif |
---|
| 25 | |
---|
| 26 | Summary: The GIMP ToolKit (GTK+), a library for creating GUIs for X. |
---|
| 27 | Summary(ja): X 用 GUI 作成ライブラリ: GIMP ツールキット(GTK+) |
---|
| 28 | Name: gtk3 |
---|
| 29 | Version: %{base_version} |
---|
[4650] | 30 | Release: 1%{?_dist_release} |
---|
[2721] | 31 | License: LGPL |
---|
| 32 | Group: System Environment/Libraries |
---|
| 33 | |
---|
[6011] | 34 | Source: http://ftp.gnome.org/pub/GNOME/sources/gtk+/3.4/gtk+-%{version}.tar.xz |
---|
[2721] | 35 | |
---|
[4650] | 36 | Patch0: gtk3-3.1.12-gtk-widget-size-allocate.patch |
---|
[6011] | 37 | Patch100: gtk+-3.4.0-vine-default-theme.patch |
---|
[2721] | 38 | |
---|
| 39 | BuildRequires: atk-devel >= %{atk_version} |
---|
| 40 | BuildRequires: pango-devel >= %{pango_version} |
---|
| 41 | BuildRequires: glib2-devel >= %{glib2_version} |
---|
| 42 | BuildRequires: cairo-devel >= %{cairo_version} |
---|
| 43 | BuildRequires: gdk-pixbuf2-devel >= %{gdkpixbuf2_version} |
---|
| 44 | BuildRequires: gobject-introspection-devel >= %{gobject_introspection_version} |
---|
| 45 | BuildRequires: libtiff-devel >= 3.7 |
---|
| 46 | BuildRequires: libjpeg-turbo-devel |
---|
| 47 | BuildRequires: libpng-devel |
---|
| 48 | BuildRequires: jasper-devel |
---|
[4616] | 49 | BuildRequires: colord-devel |
---|
[2721] | 50 | BuildRequires: gtk-doc |
---|
| 51 | BuildRequires: gamin-devel |
---|
| 52 | BuildRequires: cups-devel |
---|
| 53 | BuildRequires: libICE-devel |
---|
| 54 | BuildRequires: libXext-devel |
---|
| 55 | BuildRequires: libXi-devel |
---|
| 56 | BuildRequires: libXrandr-devel >= 1.3.0 |
---|
| 57 | BuildRequires: libXrender-devel |
---|
| 58 | BuildRequires: libXcursor-devel |
---|
| 59 | BuildRequires: libXfixes-devel |
---|
| 60 | BuildRequires: libXinerama-devel |
---|
| 61 | BuildRequires: libXcomposite-devel |
---|
| 62 | BuildRequires: libXdamage-devel |
---|
| 63 | |
---|
| 64 | BuildRoot: %{_tmppath}/gtk-%{version}-root |
---|
| 65 | |
---|
| 66 | URL: http://www.gtk.org |
---|
| 67 | |
---|
| 68 | # required for icon themes apis to work |
---|
| 69 | Requires: hicolor-icon-theme |
---|
| 70 | |
---|
| 71 | # We need to prereq these so we can run gtk-query-immodules-2.0 |
---|
| 72 | Requires(post): glib2 >= %{glib2_version} |
---|
| 73 | Requires(post): atk >= %{atk_version} |
---|
| 74 | Requires(post): pango >= %{pango_version} |
---|
| 75 | Requires(post): libSM >= 1.1.0 |
---|
| 76 | # We need to prereq libtiff >= 3.7 to run gdk-pixbuf-query-loaders |
---|
| 77 | Requires(post): libtiff >= 3.7 |
---|
| 78 | Requires: libXrandr >= 1.3.0 |
---|
| 79 | |
---|
| 80 | Vendor: Project Vine |
---|
| 81 | Distribution: Vine Linux |
---|
| 82 | Packager: Takemikaduchi |
---|
| 83 | |
---|
| 84 | |
---|
| 85 | %description |
---|
| 86 | GTK+ is a multi-platform toolkit for creating graphical user |
---|
| 87 | interfaces. Offering a complete set of widgets, GTK+ is suitable for |
---|
| 88 | projects ranging from small one-off tools to complete application |
---|
| 89 | suites. |
---|
| 90 | |
---|
| 91 | %package devel |
---|
| 92 | Summary: Development tools for GTK+ applications. |
---|
| 93 | Summary(ja): GTK+ (GIMP ツールキット) アプリケーション開発ツール |
---|
| 94 | Group: Development/Libraries |
---|
| 95 | Requires: %{name} = %{version}-%{release} |
---|
| 96 | Requires: pango-devel >= %{pango_version} |
---|
| 97 | Requires: atk-devel >= %{atk_version} |
---|
| 98 | Requires: glib2-devel >= %{glib2_version} |
---|
| 99 | Requires: gdk-pixbuf2-devel >= %{gdkpixbuf2_version} |
---|
| 100 | Requires: libX11-devel, libXcursor-devel, libXinerama-devel |
---|
| 101 | Requires: libXext-devel, libXi-devel, libXrandr-devel |
---|
| 102 | Requires: libXfixes-devel, libXcomposite-devel |
---|
| 103 | Requires: libpng-devel |
---|
| 104 | |
---|
| 105 | %description devel |
---|
| 106 | The gtk+-devel package contains the header files and developer |
---|
| 107 | docs for the GTK+ widget toolkit. |
---|
| 108 | |
---|
| 109 | ####################################################################### |
---|
| 110 | # compat32 |
---|
| 111 | %package -n compat32-%{name} |
---|
| 112 | Summary: The GIMP ToolKit (GTK+), a library for creating GUIs for X. |
---|
| 113 | Summary(ja): X 用 GUI 作成ライブラリ: GIMP ツールキット(GTK+) |
---|
| 114 | Group: System Environment/Libraries |
---|
| 115 | Requires(post): compat32-glib2 >= %{glib2_version} |
---|
| 116 | Requires(post): compat32-atk >= %{atk_version} |
---|
| 117 | Requires(post): compat32-pango >= %{pango_version} |
---|
| 118 | Requires(post): compat32-libSM >= 1.1.0 |
---|
| 119 | Requires(post): compat32-libtiff >= 3.7 |
---|
| 120 | Requires: compat32-libXrandr >= 1.3.0 |
---|
| 121 | |
---|
| 122 | %description -n compat32-%{name} |
---|
| 123 | GTK+ is a multi-platform toolkit for creating graphical user |
---|
| 124 | interfaces. Offering a complete set of widgets, GTK+ is suitable for |
---|
| 125 | projects ranging from small one-off tools to complete application |
---|
| 126 | suites. |
---|
| 127 | |
---|
| 128 | %package -n compat32-%{name}-devel |
---|
| 129 | Summary: Development tools for GTK+ applications. |
---|
| 130 | Summary(ja): GTK+ (GIMP ツールキット) アプリケーション開発ツール |
---|
| 131 | Group: Development/Libraries |
---|
| 132 | Requires: compat32-%{name} = %{version}-%{release} |
---|
| 133 | Requires: %{name}-devel = %{version} |
---|
| 134 | Requires: compat32-libX11-devel, compat32-libXcursor-devel, compat32-libXinerama-devel |
---|
| 135 | Requires: compat32-libXext-devel, compat32-libXi-devel, compat32-libXrandr-devel |
---|
| 136 | Requires: compat32-libXfixes-devel, compat32-libXcomposite-devel |
---|
| 137 | Requires: compat32-libpng-devel |
---|
| 138 | |
---|
| 139 | %description -n compat32-%{name}-devel |
---|
| 140 | The gtk+-devel package contains the header files and developer |
---|
| 141 | docs for the GTK+ widget toolkit. |
---|
| 142 | |
---|
| 143 | |
---|
| 144 | %prep |
---|
| 145 | %setup -q -n gtk+-%{version} |
---|
[4650] | 146 | %patch0 -p1 -b .allocate |
---|
[2721] | 147 | %patch100 -p1 -b .vine-default-theme |
---|
| 148 | |
---|
| 149 | #for i in config.guess config.sub ; do |
---|
| 150 | # test -f %{_datadir}/libtool/$i && cp %{_datadir}/libtool/$i . |
---|
| 151 | #done |
---|
| 152 | |
---|
| 153 | %build |
---|
| 154 | |
---|
| 155 | # if ! pkg-config --exists pangoxft ; then |
---|
| 156 | # echo "No pangoxft.pc!" |
---|
| 157 | # exit 1 |
---|
| 158 | # fi |
---|
| 159 | |
---|
| 160 | #libtoolize --force --copy |
---|
| 161 | #autoreconf -i |
---|
| 162 | |
---|
| 163 | %configure --enable-gtk-doc \ |
---|
| 164 | --enable-man \ |
---|
| 165 | --enable-debug=minimum \ |
---|
| 166 | --disable-rebuilds \ |
---|
| 167 | --disable-glibtest \ |
---|
| 168 | --enable-introspection=yes \ |
---|
| 169 | --enable-xrandr \ |
---|
| 170 | --enable-xfixes \ |
---|
| 171 | --enable-xcomposite \ |
---|
| 172 | --enable-xdamage \ |
---|
| 173 | --enable-x11-backend |
---|
| 174 | |
---|
| 175 | make ARCH=%{_arch} |
---|
| 176 | #make |
---|
| 177 | |
---|
| 178 | %install |
---|
| 179 | rm -rf $RPM_BUILD_ROOT |
---|
| 180 | |
---|
| 181 | make install DESTDIR=$RPM_BUILD_ROOT RUN_QUERY_IMMODULES_TEST=false RUN_QUERY_LOADER_TEST=false |
---|
| 182 | |
---|
| 183 | %find_lang gtk30 |
---|
| 184 | %find_lang gtk30-properties |
---|
| 185 | |
---|
| 186 | cat gtk30.lang gtk30-properties.lang > all.lang |
---|
| 187 | |
---|
| 188 | mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/gtk-3.0 |
---|
| 189 | # |
---|
| 190 | # Make cleaned-up versions of examples and tutorial for installation |
---|
| 191 | # |
---|
| 192 | mkdir -p tmpdocs/tutorial |
---|
| 193 | # install -m 0644 docs/html/gtk_tut.html docs/html/gtk_tut-[0-9]*.html docs/html/*.gif tmpdocs/tutorial |
---|
| 194 | for dir in examples/* ; do |
---|
| 195 | if [ -d $dir ] ; then |
---|
| 196 | mkdir -p tmpdocs/$dir |
---|
| 197 | for file in $dir/* ; do |
---|
| 198 | case $file in |
---|
| 199 | *pre1.2.7) |
---|
| 200 | ;; |
---|
| 201 | *) |
---|
| 202 | install -m 0644 $file tmpdocs/$dir |
---|
| 203 | ;; |
---|
| 204 | esac |
---|
| 205 | done |
---|
| 206 | fi |
---|
| 207 | done |
---|
| 208 | |
---|
| 209 | |
---|
| 210 | # We need to have separate 32-bit and 64-bit binaries |
---|
| 211 | # for places where we have two copies of the GTK+ package installed. |
---|
| 212 | # (we might have x86_64 and i686 packages on the same system, for example.) |
---|
| 213 | %if %{build_compat32} |
---|
| 214 | cp $RPM_BUILD_ROOT%{_bindir}/gtk-query-immodules-3.0 \ |
---|
| 215 | $RPM_BUILD_ROOT%{_bindir}/gtk-query-immodules-3.0%{_query_suffix} |
---|
| 216 | %endif |
---|
| 217 | touch $RPM_BUILD_ROOT%{_libdir}/gtk-3.0/%{bin_version}/immodules.cache |
---|
| 218 | |
---|
| 219 | mkdir -p $RPM_BUILD_ROOT%{_libdir}/gtk-3.0/modules |
---|
| 220 | mkdir -p $RPM_BUILD_ROOT%{_libdir}/gtk-3.0/immodules |
---|
| 221 | |
---|
| 222 | # Remove unpackaged files |
---|
[4616] | 223 | find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' |
---|
[2721] | 224 | rm -rf $RPM_BUILD_ROOT%{_datadir}/themes/Raleigh |
---|
| 225 | |
---|
[4616] | 226 | mv $RPM_BUILD_ROOT%{_bindir}/gtk-update-icon-cache \ |
---|
| 227 | $RPM_BUILD_ROOT%{_bindir}/gtk-update-icon-cache-3.0 |
---|
| 228 | |
---|
[2721] | 229 | %clean |
---|
| 230 | rm -rf $RPM_BUILD_ROOT |
---|
| 231 | |
---|
| 232 | %post |
---|
| 233 | /sbin/ldconfig |
---|
| 234 | %{_bindir}/gtk-query-immodules-3.0 --update-cache || : > /dev/null 2>&1 |
---|
| 235 | |
---|
| 236 | %postun |
---|
| 237 | /sbin/ldconfig |
---|
| 238 | if [ $1 -gt 0 ]; then |
---|
| 239 | %{_bindir}/gtk-query-immodules-3.0 --update-cache || : > /dev/null 2>&1 |
---|
| 240 | fi |
---|
| 241 | glib-compile-schemas %{_datadir}/glib-2.0/schemas ||: |
---|
| 242 | |
---|
| 243 | %posttrans |
---|
| 244 | glib-compile-schemas %{_datadir}/glib-2.0/schemas ||: |
---|
| 245 | |
---|
| 246 | %if %{build_compat32} |
---|
| 247 | %post -n compat32-%{name} |
---|
| 248 | /sbin/ldconfig |
---|
| 249 | %{_bindir}/gtk-query-immodules-3.0%{_query_suffix} --update-cache || : > /dev/null 2>&1 |
---|
| 250 | |
---|
| 251 | %postun -n compat32-%{name} |
---|
| 252 | /sbin/ldconfig |
---|
| 253 | if [ $1 = 0 ]; then |
---|
| 254 | %{_bindir}/gtk-query-immodules-3.0%{_query_suffix} --update-cache || : > /dev/null 2>&1 |
---|
| 255 | fi |
---|
| 256 | %endif |
---|
| 257 | |
---|
| 258 | %files -f all.lang |
---|
| 259 | %defattr(-, root, root) |
---|
| 260 | %doc AUTHORS COPYING ChangeLog NEWS README |
---|
| 261 | %{_bindir}/gtk3-demo |
---|
[6011] | 262 | %{_bindir}/gtk3-demo-application |
---|
| 263 | %{_bindir}/gtk3-widget-factory |
---|
[2721] | 264 | %{_bindir}/gtk-query-immodules-3.0 |
---|
[4616] | 265 | %{_bindir}/gtk-update-icon-cache-3.0 |
---|
[2721] | 266 | %{_libdir}/libgtk-3.so.* |
---|
| 267 | %{_libdir}/libgdk-3.so.* |
---|
| 268 | %{_libdir}/libgailutil-3.so.* |
---|
| 269 | %dir %{_libdir}/gtk-3.0 |
---|
| 270 | %{_libdir}/gtk-3.0/%{bin_version} |
---|
| 271 | %dir %{_libdir}/gtk-3.0/modules |
---|
[4616] | 272 | #%{_libdir}/gtk-3.0/modules/lib*.so |
---|
[2721] | 273 | %{_libdir}/girepository-1.0/*.typelib |
---|
| 274 | %{_datadir}/gtk-3.0 |
---|
| 275 | %{_datadir}/themes/Default |
---|
| 276 | %{_datadir}/themes/Emacs |
---|
| 277 | %dir %{_sysconfdir}/gtk-3.0 |
---|
| 278 | %{_sysconfdir}/gtk-3.0/im-multipress.conf |
---|
| 279 | %{_datadir}/glib-2.0/schemas/*.xml |
---|
| 280 | |
---|
| 281 | %files devel |
---|
| 282 | %defattr(-, root, root) |
---|
| 283 | %{_libdir}/lib*.so |
---|
| 284 | %dir %{_libdir}/gtk-3.0 |
---|
| 285 | %{_datadir}/gtk-doc/ |
---|
| 286 | %{_datadir}/gir-1.0/*.gir |
---|
| 287 | %{_mandir}/man1/* |
---|
| 288 | %exclude %{_mandir}/man1/gtk-update-icon-cache.1.gz |
---|
| 289 | %{_includedir}/* |
---|
| 290 | %{_datadir}/aclocal/* |
---|
| 291 | %{_libdir}/pkgconfig/* |
---|
| 292 | %doc tmpdocs/tutorial |
---|
| 293 | |
---|
| 294 | # compat32 |
---|
| 295 | %if %{build_compat32} |
---|
| 296 | %files -n compat32-%{name} |
---|
| 297 | %defattr(-, root, root) |
---|
| 298 | %{_bindir}/gtk-query-immodules-3.0%{_query_suffix} |
---|
| 299 | %{_libdir}/libgtk-3.so.* |
---|
| 300 | %{_libdir}/libgdk-3.so.* |
---|
| 301 | %{_libdir}/libgailutil-3.so.* |
---|
| 302 | %dir %{_libdir}/gtk-3.0 |
---|
| 303 | %{_libdir}/gtk-3.0/%{bin_version} |
---|
| 304 | %dir %{_libdir}/gtk-3.0/modules |
---|
[4616] | 305 | #%{_libdir}/gtk-3.0/modules/lib*.so |
---|
[2721] | 306 | %dir %{_sysconfdir}/gtk-3.0 |
---|
| 307 | |
---|
| 308 | %files -n compat32-%{name}-devel |
---|
| 309 | %defattr(-, root, root) |
---|
| 310 | %{_libdir}/lib*.so |
---|
| 311 | %dir %{_libdir}/gtk-3.0 |
---|
| 312 | %{_libdir}/pkgconfig/* |
---|
| 313 | %endif |
---|
| 314 | |
---|
| 315 | %changelog |
---|
[6179] | 316 | * Sat May 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.4.3-1 |
---|
| 317 | - new upstream release |
---|
| 318 | |
---|
[6141] | 319 | * Sun May 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.4.2-1 |
---|
| 320 | - new upstream release |
---|
| 321 | |
---|
[6011] | 322 | * Sun Apr 22 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.4.1-1 |
---|
| 323 | - new upstream release |
---|
| 324 | - update Patch100 (gtk+-3.4.0-vine-default-theme.patch) |
---|
| 325 | |
---|
[5920] | 326 | * Sun Mar 18 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.2.4-1 |
---|
| 327 | - new upstream release |
---|
| 328 | |
---|
[5316] | 329 | * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.2.3-1 |
---|
| 330 | - new upstream release |
---|
| 331 | |
---|
[5168] | 332 | * Wed Nov 16 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.2.2-1 |
---|
| 333 | - new upstream release |
---|
| 334 | - remove Patch1 |
---|
| 335 | |
---|
[5007] | 336 | * Sun Oct 16 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.2.1-1 |
---|
| 337 | - new upstream release |
---|
| 338 | - add Patch1 (gtk3-3.2.1-bug658772.patch) |
---|
| 339 | |
---|
[4850] | 340 | * Wed Sep 28 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.2.0-1 |
---|
| 341 | - new upstream release |
---|
| 342 | |
---|
[4812] | 343 | * Fri Sep 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.1.92-1 |
---|
| 344 | - new upstream release |
---|
| 345 | |
---|
[4732] | 346 | * Tue Sep 06 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.1.18-1 |
---|
| 347 | - new upstream release |
---|
| 348 | |
---|
[4704] | 349 | * Sat Sep 03 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.1.16-1 |
---|
| 350 | - new upstream release |
---|
| 351 | |
---|
[4650] | 352 | * Tue Aug 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.1.12-1 |
---|
| 353 | - new upstream release |
---|
| 354 | - add Patch0 (gtk3-3.1.12-gtk-widget-size-allocate.patch) |
---|
| 355 | |
---|
[4616] | 356 | * Sun Aug 14 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.1.10-2 |
---|
| 357 | - fix %%files |
---|
| 358 | |
---|
| 359 | * Sat Jul 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.1.10-1 |
---|
| 360 | - new upstream release |
---|
| 361 | - add BuildRequires: colord-devel |
---|
| 362 | |
---|
| 363 | * Sun Jun 26 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.11-1 |
---|
| 364 | - new upstream release |
---|
| 365 | |
---|
[3685] | 366 | * Sun Apr 24 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.9-1 |
---|
| 367 | - new upstream release |
---|
| 368 | |
---|
[3400] | 369 | * Sun Apr 09 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.8-1 |
---|
| 370 | - new upstream release |
---|
| 371 | |
---|
[3263] | 372 | * Sun Apr 03 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.7-1 |
---|
| 373 | - new upstream release |
---|
| 374 | |
---|
[3149] | 375 | * Sun Mar 27 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.6-1 |
---|
| 376 | - new upstream release |
---|
| 377 | |
---|
[3079] | 378 | * Wed Mar 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.4-1 |
---|
| 379 | - new upstream release |
---|
| 380 | |
---|
[3014] | 381 | * Sat Mar 19 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.3-1 |
---|
| 382 | - new upstream release |
---|
| 383 | |
---|
[3003] | 384 | * Sun Mar 13 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.2-1 |
---|
| 385 | - new upstream release |
---|
| 386 | |
---|
[2738] | 387 | * Fri Feb 22 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.1-1 |
---|
| 388 | - new upstream release |
---|
| 389 | |
---|
[2721] | 390 | * Fri Feb 18 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.0-1 |
---|
| 391 | - initial build for Vine Linux |
---|
| 392 | |
---|