Package libgtk+3: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 | %define _name gtk+ %define ver_major 3.0 %define api_ver 3.0 %define binary_ver 3.0.0 %def_enable xkb %def_enable xinput %def_disable static %def_disable gtk_doc %def_enable man %def_enable introspection Name: libgtk+3 Version: %ver_major.11 Release: alt1 Summary: The GIMP ToolKit (GTK+) Group: System/Libraries License: %lgpl2plus Url: http://www.gtk.org Icon: gtk+-logo.xpm Packager: GNOME Maintainers Team <gnome@packages.altlinux.org> Source: %gnome_ftp/%_name/%ver_major/%_name-%version.tar.xz Patch: gtk+-2.16.5-alt-stop-spam.patch %define glib_ver 2.28.0 %define cairo_ver 1.10 %define pango_ver 1.20 %define atk_ver 1.30 %define pixbuf_ver 2.22.0 %define fontconfig_ver 2.2.1-alt2 %define gtk_doc_ver 1.6 # We need to prereq these so we can run gtk-query-immodules-%api_ver in post PreReq: glib2 >= %glib_ver PreReq: libpango >= %pango_ver PreReq: libatk >= %atk_ver Requires: gtk-update-icon-cache Requires: icon-theme-hicolor BuildPreReq: rpm-build-licenses rpm-build-gnome BuildPreReq: glib2-devel >= %glib_ver libgio-devel BuildPreReq: libcairo-devel >= %cairo_ver BuildPreReq: libcairo-gobject-devel >= %cairo_ver BuildPreReq: libpango-devel >= %pango_ver BuildPreReq: libatk-devel >= %atk_ver BuildPreReq: libgdk-pixbuf-devel >= %pixbuf_ver BuildPreReq: fontconfig-devel >= %fontconfig_ver BuildPreReq: gtk-doc >= %gtk_doc_ver BuildRequires: gtk-update-icon-cache docbook-utils libcups-devel zlib-devel BuildRequires: libXdamage-devel libXcomposite-devel libX11-devel libXcursor-devel BuildRequires: libXext-devel libXfixes-devel libXi-devel libXinerama-devel libXrandr-devel BuildRequires: libXrender-devel libXt-devel %{?_enable_introspection:BuildRequires: gobject-introspection-devel libpango-gir-devel libatk-gir-devel >= %atk_ver libgdk-pixbuf-gir-devel} %description GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete set of widgets, GTK+ is suitable for projects ranging from small one-off projects to complete application suites. This package contains X11 part of GTK+. It is required for GNOME 3 desktop and programs. %package devel Summary: Development files and tools for GTK+ applications Group: Development/GNOME and GTK+ Icon: gtk+-devel-logo.xpm Requires: %name = %version-%release Requires: gtk-builder-convert %description devel This package contains development files for GTK+, X11 version. Use this to build programs that use GTK+. %package -n gtk3-demo Summary: GTK+ widgets demonstration program Group: Development/GNOME and GTK+ %description -n gtk3-demo GTK+ is a multi-platform toolkit for creating graphical user interfaces. This package contains a program, along with its source code, that demonstrates GTK+ variety of all its widgets. %package -n %name-devel-doc Summary: Development documentation for GTK+ Group: Development/GNOME and GTK+ Conflicts: %name < %version, %name > %version BuildArch: noarch %description -n %name-devel-doc GTK+ is a multi-platform toolkit for creating graphical user interfaces. This package contains documentation needed for developing GTK+ applications. %package -n %name-devel-doc-examples Summary: Examples for developing applications which will use GTK+ Group: Development/GNOME and GTK+ Conflicts: %name < %version-%release BuildArch: noarch %description -n %name-devel-doc-examples GTK+ is a multi-platform toolkit for creating graphical user interfaces. This package contains sources for example programs. %package -n %name-devel-static Summary: Static libraries for GTK+ (GIMP ToolKit) applications Group: Development/GNOME and GTK+ Requires: %name = %version-%release %description -n %name-devel-static GTK+ is a multi-platform toolkit for creating graphical user interfaces. This package contains the static libraries for GTK+. %package gir Summary: GObject introspection data for the GTK+ library Group: System/Libraries Requires: %name = %version-%release %description gir GObject introspection data for the GTK+ library %package gir-devel Summary: GObject introspection devel data for the GTK+ library Group: System/Libraries BuildArch: noarch Requires: %name-gir = %version-%release %description gir-devel GObject introspection devel data for the GTK+ library %package -n libgail3 Summary: Accessibility implementation for GTK+ and GNOME libraries Group: System/Libraries Requires: %name = %version-%release %description -n libgail3 GAIL implements the abstract interfaces found in ATK for GTK+ and GNOME libraries, enabling accessibility technologies such as at-spi to access those GUIs. %package -n libgail3-devel Summary: Files to compile applications that use GAIL Group: Development/GNOME and GTK+ Requires: libgail3 = %version-%release Requires: %name-devel = %version-%release %description -n libgail3-devel This package contains the files required to develop applications against the GAIL libraries. %package -n libgail3-devel-static Summary: Static libraries of GAIL Group: Development/GNOME and GTK+ Requires: libgail3-devel = %version-%release %description -n libgail3-devel-static This package contains the libraries required to compile applications statically linked against the GAIL libraries. %package -n libgail3-devel-doc Summary: Development documentation for GAIL Group: Development/GNOME and GTK+ Conflicts: libgail3-devel < %version-%release BuildArch: noarch %description -n libgail3-devel-doc GAIL implements the abstract interfaces found in ATK for GTK+ and GNOME libraries, enabling accessibility technologies such as at-spi to access those GUIs. This package contains development documentation for GAIL. %define fulllibpath %_libdir/gtk-%api_ver/%binary_ver %prep %setup -q -n %_name-%version %patch -p1 %build %{?_disable_static:export lt_cv_prog_cc_static_works=no} %{?_enable_static:export lt_cv_prog_cc_static_works=yes} export CFLAGS="$CFLAGS $(freetype-config --cflags)" export LDLIBS="$LDLIBS $(freetype-config --libs)" %configure \ %{subst_enable static} \ %{subst_enable man} \ --enable-x11-backend \ %{subst_enable xkb} \ %{subst_enable xinput} \ --disable-schemas-compile \ %{?_enable_gtk_doc:--enable-gtk-doc} \ --enable-gtk2-dependency %make_build %install %make_install DESTDIR=%buildroot install install -d %buildroot{%_sysconfdir/gtk-%api_ver,%_libdir/gtk-%api_ver/%binary_ver/engines} touch %buildroot%_libdir/gtk-%api_ver/%binary_ver/immodules.cache # system wide gtkrc cat <<__RC__ > %buildroot%_sysconfdir/gtk-%api_ver/gtkrc # This enables editing of menu accelerators by pressing # an accelerator over the menu item. gtk-can-change-accels = 1 __RC__ cat <<__SH__ >%name.sh export GTK_PATH=\`getconf LIBDIR\`/gtk-%api_ver/%binary_ver __SH__ cat <<__CSH__ >%name.csh setenv GTK_PATH \`getconf LIBDIR\`/gtk-%api_ver/%binary_ver __CSH__ install -pD -m755 %name.sh %buildroot%_sysconfdir/profile.d/%name.sh install -pD -m755 %name.csh %buildroot%_sysconfdir/profile.d/%name.csh # The license ln -sf %_licensedir/LGPL-2 COPYING %find_lang --output=gtk30.lang gtk30 gtk30-properties %find_lang --output=gail.lang gail bzip2 -9f NEWS # examples mkdir -p %buildroot/%_docdir/%name-devel-%version/examples cp examples/*.c examples/Makefile* %buildroot/%_docdir/%name-devel-%version/examples/ %post %_bindir/gtk-query-immodules-%api_ver --update-cache %files -f gtk30.lang %_bindir/gtk-query-immodules-%api_ver %_libdir/libgdk-3.so.* %_libdir/libgtk-3.so.* %dir %_libdir/gtk-%api_ver/modules %dir %fulllibpath %dir %fulllibpath/engines #%fulllibpath/engines/libpixmap.so %dir %fulllibpath/immodules %fulllibpath/immodules/im-am-et.so %fulllibpath/immodules/im-cedilla.so %fulllibpath/immodules/im-cyrillic-translit.so %fulllibpath/immodules/im-inuktitut.so %fulllibpath/immodules/im-ipa.so %fulllibpath/immodules/im-thai.so %fulllibpath/immodules/im-ti-er.so %fulllibpath/immodules/im-ti-et.so %fulllibpath/immodules/im-viqr.so %fulllibpath/immodules/im-multipress.so %fulllibpath/immodules/im-xim.so %dir %fulllibpath/printbackends %fulllibpath/printbackends/libprintbackend-*.so %dir %_datadir/themes/*/gtk-%{api_ver}* %_datadir/themes/*/gtk-%{api_ver}/*.css %dir %_sysconfdir/gtk-%api_ver #%config(noreplace) %_sysconfdir/gtk-%api_ver/gtkrc %config(noreplace) %_sysconfdir/gtk-%api_ver/im-multipress.conf #%config(noreplace) %_sysconfdir/profile.d/* %ghost %_libdir/gtk-%api_ver/%binary_ver/immodules.cache %_man1dir/gtk-query-immodules* %config %_datadir/glib-2.0/schemas/org.gtk.Settings.FileChooser.gschema.xml %doc --no-dereference COPYING %doc AUTHORS NEWS.bz2 README %files devel %_includedir/gtk-%api_ver/ %_libdir/libgdk-3.so %_libdir/libgtk-3.so %_pkgconfigdir/gtk+-%api_ver.pc %_pkgconfigdir/gtk+-x11-%api_ver.pc %_pkgconfigdir/gdk-%api_ver.pc %_pkgconfigdir/gdk-x11-%api_ver.pc %_pkgconfigdir/gtk+-unix-print-%api_ver.pc %dir %_datadir/gtk-%api_ver %_datadir/aclocal/gtk-%api_ver.m4 %exclude %_datadir/gtk-%api_ver/demo %files -n gtk3-demo %_bindir/gtk3-demo %dir %_datadir/gtk-%api_ver/demo %_datadir/gtk-%api_ver/demo/* %files devel-doc %_datadir/gtk-doc/html/* %exclude %_datadir/gtk-doc/html/gail-libgail-util3 %files devel-doc-examples %doc %_docdir/%name-devel-%version/examples %if_enabled static %files -n %name-devel-static %_libdir/*.a %fulllibpath/*/*.a %files -n libgail3-devel-static %_libdir/libgailutil.a %_libdir/gtk-%api_ver/modules/libferret.a %_libdir/gtk-%api_ver/modules/libgail.a %endif %files -n libgail3 -f gail.lang %_libdir/libgailutil-3.so.* %_libdir/gtk-%api_ver/modules/libferret.so %_libdir/gtk-%api_ver/modules/libgail.so %files -n libgail3-devel %_includedir/gail-%api_ver %_libdir/libgailutil-3.so %_pkgconfigdir/gail-%api_ver.pc %files -n libgail3-devel-doc %_datadir/gtk-doc/html/gail-libgail-util3 %if_enabled introspection %files gir %_libdir/girepository-1.0/* %files gir-devel %_datadir/gir-1.0/* %endif %exclude %_libdir/gtk-%api_ver/modules/*.la %exclude %fulllibpath/*/*.la %changelog * Tue Jun 07 2011 Yuri N. Sedunov <aris@altlinux.org> 3.0.11-alt1 - 3.0.11 * Mon May 23 2011 Yuri N. Sedunov <aris@altlinux.org> 3.0.10-alt1 - 3.0.10 * Fri Apr 15 2011 Yuri N. Sedunov <aris@altlinux.org> 3.0.9-alt1 - 3.0.9 * Mon Apr 04 2011 Yuri N. Sedunov <aris@altlinux.org> 3.0.8-alt1 - 3.0.8 * Sun Apr 03 2011 Yuri N. Sedunov <aris@altlinux.org> 3.0.7-alt2 - applied some fixes from upstream git * Sat Apr 02 2011 Yuri N. Sedunov <aris@altlinux.org> 3.0.7-alt1 - 3.0.7 * Sat Mar 26 2011 Yuri N. Sedunov <aris@altlinux.org> 3.0.6-alt1 - 3.0.6 * Thu Mar 24 2011 Yuri N. Sedunov <aris@altlinux.org> 3.0.5-alt1 - 3.0.5 - updated buildreqs * Mon Mar 21 2011 Yuri N. Sedunov <aris@altlinux.org> 3.0.4-alt1 - 3.0.4 * Mon Mar 14 2011 Yuri N. Sedunov <aris@altlinux.org> 3.0.3-alt1 - 3.0.3 * Mon Mar 07 2011 Yuri N. Sedunov <aris@altlinux.org> 3.0.2-alt1 - 3.0.2 * Tue Feb 22 2011 Yuri N. Sedunov <aris@altlinux.org> 3.0.1-alt1 - 3.0.1 * Fri Feb 11 2011 Yuri N. Sedunov <aris@altlinux.org> 3.0.0-alt1 - 3.0.0 * Wed Feb 02 2011 Yuri N. Sedunov <aris@altlinux.org> 2.99.3-alt1 - 2.99.3 * Wed May 26 2010 Yuri N. Sedunov <aris@altlinux.org> 2.90.1-alt1 - 2.90.1 * Tue May 11 2010 Yuri N. Sedunov <aris@altlinux.org> 2.90.0-alt1 - first build for Sisyphus |