gtk3.spec revision 20831
12258N/A#
12258N/A# spec file for package gtk3
12258N/A#
12412N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
12258N/A# This file and all modifications and additions to the pristine
12258N/A# package are under the same license as the package itself.
12258N/A#
20307N/A%define owner erwannc
12258N/A#
12258N/A
18603N/A%define OSR LFI#105446 (gnome Exec. summary):n/a
17181N/A
12258N/A%include l10n.inc
15293N/AName: gtk3
12258N/ALicense: LGPL v2
19064N/AGroup: System/Libraries
12258N/AVersion: 3.1.16
12258N/ARelease: 1
18616N/ADistribution: Java Desktop System
12258N/AVendor: Gnome Community
12258N/ASummary: GTK+ - GIMP Toolkit Library for creation of graphical user interfaces
12773N/ASource: http://ftp.gnome.org/pub/GNOME/sources/gtk+/3.1/gtk+-%{version}.tar.bz2
12773N/ASource1: gtk.unset-hack.sh
12773N/ASource2: gtk.unset-hack.csh
20307N/A#Source3: %{name}-po-sun-%{po_sun_version}.tar.bz2
12258N/ASource4: l10n-configure.sh
12258N/A#owner:erwannc date:2000-00-00 type:feature
12258N/APatch1: gtk+-01-window-icons-for-message-dialog.diff
12258N/A#owner:erwannc date:2003-07-11 type:feature
12258N/APatch2: gtk+-02-fileseldlg-navbuttons.diff
12258N/A#owner:erwannc date:2004-05-17 bugster:5035382 type:bug
12258N/APatch3: gtk+-03-use-xim-for-all-locales.diff
12258N/A#owner:erwannc date:2004-08-12 type:feature
12258N/APatch4: gtk+-04-sun-copy-paste-keybindings.diff
12258N/A#owner:erwannc date:2004-08-12 bugzilla:74223 type:feature
12258N/APatch5: gtk+-05-sun-pgdn-pgup-keybindings.diff
12258N/A#owner:laca date:2004-09-18 type:feature
12258N/APatch6: gtk+-06-solaris-2.0.0-compat.diff
12258N/A#owner:erwannc date:2006-05-01 type:feature
12258N/APatch7: gtk+-07-trusted-extensions.diff
12258N/A# date:2009-04-22 owner:gheet type:bug bugster:6795517
12258N/APatch8: gtk+-08-default-print-ps.diff
12258N/A# date:2009-03-17 doo:7438 owner:erwannc type:bug
12258N/APatch9: gtk+-09-fix-deprecated.diff
12258N/A# date:2008-01-11 bugster:6630867 bugzilla:505857 owner:erwannc type:bug
12258N/APatch10: gtk+-10-filechooser-enterkey.diff
12258N/A
12258N/A# Note the dlopen-medialib patch does not need to be applied to GTK3
12258N/A# since GTK3 no longer uses mediaLib at all. The dlopen-medialib patch
12258N/A# is now only applied to GTK2.
12258N/A
12258N/A# date:2009-09-25 owner:gheet type:branding doo:11575
12258N/APatch12: gtk+-12-show-lpr-backend.diff
12258N/A# date:2009-10-11 owner:gheet type:bug doo:11830
12258N/APatch13: gtk+-13-check-libs.diff
12258N/A# date:2010-01-07 owner:gheet type:bug doo:13625
12258N/APatch14: gtk+-14-handle-copies.diff
12258N/A# date:2010-07-16 owner:yippi type:branding
12258N/APatch18: gtk3+-01-libtool.diff
12258N/A# date:2010-07-16 owner:yippi type:bug bugzilla:654720
12258N/APatch19: gtk3+-02-configure.diff
12258N/A# This just worksaround a compile issue and should be fixed properly.
12258N/APatch20: gtk3+-03-disable-papi.diff
12258N/A# This patch is a hack. GTK3+ exits if it notices that you have run a program
12258N/A# that links in both GTK2 and GTK3. However, gnome-shell uses gjs, which uses
12258N/A# the JavaScript functions in libxul. Because libxul includes gdk 2.0
12258N/A# functions, this prevents gnome-shell from starting. This temporary hack
12258N/A# makes gnome-shell start, but this should be fixed by making the Firefox
12258N/A# JavaScript library not link against GTK at all.
12258N/APatch21: gtk3+-04-hack.diff
12258N/A
12258N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
12258N/ADocdir: %{_defaultdocdir}/doc
12258N/AAutoreqprov: on
12258N/APrereq: /sbin/ldconfig
12258N/A
12258N/A%define cairo_version 0.9.2
12258N/A%define atk_version 1.7.0
12258N/A%define pango_version 1.9.0
12258N/A%define glib2_version 2.7.1
12258N/A%define libpng_version 1.2.5
12258N/A%define libjpeg_version 6.2.0
12258N/A
12258N/ABuildRequires: cairo-devel >= %{cairo_version}
12258N/ABuildRequires: atk-devel >= %{atk_verGsion}
12258N/ABuildRequires: pango-devel >= %{pango_version}
12258N/ABuildRequires: glib2-devel >= %{glib2_version}
12258N/ABuildRequires: libpng-devel >= %{libpng_version}
12258N/ABuildRequires: libjpeg >= %{libjpeg_version}
12258N/ARequires: cairo >= %{cairo_version}
12258N/ARequires: glib2 >= %{glib2_version}
12258N/ARequires: atk >= %{atk_version}
12258N/ARequires: pango >= %{pango_version}
12258N/ARequires: libpng >= %{libpng_version}
12258N/ARequires: libjpeg >= %{libjpeg_version}
12258N/A
12258N/A%description
12258N/AThis fast and versatile library is used all over the world for all
12258N/AGNOME applications, the GIMP and several others. Originally it was
12258N/Awritten for the GIMP and hence has the name Gimp ToolKit. Many people
12424N/Alike it because it is small, efficient and very configurable.
12424N/A
12424N/A%package devel
12424N/ASummary: Library for creation of graphical user interfaces
12424N/AGroup: Development/Libraries/X11
12424N/AAutoreqprov: on
12424N/ARequires: %{name} = %{version}
12424N/ARequires: cairo-devel >= %{cairo_version}
12424N/ARequires: atk-devel >= %{atk_version}
12424N/ARequires: pango-devel >= %{pango_version}
12424N/A
12258N/A%description devel
12258N/AThis fast and versatile library is used all over the world for all
12773N/AGNOME applications, the GIMP and several others. Originally it was
12773N/Awritten for the GIMP and hence has the name Gimp ToolKit. Many people
12773N/Alike it because it is small, efficient and very configurable.
12773N/A
12773N/A%prep
12258N/A%setup -q -n gtk+-%{version}
12258N/A
12258N/A# Fixes build error. Solaris msgfmt does not have '-c'.
12258N/Afor f in po/Makefile.in.in po-properties/Makefile.in.in ; do
12258N/A sed -e 's/$(GMSGFMT) -c/$(GMSGFMT)/g' $f > $f$$
14365N/A mv $f$$ $f
14365N/A d=`dirname $f`
14365N/A touch $d/*.po
14365N/Adone
14365N/A
14365N/A%if %build_l10n
14365N/A# workaround for bugster 6581452, bugzilla 457863
14365N/A#sh -x %SOURCE4 --disable-gnu-extensions
14365N/A
14446N/A#bzcat %SOURCE3 | tar xf -
14365N/A#cd po-sun; make; cd ..
12424N/A%endif
12258N/A
12258N/A#%patch1 -p1
12258N/A#%patch2 -p1
12258N/A%patch3 -p1
12258N/A
12258N/A#%ifos solaris
17516N/A#%patch4 -p1
12258N/A#%endif
15788N/A
15788N/A#%patch5 -p1
15788N/A#%patch6 -p1
15788N/A#%patch7 -p1
15788N/A%patch8 -p1
15788N/A%patch10 -p1
15788N/A#%patch11 -p1
12258N/A#%patch12 -p1
12258N/A%patch13 -p1
12258N/A#%patch14 -p1
12258N/A%patch18 -p1
12258N/A%patch19 -p1
12258N/A%patch20 -p1
12258N/A%patch21 -p1
12258N/A
12258N/A%build
12258N/A%ifos linux
12258N/Aif [ -x /usr/bin/getconf ]; then
12258N/A CPUS=`getconf _NPROCESSORS_ONLN`
12258N/Afi
12258N/A%else
12258N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
12258N/A%endif
12258N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
12258N/A CPUS=1
12258N/Afi
12258N/A
12258N/Aexport SED="/usr/gnu/bin/sed"
12258N/A
12258N/Alibtoolize --force
12258N/Aaclocal-1.11 $ACLOCAL_FLAGS -I .
12258N/Aautoheader
12258N/Aautomake-1.11 -a -c -f
12258N/Aautoconf
12258N/Aexport CFLAGS="%optflags -I/usr/X11/include"
12258N/Aexport LDFLAGS="%_ldflags"
12258N/A./configure --prefix=%{_prefix} \
12258N/A --libdir=%{_libdir} \
12258N/A --bindir=%{_bindir} \
12258N/A --datadir=%{_datadir} \
12258N/A --with-native-locale=yes \
12258N/A --with-xinput=xfree \
12258N/A --mandir=%{_mandir} \
12258N/A --infodir=%{_infodir} \
12258N/A --enable-shm \
12258N/A --enable-xim \
12258N/A --enable-fbmanager \
19064N/A --disable-papi \
19118N/A --with-gdktarget=x11 \
18580N/A --sysconfdir=%{_sysconfdir} \
19118N/A --enable-explicit-deps=yes \
18290N/A --without-libjasper \
18290N/A --disable-glibtest \
17517N/A --disable-papi \
17517N/A %{gtk_doc_option}
15788N/A
15788N/A# Build needed uninstalled.pc file
14446N/A#gmake gdk-x11-2.0-uninstalled.pc
14446N/A
14365N/A# this is broken in 2.19.6
14365N/A#gmake -j $CPUS
14074N/Agmake
14074N/A
12548N/A%install
12548N/Agmake DESTDIR=$RPM_BUILD_ROOT install
12412N/Ainstall -d $RPM_BUILD_ROOT%{_sysconfdir}/gtk-3.0
12412N/Amkdir -p $RPM_BUILD_ROOT/etc/profile.d
12412N/Acp %SOURCE1 $RPM_BUILD_ROOT/etc/profile.d/
12258N/Acp %SOURCE2 $RPM_BUILD_ROOT/etc/profile.d
12258N/A#Copy zh_HK from zh_TW
12258N/A#Fixes bug 4930405
12258N/Ainstall -d $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES
12258N/Ainstall --mode=0644 $RPM_BUILD_ROOT%{_datadir}/locale/zh_TW/LC_MESSAGES/*.mo $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES/
12258N/A
12258N/A%clean
12258N/Arm -rf $RPM_BUILD_ROOT
12258N/A
12258N/A%post
12258N/A/sbin/ldconfig
12258N/A%{_bindir}/gtk-query-immodules-3.0 > %{_sysconfdir}/gtk-3.0/gtk.immodules
12258N/A%{_bindir}/gdk-pixbuf-query-loaders > %{_sysconfdir}/gtk-3.0/gdk-pixbuf.loaders
12258N/A
12258N/A%postun
12258N/A#If this is the last version of the package remove the config files
12258N/Aif [ $1 = 0 ]
12258N/Athen
12258N/A rm %{_sysconfdir}/gtk-3.0/gtk.immodules
12258N/A rm %{_sysconfdir}/gtk-3.0/gdk-pixbuf.loaders
12258N/Afi
12258N/A/sbin/ldconfig
12258N/A
12258N/A%files
12258N/A%{_bindir}/*query*
12258N/A%{_bindir}/gtk-update-icon-cache
12258N/A%{_libdir}/lib*.so.*
12258N/A%{_libdir}/gtk-3.0/*/immodules/*.so
12258N/A%{_libdir}/gtk-3.0/*/loaders/*.so
12258N/A%{_libdir}/gtk-3.0/*/engines/*.so
12258N/A%{_datadir}/themes/*/*
12258N/A%{_datadir}/locale/*/LC_MESSAGES/*.mo
12258N/A%{_sysconfdir}/profile.d/gtk.unset-hack.sh
12258N/A%{_sysconfdir}/profile.d/gtk.unset-hack.csh
12258N/A%dir %{_sysconfdir}/gtk-3.0
17550N/A%{_mandir}/man1/*.gz
12258N/A
12258N/A%files devel
12258N/A%{_bindir}/*-demo
12258N/A%{_bindir}/*-csource
12258N/A%{_includedir}/gtk-3.0
12258N/A%{_libdir}/lib*.so
12258N/A%{_libdir}/gtk-3.0/include
12258N/A%{_libdir}/pkgconfig/*.pc
12258N/A%{_datadir}/gtk-3.0
12258N/A%{_datadir}/aclocal/*.m4
12258N/A%{_datadir}/gtk-doc/html/*
12258N/A%{_mandir}/man3/*.gz
12258N/A
12258N/A%changelog
12258N/A* Thu Sep 08 2011 - brian.cameron@oracle.com
12258N/A- Bump to 3.1.16.
12258N/A* Thu Aug 18 2011 - brian.cameron@oracle.com
12258N/A- Bump to 3.1.12.
* Tue Jul 12 2011 - brian.cameron@oracle.com
- Created with 3.1.8.