a435582
%global glib2_version 2.27.3-1
7442cc3
%global pango_version 1.20.0-1
7442cc3
%global atk_version 1.29.4-2
7442cc3
%global cairo_version 1.6.0-1
7442cc3
%global libpng_version 2:1.2.2-16
7442cc3
%global xrandr_version 1.2.99.4-2
Bastien Nocera 7da5f6e
%global gobject_introspection_version 0.9.3
7442cc3
7442cc3
%global bin_version 3.0.0
7442cc3
7442cc3
Summary: The GIMP ToolKit (GTK+), a library for creating GUIs for X
7442cc3
Name: gtk3
a6e3e53
Version: 2.99.3
a6e3e53
Release: 1%{?dist}
7442cc3
License: LGPLv2+
7442cc3
Group: System Environment/Libraries
7442cc3
URL: http://www.gtk.org
7442cc3
#VCS: git:git://git.gnome.org/gtk+
6329e0f
Source: http://download.gnome.org/sources/gtk+/2.99/gtk+-%{version}.tar.bz2
a6e3e53
Source1: im-cedilla.conf
3238d3d
Patch0: gtk3-build-fix.patch
b9b5e39
Patch1: 0001-Fix-another-GtkFixed-regression-in-gtk_fixed_forall.patch
b9b5e39
Patch2: buildable-regression.patch
7442cc3
Bastien Nocera f866077
BuildRequires: gnome-common autoconf automake intltool gettext
7442cc3
BuildRequires: atk-devel >= %{atk_version}
7442cc3
BuildRequires: glib2-devel >= %{glib2_version}
45f7964
BuildRequires: cairo-devel >= %{cairo_version}
1a836c3
BuildRequires: cairo-gobject-devel >= %{cairo_version}
45f7964
BuildRequires: pango-devel >= %{pango_version}
45f7964
BuildRequires: gdk-pixbuf2-devel
a6e3e53
BuildRequires: gtk2-devel
7442cc3
BuildRequires: libXi-devel
7442cc3
BuildRequires: gettext
7442cc3
BuildRequires: gtk-doc
7442cc3
BuildRequires: cups-devel
7442cc3
BuildRequires: libXrandr-devel >= %{xrandr_version}
7442cc3
BuildRequires: libXrender-devel
7442cc3
BuildRequires: libXcursor-devel
7442cc3
BuildRequires: libXfixes-devel
7442cc3
BuildRequires: libXinerama-devel
7442cc3
BuildRequires: libXcomposite-devel
7442cc3
BuildRequires: libXdamage-devel
a66f0b3
BuildRequires: libXi-devel
7442cc3
BuildRequires: gobject-introspection-devel >= %{gobject_introspection_version}
7442cc3
7442cc3
# required for icon theme apis to work
7442cc3
Requires: hicolor-icon-theme
7442cc3
7442cc3
# We need to prereq these so we can run gtk-query-immodules-3.0
7442cc3
Requires(post): glib2 >= %{glib2_version}
7442cc3
Requires(post): atk >= %{atk_version}
7442cc3
Requires(post): pango >= %{pango_version}
7442cc3
Requires: libXrandr >= %{xrandr_version}
7442cc3
fecf2ab
# gtk3 no longer provides the GtkThemeEngine interface used there
fecf2ab
Obsoletes: gtk3-engines <= 2.91.5-5.fc15
fecf2ab
7442cc3
%description
7442cc3
GTK+ is a multi-platform toolkit for creating graphical user
7442cc3
interfaces. Offering a complete set of widgets, GTK+ is suitable for
7442cc3
projects ranging from small one-off tools to complete application
7442cc3
suites.
7442cc3
7442cc3
This package contains version 3 of GTK+.
7442cc3
7442cc3
%package immodules
7442cc3
Summary: Input methods for GTK+
7442cc3
Group: System Environment/Libraries
7442cc3
Requires: gtk3 = %{version}-%{release}
7442cc3
# for /etc/X11/xinit/xinput.d
7442cc3
Requires: imsettings
7442cc3
7442cc3
%description immodules
a6e3e53
The gtk3-immodules package contains standalone input methods that
a6e3e53
are shipped as part of GTK+ 3.
7442cc3
7442cc3
%package immodule-xim
7442cc3
Summary: XIM support for GTK+
7442cc3
Group: System Environment/Libraries
7442cc3
Requires: gtk3 = %{version}-%{release}
7442cc3
7442cc3
%description immodule-xim
7442cc3
The gtk3-immodule-xim package contains XIM support for GTK+ 3.
7442cc3
7442cc3
%package devel
7442cc3
Summary: Development files for GTK+
7442cc3
Group: Development/Libraries
7442cc3
Requires: gtk3 = %{version}-%{release}
3dfa7d5
Requires: gdk-pixbuf2-devel
7442cc3
Requires: libX11-devel, libXcursor-devel, libXinerama-devel
7442cc3
Requires: libXext-devel, libXi-devel, libXrandr-devel
7442cc3
Requires: libXfixes-devel, libXcomposite-devel
7442cc3
# for /usr/share/aclocal
7442cc3
Requires: automake
7442cc3
fecf2ab
Obsoletes: gtk3-engines-devel <= 2.91.5-5.fc15
fecf2ab
7442cc3
%description devel
7442cc3
This package contains the libraries and header files that are needed
7442cc3
for writing applications with version 3 of the GTK+ widget toolkit. If
7442cc3
you plan to develop applications with GTK+, consider installing the
7442cc3
gtk3-devel-docs package.
7442cc3
7442cc3
%package devel-docs
7442cc3
Summary: Developer documentation for GTK+
7442cc3
Group: Development/Libraries
7442cc3
Requires: gtk3 = %{version}-%{release}
7442cc3
7442cc3
%description devel-docs
7442cc3
This package contains developer documentation for version 3 of the GTK+
7442cc3
widget toolkit.
7442cc3
7442cc3
%prep
7442cc3
%setup -q -n gtk+-%{version}
3238d3d
%patch0 -p1 -b .build-fix
b9b5e39
%patch1 -p1 -b .fixed-destroy
b9b5e39
%patch2 -p1 -b .buildable-regression
7442cc3
7442cc3
%build
Bastien Nocera f866077
6369175
(if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; CONFIGFLAGS=--enable-gtk-doc; fi;
6369175
 %configure $CONFIGFLAGS \
a6e3e53
        --enable-gtk2-dependency \
3238d3d
        --enable-xkb \
3238d3d
        --enable-xinerama \
3238d3d
        --enable-xinput \
3238d3d
        --enable-xrandr \
3238d3d
        --enable-xfixes \
3238d3d
        --enable-xcomposite \
3238d3d
        --enable-xdamage \
3238d3d
        --enable-x11-backend \
6369175
)
7442cc3
7442cc3
# fight unused direct deps
7442cc3
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
7442cc3
cc51009
make # %{?_smp_mflags}
7442cc3
7442cc3
# truncate NEWS
7442cc3
awk '/^Overview of Changes/ { seen+=1 }
7442cc3
{ if (seen < 2) print }
7442cc3
{ if (seen == 2) { print "For older news, see http://git.gnome.org/cgit/gtk+/plain/NEWS"; exit } }' NEWS > tmp; mv tmp NEWS
7442cc3
7442cc3
7442cc3
%install
7442cc3
make install DESTDIR=$RPM_BUILD_ROOT        \
45f7964
             RUN_QUERY_IMMODULES_TEST=false
