[2721] | 1 | # Note that this is NOT a relocatable package |
---|
| 2 | |
---|
[2738] | 3 | %define glib2_base_version 2.28.1 |
---|
[2721] | 4 | %define glib2_version %{glib2_base_version}-1 |
---|
| 5 | %define pango_base_version 1.28.3 |
---|
| 6 | %define pango_version %{pango_base_version}-1 |
---|
| 7 | %define atk_base_version 1.32.0 |
---|
| 8 | %define atk_version %{atk_base_version}-1 |
---|
| 9 | %define cairo_base_version 1.10.0 |
---|
| 10 | %define cairo_version %{cairo_base_version}-1 |
---|
| 11 | %define gdkpixbuf2_base_version 2.22.0 |
---|
| 12 | %define gdkpixbuf2_version %{gdkpixbuf2_base_version}-1 |
---|
| 13 | %define gobject_introspection_version 0.10.0 |
---|
| 14 | |
---|
| 15 | |
---|
[3003] | 16 | %define base_version 3.0.2 |
---|
[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} |
---|
| 30 | Release: 1%{?_dist_release} |
---|
| 31 | License: LGPL |
---|
| 32 | Group: System Environment/Libraries |
---|
| 33 | |
---|
| 34 | Source: gtk+-%{version}.tar.bz2 |
---|
| 35 | |
---|
| 36 | Patch100: gtk+-2.99.3-vine-default-theme.patch |
---|
| 37 | |
---|
| 38 | BuildRequires: atk-devel >= %{atk_version} |
---|
| 39 | BuildRequires: pango-devel >= %{pango_version} |
---|
| 40 | BuildRequires: glib2-devel >= %{glib2_version} |
---|
| 41 | BuildRequires: cairo-devel >= %{cairo_version} |
---|
| 42 | BuildRequires: gdk-pixbuf2-devel >= %{gdkpixbuf2_version} |
---|
| 43 | BuildRequires: gobject-introspection-devel >= %{gobject_introspection_version} |
---|
| 44 | BuildRequires: libtiff-devel >= 3.7 |
---|
| 45 | BuildRequires: libjpeg-turbo-devel |
---|
| 46 | BuildRequires: libpng-devel |
---|
| 47 | BuildRequires: jasper-devel |
---|
| 48 | BuildRequires: gtk-doc |
---|
| 49 | #BuildRequires: automake17, autoconf |
---|
| 50 | BuildRequires: gamin-devel |
---|
| 51 | BuildRequires: cups-devel |
---|
| 52 | BuildRequires: libICE-devel |
---|
| 53 | BuildRequires: libXext-devel |
---|
| 54 | BuildRequires: libXi-devel |
---|
| 55 | BuildRequires: libXrandr-devel >= 1.3.0 |
---|
| 56 | BuildRequires: libXrender-devel |
---|
| 57 | BuildRequires: libXcursor-devel |
---|
| 58 | BuildRequires: libXfixes-devel |
---|
| 59 | BuildRequires: libXinerama-devel |
---|
| 60 | BuildRequires: libXcomposite-devel |
---|
| 61 | BuildRequires: libXdamage-devel |
---|
| 62 | |
---|
| 63 | BuildRoot: %{_tmppath}/gtk-%{version}-root |
---|
| 64 | |
---|
| 65 | URL: http://www.gtk.org |
---|
| 66 | |
---|
| 67 | # required for icon themes apis to work |
---|
| 68 | Requires: hicolor-icon-theme |
---|
| 69 | |
---|
| 70 | # We need to prereq these so we can run gtk-query-immodules-2.0 |
---|
| 71 | Requires(post): glib2 >= %{glib2_version} |
---|
| 72 | Requires(post): atk >= %{atk_version} |
---|
| 73 | Requires(post): pango >= %{pango_version} |
---|
| 74 | Requires(post): libSM >= 1.1.0 |
---|
| 75 | # We need to prereq libtiff >= 3.7 to run gdk-pixbuf-query-loaders |
---|
| 76 | Requires(post): libtiff >= 3.7 |
---|
| 77 | Requires: libXrandr >= 1.3.0 |
---|
| 78 | |
---|
| 79 | Vendor: Project Vine |
---|
| 80 | Distribution: Vine Linux |
---|
| 81 | Packager: Takemikaduchi |
---|
| 82 | |
---|
| 83 | |
---|
| 84 | %description |
---|
| 85 | GTK+ is a multi-platform toolkit for creating graphical user |
---|
| 86 | interfaces. Offering a complete set of widgets, GTK+ is suitable for |
---|
| 87 | projects ranging from small one-off tools to complete application |
---|
| 88 | suites. |
---|
| 89 | |
---|
| 90 | %package devel |
---|
| 91 | Summary: Development tools for GTK+ applications. |
---|
| 92 | Summary(ja): GTK+ (GIMP ツールキット) アプリケーション開発ツール |
---|
| 93 | Group: Development/Libraries |
---|
| 94 | Requires: %{name} = %{version}-%{release} |
---|
| 95 | Requires: pango-devel >= %{pango_version} |
---|
| 96 | Requires: atk-devel >= %{atk_version} |
---|
| 97 | Requires: glib2-devel >= %{glib2_version} |
---|
| 98 | Requires: gdk-pixbuf2-devel >= %{gdkpixbuf2_version} |
---|
| 99 | Requires: libX11-devel, libXcursor-devel, libXinerama-devel |
---|
| 100 | Requires: libXext-devel, libXi-devel, libXrandr-devel |
---|
| 101 | Requires: libXfixes-devel, libXcomposite-devel |
---|
| 102 | Requires: libpng-devel |
---|
| 103 | |
---|
| 104 | %description devel |
---|
| 105 | The gtk+-devel package contains the header files and developer |
---|
| 106 | docs for the GTK+ widget toolkit. |
---|
| 107 | |
---|
| 108 | ####################################################################### |
---|
| 109 | # compat32 |
---|
| 110 | %package -n compat32-%{name} |
---|
| 111 | Summary: The GIMP ToolKit (GTK+), a library for creating GUIs for X. |
---|
| 112 | Summary(ja): X 用 GUI 作成ライブラリ: GIMP ツールキット(GTK+) |
---|
| 113 | Group: System Environment/Libraries |
---|
| 114 | Requires(post): compat32-glib2 >= %{glib2_version} |
---|
| 115 | Requires(post): compat32-atk >= %{atk_version} |
---|
| 116 | Requires(post): compat32-pango >= %{pango_version} |
---|
| 117 | Requires(post): compat32-libSM >= 1.1.0 |
---|
| 118 | Requires(post): compat32-libtiff >= 3.7 |
---|
| 119 | Requires: compat32-libXrandr >= 1.3.0 |
---|
| 120 | |
---|
| 121 | %description -n compat32-%{name} |
---|
| 122 | GTK+ is a multi-platform toolkit for creating graphical user |
---|
| 123 | interfaces. Offering a complete set of widgets, GTK+ is suitable for |
---|
| 124 | projects ranging from small one-off tools to complete application |
---|
| 125 | suites. |
---|
| 126 | |
---|
| 127 | %package -n compat32-%{name}-devel |
---|
| 128 | Summary: Development tools for GTK+ applications. |
---|
| 129 | Summary(ja): GTK+ (GIMP ツールキット) アプリケーション開発ツール |
---|
| 130 | Group: Development/Libraries |
---|
| 131 | Requires: compat32-%{name} = %{version}-%{release} |
---|
| 132 | Requires: %{name}-devel = %{version} |
---|
| 133 | Requires: compat32-libX11-devel, compat32-libXcursor-devel, compat32-libXinerama-devel |
---|
| 134 | Requires: compat32-libXext-devel, compat32-libXi-devel, compat32-libXrandr-devel |
---|
| 135 | Requires: compat32-libXfixes-devel, compat32-libXcomposite-devel |
---|
| 136 | Requires: compat32-libpng-devel |
---|
| 137 | |
---|
| 138 | %description -n compat32-%{name}-devel |
---|
| 139 | The gtk+-devel package contains the header files and developer |
---|
| 140 | docs for the GTK+ widget toolkit. |
---|
| 141 | |
---|
| 142 | |
---|
| 143 | %prep |
---|
| 144 | %setup -q -n gtk+-%{version} |
---|
| 145 | %patch100 -p1 -b .vine-default-theme |
---|
| 146 | |
---|
| 147 | #for i in config.guess config.sub ; do |
---|
| 148 | # test -f %{_datadir}/libtool/$i && cp %{_datadir}/libtool/$i . |
---|
| 149 | #done |
---|
| 150 | |
---|
| 151 | %build |
---|
| 152 | |
---|
| 153 | # if ! pkg-config --exists pangoxft ; then |
---|
| 154 | # echo "No pangoxft.pc!" |
---|
| 155 | # exit 1 |
---|
| 156 | # fi |
---|
| 157 | |
---|
| 158 | #libtoolize --force --copy |
---|
| 159 | #autoreconf -i |
---|
| 160 | |
---|
| 161 | %configure --enable-gtk-doc \ |
---|
| 162 | --enable-man \ |
---|
| 163 | --enable-debug=minimum \ |
---|
| 164 | --disable-rebuilds \ |
---|
| 165 | --disable-glibtest \ |
---|
| 166 | --enable-introspection=yes \ |
---|
| 167 | --enable-xrandr \ |
---|
| 168 | --enable-xfixes \ |
---|
| 169 | --enable-xcomposite \ |
---|
| 170 | --enable-xdamage \ |
---|
| 171 | --enable-x11-backend |
---|
| 172 | |
---|
| 173 | make ARCH=%{_arch} |
---|
| 174 | #make |
---|
| 175 | |
---|
| 176 | %install |
---|
| 177 | rm -rf $RPM_BUILD_ROOT |
---|
| 178 | |
---|
| 179 | make install DESTDIR=$RPM_BUILD_ROOT RUN_QUERY_IMMODULES_TEST=false RUN_QUERY_LOADER_TEST=false |
---|
| 180 | |
---|
| 181 | %find_lang gtk30 |
---|
| 182 | %find_lang gtk30-properties |
---|
| 183 | |
---|
| 184 | cat gtk30.lang gtk30-properties.lang > all.lang |
---|
| 185 | |
---|
| 186 | mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/gtk-3.0 |
---|
| 187 | # |
---|
| 188 | # Make cleaned-up versions of examples and tutorial for installation |
---|
| 189 | # |
---|
| 190 | mkdir -p tmpdocs/tutorial |
---|
| 191 | # install -m 0644 docs/html/gtk_tut.html docs/html/gtk_tut-[0-9]*.html docs/html/*.gif tmpdocs/tutorial |
---|
| 192 | for dir in examples/* ; do |
---|
| 193 | if [ -d $dir ] ; then |
---|
| 194 | mkdir -p tmpdocs/$dir |
---|
| 195 | for file in $dir/* ; do |
---|
| 196 | case $file in |
---|
| 197 | *pre1.2.7) |
---|
| 198 | ;; |
---|
| 199 | *) |
---|
| 200 | install -m 0644 $file tmpdocs/$dir |
---|
| 201 | ;; |
---|
| 202 | esac |
---|
| 203 | done |
---|
| 204 | fi |
---|
| 205 | done |
---|
| 206 | |
---|
| 207 | |
---|
| 208 | # We need to have separate 32-bit and 64-bit binaries |
---|
| 209 | # for places where we have two copies of the GTK+ package installed. |
---|
| 210 | # (we might have x86_64 and i686 packages on the same system, for example.) |
---|
| 211 | %if %{build_compat32} |
---|
| 212 | cp $RPM_BUILD_ROOT%{_bindir}/gtk-query-immodules-3.0 \ |
---|
| 213 | $RPM_BUILD_ROOT%{_bindir}/gtk-query-immodules-3.0%{_query_suffix} |
---|
| 214 | %endif |
---|
| 215 | touch $RPM_BUILD_ROOT%{_libdir}/gtk-3.0/%{bin_version}/immodules.cache |
---|
| 216 | |
---|
| 217 | mkdir -p $RPM_BUILD_ROOT%{_libdir}/gtk-3.0/modules |
---|
| 218 | mkdir -p $RPM_BUILD_ROOT%{_libdir}/gtk-3.0/immodules |
---|
| 219 | |
---|
| 220 | # Remove unpackaged files |
---|
| 221 | rm $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
| 222 | rm -rf $RPM_BUILD_ROOT%{_datadir}/themes/Raleigh |
---|
| 223 | rm $RPM_BUILD_ROOT%{_libdir}/gtk-3.0/modules/lib*.la |
---|
| 224 | |
---|
| 225 | %clean |
---|
| 226 | rm -rf $RPM_BUILD_ROOT |
---|
| 227 | |
---|
| 228 | %post |
---|
| 229 | /sbin/ldconfig |
---|
| 230 | %{_bindir}/gtk-query-immodules-3.0 --update-cache || : > /dev/null 2>&1 |
---|
| 231 | |
---|
| 232 | %postun |
---|
| 233 | /sbin/ldconfig |
---|
| 234 | if [ $1 -gt 0 ]; then |
---|
| 235 | %{_bindir}/gtk-query-immodules-3.0 --update-cache || : > /dev/null 2>&1 |
---|
| 236 | fi |
---|
| 237 | glib-compile-schemas %{_datadir}/glib-2.0/schemas ||: |
---|
| 238 | |
---|
| 239 | %posttrans |
---|
| 240 | glib-compile-schemas %{_datadir}/glib-2.0/schemas ||: |
---|
| 241 | |
---|
| 242 | %if %{build_compat32} |
---|
| 243 | %post -n compat32-%{name} |
---|
| 244 | /sbin/ldconfig |
---|
| 245 | %{_bindir}/gtk-query-immodules-3.0%{_query_suffix} --update-cache || : > /dev/null 2>&1 |
---|
| 246 | |
---|
| 247 | %postun -n compat32-%{name} |
---|
| 248 | /sbin/ldconfig |
---|
| 249 | if [ $1 = 0 ]; then |
---|
| 250 | %{_bindir}/gtk-query-immodules-3.0%{_query_suffix} --update-cache || : > /dev/null 2>&1 |
---|
| 251 | fi |
---|
| 252 | %endif |
---|
| 253 | |
---|
| 254 | %files -f all.lang |
---|
| 255 | %defattr(-, root, root) |
---|
| 256 | %doc AUTHORS COPYING ChangeLog NEWS README |
---|
| 257 | %{_bindir}/gtk3-demo |
---|
| 258 | %{_bindir}/gtk-query-immodules-3.0 |
---|
| 259 | %exclude %{_bindir}/gtk-update-icon-cache |
---|
| 260 | %{_libdir}/libgtk-3.so.* |
---|
| 261 | %{_libdir}/libgdk-3.so.* |
---|
| 262 | %{_libdir}/libgailutil-3.so.* |
---|
| 263 | %dir %{_libdir}/gtk-3.0 |
---|
| 264 | %{_libdir}/gtk-3.0/%{bin_version} |
---|
| 265 | %dir %{_libdir}/gtk-3.0/modules |
---|
| 266 | %{_libdir}/gtk-3.0/modules/lib*.so |
---|
| 267 | %{_libdir}/girepository-1.0/*.typelib |
---|
| 268 | %{_datadir}/gtk-3.0 |
---|
| 269 | %{_datadir}/themes/Default |
---|
| 270 | %{_datadir}/themes/Emacs |
---|
| 271 | %dir %{_sysconfdir}/gtk-3.0 |
---|
| 272 | %{_sysconfdir}/gtk-3.0/im-multipress.conf |
---|
| 273 | %{_datadir}/glib-2.0/schemas/*.xml |
---|
| 274 | |
---|
| 275 | %files devel |
---|
| 276 | %defattr(-, root, root) |
---|
| 277 | %{_libdir}/lib*.so |
---|
| 278 | %dir %{_libdir}/gtk-3.0 |
---|
| 279 | %{_datadir}/gtk-doc/ |
---|
| 280 | %{_datadir}/gir-1.0/*.gir |
---|
| 281 | %{_mandir}/man1/* |
---|
| 282 | %exclude %{_mandir}/man1/gtk-update-icon-cache.1.gz |
---|
| 283 | %{_includedir}/* |
---|
| 284 | %{_datadir}/aclocal/* |
---|
| 285 | %{_libdir}/pkgconfig/* |
---|
| 286 | %doc tmpdocs/tutorial |
---|
| 287 | |
---|
| 288 | # compat32 |
---|
| 289 | %if %{build_compat32} |
---|
| 290 | %files -n compat32-%{name} |
---|
| 291 | %defattr(-, root, root) |
---|
| 292 | %{_bindir}/gtk-query-immodules-3.0%{_query_suffix} |
---|
| 293 | %{_libdir}/libgtk-3.so.* |
---|
| 294 | %{_libdir}/libgdk-3.so.* |
---|
| 295 | %{_libdir}/libgailutil-3.so.* |
---|
| 296 | %dir %{_libdir}/gtk-3.0 |
---|
| 297 | %{_libdir}/gtk-3.0/%{bin_version} |
---|
| 298 | %dir %{_libdir}/gtk-3.0/modules |
---|
| 299 | %{_libdir}/gtk-3.0/modules/lib*.so |
---|
| 300 | %dir %{_sysconfdir}/gtk-3.0 |
---|
| 301 | |
---|
| 302 | %files -n compat32-%{name}-devel |
---|
| 303 | %defattr(-, root, root) |
---|
| 304 | %{_libdir}/lib*.so |
---|
| 305 | %dir %{_libdir}/gtk-3.0 |
---|
| 306 | %{_libdir}/pkgconfig/* |
---|
| 307 | %endif |
---|
| 308 | |
---|
| 309 | %changelog |
---|
[3003] | 310 | * Sun Mar 13 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.2-1 |
---|
| 311 | - new upstream release |
---|
| 312 | |
---|
[2738] | 313 | * Fri Feb 22 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.1-1 |
---|
| 314 | - new upstream release |
---|
| 315 | |
---|
[2721] | 316 | * Fri Feb 18 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.0-1 |
---|
| 317 | - initial build for Vine Linux |
---|
| 318 | |
---|