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