7442cc3
7442cc3
%find_lang gtk30
7442cc3
%find_lang gtk30-properties
7442cc3
c890c92
(cd $RPM_BUILD_ROOT%{_bindir}
c890c92
 mv gtk-query-immodules-3.0 gtk-query-immodules-3.0-%{__isa_bits}
c890c92
)
7442cc3
7442cc3
# Input method frameworks want this
a6e3e53
install -D %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/X11/xinit/xinput.d/im-cedilla.conf
7442cc3
7442cc3
# Remove unpackaged files
7442cc3
rm $RPM_BUILD_ROOT%{_libdir}/*.la
7442cc3
rm $RPM_BUILD_ROOT%{_libdir}/gtk-3.0/*/*.la
7442cc3
rm $RPM_BUILD_ROOT%{_libdir}/gtk-3.0/%{bin_version}/*/*.la
b9b5e39
rm $RPM_BUILD_ROOT%{_libdir}/gtk-3.0/%{bin_version}/engines/libpixmap.so
7442cc3
c890c92
touch $RPM_BUILD_ROOT%{_libdir}/gtk-3.0/%{bin_version}/immodules.cache
7442cc3
af3fa9d
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/gtk-3.0
7442cc3
mkdir -p $RPM_BUILD_ROOT%{_libdir}/gtk-3.0/modules
7442cc3
mkdir -p $RPM_BUILD_ROOT%{_libdir}/gtk-3.0/immodules
af3fa9d
mkdir -p $RPM_BUILD_ROOT%{_libdir}/gtk-3.0/%{bin_version}/theming-engines
7442cc3
7442cc3
%post
7442cc3
/sbin/ldconfig
c890c92
gtk-query-immodules-3.0-%{__isa_bits} --update-cache
Richard Hughes f28e248
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
7442cc3
7442cc3
%post immodules
c890c92
gtk-query-immodules-3.0-%{__isa_bits} --update-cache
7442cc3
7442cc3
%post immodule-xim
c890c92
gtk-query-immodules-3.0-%{__isa_bits} --update-cache
7442cc3
7442cc3
%postun
7442cc3
/sbin/ldconfig
7442cc3
if [ $1 -gt 0 ]; then
c890c92
  gtk-query-immodules-3.0-%{__isa_bits} --update-cache
7442cc3
fi
Richard Hughes f28e248
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
7442cc3
7442cc3
%postun immodules
c890c92
gtk-query-immodules-3.0-%{__isa_bits} --update-cache
7442cc3
7442cc3
%postun immodule-xim
c890c92
gtk-query-immodules-3.0-%{__isa_bits} --update-cache
7442cc3
7442cc3
%files -f gtk30.lang
7442cc3
%defattr(-, root, root, -)
7442cc3
%doc AUTHORS COPYING NEWS README
7442cc3
%{_bindir}/gtk-query-immodules-3.0*
6329e0f
%{_libdir}/libgtk-3.0.so.*
6329e0f
%{_libdir}/libgdk-3.0.so.*
7442cc3
%{_libdir}/libgailutil-3.0.so.*
7442cc3
%dir %{_libdir}/gtk-3.0
7442cc3
%dir %{_libdir}/gtk-3.0/%{bin_version}
af3fa9d
%{_libdir}/gtk-3.0/%{bin_version}/theming-engines
7442cc3
%dir %{_libdir}/gtk-3.0/%{bin_version}/immodules
7442cc3
%{_libdir}/gtk-3.0/%{bin_version}/printbackends
7442cc3
%{_libdir}/gtk-3.0/modules
7442cc3
%{_libdir}/gtk-3.0/immodules
7442cc3
%{_datadir}/themes/Default
7442cc3
%{_datadir}/themes/Emacs
7442cc3
%{_datadir}/themes/Raleigh
7442cc3
%{_libdir}/girepository-1.0
c890c92
%dir %{_sysconfdir}/gtk-3.0
c890c92
%ghost %{_libdir}/gtk-3.0/%{bin_version}/immodules.cache
ec1868f
%{_mandir}/man1/gtk-query-immodules-3.0.1.gz
6329e0f
%exclude %{_mandir}/man1/gtk-update-icon-cache.1.gz
Richard Hughes f28e248
%{_datadir}/glib-2.0/schemas/org.gtk.Settings.FileChooser.gschema.xml
7442cc3
7442cc3
%files immodules
7442cc3
%defattr(-, root, root, -)
7442cc3
%{_libdir}/gtk-3.0/%{bin_version}/immodules/im-am-et.so
7442cc3
%{_libdir}/gtk-3.0/%{bin_version}/immodules/im-cedilla.so
7442cc3
%{_libdir}/gtk-3.0/%{bin_version}/immodules/im-cyrillic-translit.so
7442cc3
%{_libdir}/gtk-3.0/%{bin_version}/immodules/im-inuktitut.so
7442cc3
%{_libdir}/gtk-3.0/%{bin_version}/immodules/im-ipa.so
7442cc3
%{_libdir}/gtk-3.0/%{bin_version}/immodules/im-multipress.so
7442cc3
%{_libdir}/gtk-3.0/%{bin_version}/immodules/im-thai.so
7442cc3
%{_libdir}/gtk-3.0/%{bin_version}/immodules/im-ti-er.so
7442cc3
%{_libdir}/gtk-3.0/%{bin_version}/immodules/im-ti-et.so
7442cc3
%{_libdir}/gtk-3.0/%{bin_version}/immodules/im-viqr.so
7442cc3
%{_sysconfdir}/X11/xinit/xinput.d/im-cedilla.conf
7442cc3
%config(noreplace) %{_sysconfdir}/gtk-3.0/im-multipress.conf
7442cc3
7442cc3
%files immodule-xim
7442cc3
%defattr(-, root, root, -)
7442cc3
%{_libdir}/gtk-3.0/%{bin_version}/immodules/im-xim.so
7442cc3
7442cc3
%files devel -f gtk30-properties.lang
7442cc3
%defattr(-, root, root, -)
7442cc3
%{_libdir}/lib*.so
7442cc3
%{_includedir}/*
7442cc3
%{_datadir}/aclocal/*
7442cc3
%{_libdir}/pkgconfig/*
7442cc3
%{_bindir}/gtk3-demo
7442cc3
%{_datadir}/gtk-3.0
7442cc3
%{_datadir}/gir-1.0
7442cc3
7442cc3
%files devel-docs
7442cc3
%defattr(-, root, root, -)
1217c59
%{_datadir}/gtk-doc
7442cc3
7442cc3
%changelog
a6e3e53
* Tue Feb  1 2011 Matthias Clasen <mclasen@redhat.com> - 2.99.3-1
a6e3e53
- Update to 2.99.3
a6e3e53
0574055
* Mon Jan 24 2011 Dan Williams <dcbw@redhat.com> 2.99.2-2
0574055
- Fix bug in gtk_show_uri() which caused crashes when plugging in USB drives
0574055
257f095
* Wed Jan 12 2011 Matthias Clasen <mclasen@redhat.com> 2.99.2-1
257f095
- Update to 2.99.2
257f095
84c1744
* Mon Jan 10 2011 Matthias Clasen <mclasen@redhat.com> 2.99.1-1
84c1744
- Update to 2.99.1
84c1744
fecf2ab
* Mon Jan 10 2011 Matthias Clasen <mclasen@redhat.com> 2.99.0-3
fecf2ab
- Obsolete gtk3-engines
fecf2ab
af3fa9d
* Fri Jan  7 2011 Matthias Clasen <mclasen@redhat.com> 2.99.0-2
af3fa9d
- Provide the right directory for theming engines
af3fa9d
6329e0f
* Thu Jan  6 2011 Matthias Clasen <mclasen@redhat.com> 2.99.0-1
6329e0f
- Update to 2.99.0
6329e0f
- Drop gtk-update-icon-cache and gtk-builder-convert to
6329e0f
  avoid conflict with gtk2
6329e0f
- Drop the tooltips-style patch for now
6329e0f
2575ccd
* Thu Dec  2 2010 Matthias Clasen <mclasen@redhat.com> 2.91.5-1
2575ccd
- Update to 2.91.5
2575ccd
87b4838
* Fri Nov 12 2010 Matthias Clasen <mclasen@redhat.com> 2.91.4-2
87b4838
- Make gnome-terminal work again
87b4838
ddd31bc
* Thu Nov 11 2010 Matthias Clasen <mclasen@redhat.com> 2.91.4-1
ddd31bc
- Update to 2.91.4
ddd31bc
b5ad578
* Mon Nov  1 2010 Matthias Clasen <mclasen@redhat.com> 2.91.3-1
b5ad578
- Update to 2.91.3
b5ad578
Richard Hughes f28e248
* Wed Oct 20 2010 Richard Hughes <richard@hughsie.com> 2.91.1-1
Richard Hughes f28e248
- Update to 2.91.1
Richard Hughes f28e248
42fb020
* Tue Oct 12 2010 Matthias Clasen <mclasen@redhat.com> 2.91.0-2
42fb020
- Fix a crash in the tooltip code
42fb020
61f4052
* Sat Oct  2 2010 Matthias Clasen <mclasen@redhat.com> 2.91.0-1
61f4052
- Update to 2.91.0
61f4052
Jesse Keating cfa1db8
* Wed Sep 29 2010 jkeating - 2.90.7-3
Jesse Keating cfa1db8
- Rebuilt for gcc bug 634757
Jesse Keating cfa1db8
e8108e0
* Tue Sep 21 2010 Matthias Clasen <mclaesn@redhat.com> 2.90.7-2
e8108e0
- Reinstate the tooltip look
e8108e0
Bastien Nocera 7da5f6e
* Mon Sep 20 2010 Bastien Nocera <bnocera@redhat.com> 2.90.7-1
Bastien Nocera 7da5f6e
- Update to 2.90.7
Bastien Nocera 7da5f6e
1217c59
* Mon Aug 23 2010 Matthias Clasen <mclasen@redhat.com> - 2.90.5-5
1217c59
- Co-own /usr/share/gtk-doc
3dfa7d5
- gtk3-devel requires gdk-pixbuf2-devel
1217c59
692eabf
* Mon Jul 26 2010 Colin Walters <walters@verbum.org> - 2.90.5-4
1bf70b6
- gtk3-devel requires gdk-pixbuf-devel
1bf70b6
692eabf
* Thu Jul 22 2010 Colin Walters <walters@verbum.org> - 2.90.5-2
42f6303
- Rebuild with new gobject-introspection
42f6303
850ed7d
* Mon Jul 22 2010 Matthias Clasen <mclasen@redhat.com> 2.90.5-1
850ed7d
- Update to 2.90.5
850ed7d
adf47a5
* Fri Jul  9 2010 Colin Walters <walters@verbum.org> - 2.90.4-3
adf47a5
- Update tooltip style patch to remove unused GdkRegion
adf47a5
6369175
* Tue Jun 29 2010 Colin Walters <walters@pocket> - 2.90.4-2
6369175
- Changes to support rebuilds from snapshots
6369175
45f7964
* Mon Jun 28 2010 Matthias Clasen <mclasen@redhat.com> 2.90.4-1
45f7964
- Update to 2.90.4
45f7964
15308e3
* Fri Jun 18 2010 Matthias Clasen <mclasen@redhat.com> 2.90.3-1
15308e3
- Update to 2.90.3
15308e3
c697fd5
* Sat Jun 12 2010 Matthias Clasen <mclasen@redhat.com> 2.90.2-2
c697fd5
- Copy some tweaks from gtk2
c697fd5
dd8ffa9
* Tue Jun  8 2010 Matthias Clasen <mclasen@redhat.com> 2.90.2-1
dd8ffa9
- Update to 2.90.2
dd8ffa9
c890c92
* Tue May 25 2010 Matthias Clasen <mclasen@redhat.com> 2.90.1-1
c890c92
- Update to 2.90.1
c890c92
7442cc3
* Fri May 21 2010 Matthias Clasen <mclasen@redhat.com> 2.90.0-5
7442cc3
- Some more package review feedback
7442cc3
7442cc3
* Thu May 20 2010 Matthias Clasen <mclasen@redhat.com> 2.90.0-4
7442cc3
- Remove %%check again, it causes trouble
7442cc3
7442cc3
* Mon May 17 2010 Matthias Clasen <mclasen@redhat.com> 2.90.0-3
7442cc3
- More review feedback
7442cc3
7442cc3
* Wed May 12 2010 Matthias Clasen <mclasen@redhat.com> 2.90.0-2
7442cc3
- Incorporate review feedback
7442cc3
7442cc3
* Wed May 11 2010 Matthias Clasen <mclasen@redhat.com> 2.90.0-1
7442cc3
- Update to the 2.90.0 release
7442cc3
- Complete parallel installability
7442cc3
7442cc3
* Mon May 10 2010 Richard Hughes <richard@hughsie.com> 2.90.0-0.0.20100510git
7442cc3
- Update from git