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