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