gtk3/gtk3.spec

349 lines
10 KiB
RPMSpec
Raw Normal View History

2010-11-11 14:53:43 +00:00
%global glib2_version 2.27.3-1
2010-05-26 03:26:26 +00:00
%global pango_version 1.20.0-1
%global atk_version 1.29.4-2
%global cairo_version 1.6.0-1
%global libpng_version 2:1.2.2-16
%global xrandr_version 1.2.99.4-2
2010-09-20 13:31:36 +00:00
%global gobject_introspection_version 0.9.3
2010-05-26 03:26:26 +00:00
%global bin_version 3.0.0
Summary: The GIMP ToolKit (GTK+), a library for creating GUIs for X
Name: gtk3
2011-01-13 01:43:00 +00:00
Version: 2.99.2
2011-01-11 04:49:43 +00:00
Release: 1%{?dist}
2010-05-26 03:26:26 +00:00
License: LGPLv2+
Group: System Environment/Libraries
URL: http://www.gtk.org
#VCS: git:git://git.gnome.org/gtk+
2011-01-07 15:22:39 +00:00
Source: http://download.gnome.org/sources/gtk+/2.99/gtk+-%{version}.tar.bz2
2010-05-26 03:26:26 +00:00
Source3: im-cedilla.conf
2010-09-20 13:59:15 +00:00
BuildRequires: gnome-common autoconf automake intltool gettext
2010-05-26 03:26:26 +00:00
2011-01-11 04:49:43 +00:00
#Patch2: 0001-New-tooltip-style.patch
2010-09-21 22:25:18 +00:00
2010-05-26 03:26:26 +00:00
BuildRequires: atk-devel >= %{atk_version}
BuildRequires: glib2-devel >= %{glib2_version}
2010-06-28 17:28:23 +00:00
BuildRequires: cairo-devel >= %{cairo_version}
2010-10-02 05:00:27 +00:00
BuildRequires: cairo-gobject-devel >= %{cairo_version}
2010-06-28 17:28:23 +00:00
BuildRequires: pango-devel >= %{pango_version}
BuildRequires: gdk-pixbuf2-devel
2010-05-26 03:26:26 +00:00
BuildRequires: libXi-devel
BuildRequires: gettext
BuildRequires: gtk-doc
BuildRequires: cups-devel
BuildRequires: libXrandr-devel >= %{xrandr_version}
BuildRequires: libXrender-devel
BuildRequires: libXcursor-devel
BuildRequires: libXfixes-devel
BuildRequires: libXinerama-devel
BuildRequires: libXcomposite-devel
BuildRequires: libXdamage-devel
2010-06-12 04:49:56 +00:00
BuildRequires: libXi-devel
2010-05-26 03:26:26 +00:00
BuildRequires: gobject-introspection-devel >= %{gobject_introspection_version}
# required for icon theme apis to work
Requires: hicolor-icon-theme
# We need to prereq these so we can run gtk-query-immodules-3.0
Requires(post): glib2 >= %{glib2_version}
Requires(post): atk >= %{atk_version}
Requires(post): pango >= %{pango_version}
Requires: libXrandr >= %{xrandr_version}
2011-01-10 22:00:13 +00:00
# gtk3 no longer provides the GtkThemeEngine interface used there
Obsoletes: gtk3-engines <= 2.91.5-5.fc15
2010-05-26 03:26:26 +00:00
%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 tools to complete application
suites.
This package contains version 3 of GTK+.
%package immodules
Summary: Input methods for GTK+
Group: System Environment/Libraries
Requires: gtk3 = %{version}-%{release}
# for /etc/X11/xinit/xinput.d
Requires: imsettings
%description immodules
The gtk3-immodules package contains standalone input methods that are shipped
as part of GTK+ 3.
%package immodule-xim
Summary: XIM support for GTK+
Group: System Environment/Libraries
Requires: gtk3 = %{version}-%{release}
%description immodule-xim
The gtk3-immodule-xim package contains XIM support for GTK+ 3.
%package devel
Summary: Development files for GTK+
Group: Development/Libraries
Requires: gtk3 = %{version}-%{release}
2010-08-23 23:45:11 +00:00
Requires: gdk-pixbuf2-devel
2010-05-26 03:26:26 +00:00
Requires: libX11-devel, libXcursor-devel, libXinerama-devel
Requires: libXext-devel, libXi-devel, libXrandr-devel
Requires: libXfixes-devel, libXcomposite-devel
# for /usr/share/aclocal
Requires: automake
2011-01-10 22:00:13 +00:00
Obsoletes: gtk3-engines-devel <= 2.91.5-5.fc15
2010-05-26 03:26:26 +00:00
%description devel
This package contains the libraries and header files that are needed
for writing applications with version 3 of the GTK+ widget toolkit. If
you plan to develop applications with GTK+, consider installing the
gtk3-devel-docs package.
%package devel-docs
Summary: Developer documentation for GTK+
Group: Development/Libraries
Requires: gtk3 = %{version}-%{release}
%description devel-docs
This package contains developer documentation for version 3 of the GTK+
widget toolkit.
%prep
%setup -q -n gtk+-%{version}
2011-01-07 15:22:39 +00:00
#%patch2 -p1 -b .fresh-tooltips
2010-05-26 03:26:26 +00:00
%build
2010-09-20 13:59:15 +00:00
# For the gobject-introspection patch
2010-09-20 14:08:52 +00:00
autoreconf -f
2010-09-20 13:59:15 +00:00
(if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; CONFIGFLAGS=--enable-gtk-doc; fi;
%configure $CONFIGFLAGS \
--with-xinput \
)
2010-05-26 03:26:26 +00:00
# fight unused direct deps
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
2010-06-28 17:52:27 +00:00
make # %{?_smp_mflags}
2010-05-26 03:26:26 +00:00
# truncate NEWS
awk '/^Overview of Changes/ { seen+=1 }
{ if (seen < 2) print }
{ if (seen == 2) { print "For older news, see http://git.gnome.org/cgit/gtk+/plain/NEWS"; exit } }' NEWS > tmp; mv tmp NEWS
%install
make install DESTDIR=$RPM_BUILD_ROOT \
2010-06-28 17:28:23 +00:00
RUN_QUERY_IMMODULES_TEST=false
2010-05-26 03:26:26 +00:00
%find_lang gtk30
%find_lang gtk30-properties
2010-05-26 04:10:40 +00:00
(cd $RPM_BUILD_ROOT%{_bindir}
mv gtk-query-immodules-3.0 gtk-query-immodules-3.0-%{__isa_bits}
)
2010-05-26 03:26:26 +00:00
# Input method frameworks want this
2010-05-26 04:10:40 +00:00
install -D %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/X11/xinit/xinput.d/im-cedilla.conf
2010-05-26 03:26:26 +00:00
# Remove unpackaged files
rm $RPM_BUILD_ROOT%{_libdir}/*.la
rm $RPM_BUILD_ROOT%{_libdir}/gtk-3.0/*/*.la
rm $RPM_BUILD_ROOT%{_libdir}/gtk-3.0/%{bin_version}/*/*.la
2010-05-26 04:10:40 +00:00
touch $RPM_BUILD_ROOT%{_libdir}/gtk-3.0/%{bin_version}/immodules.cache
2010-05-26 03:26:26 +00:00
2011-01-07 18:11:44 +00:00
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/gtk-3.0
2010-05-26 03:26:26 +00:00
mkdir -p $RPM_BUILD_ROOT%{_libdir}/gtk-3.0/modules
mkdir -p $RPM_BUILD_ROOT%{_libdir}/gtk-3.0/immodules
2011-01-07 18:11:44 +00:00
mkdir -p $RPM_BUILD_ROOT%{_libdir}/gtk-3.0/%{bin_version}/theming-engines
2010-05-26 03:26:26 +00:00
%post
/sbin/ldconfig
2010-05-26 04:10:40 +00:00
gtk-query-immodules-3.0-%{__isa_bits} --update-cache
2010-10-20 11:15:25 +00:00
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
2010-05-26 03:26:26 +00:00
%post immodules
2010-05-26 04:10:40 +00:00
gtk-query-immodules-3.0-%{__isa_bits} --update-cache
2010-05-26 03:26:26 +00:00
%post immodule-xim
2010-05-26 04:10:40 +00:00
gtk-query-immodules-3.0-%{__isa_bits} --update-cache
2010-05-26 03:26:26 +00:00
%postun
/sbin/ldconfig
if [ $1 -gt 0 ]; then
2010-05-26 04:10:40 +00:00
gtk-query-immodules-3.0-%{__isa_bits} --update-cache
2010-05-26 03:26:26 +00:00
fi
2010-10-20 11:15:25 +00:00
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
2010-05-26 03:26:26 +00:00
%postun immodules
2010-05-26 04:10:40 +00:00
gtk-query-immodules-3.0-%{__isa_bits} --update-cache
2010-05-26 03:26:26 +00:00
%postun immodule-xim
2010-05-26 04:10:40 +00:00
gtk-query-immodules-3.0-%{__isa_bits} --update-cache
2010-05-26 03:26:26 +00:00
%files -f gtk30.lang
%defattr(-, root, root, -)
%doc AUTHORS COPYING NEWS README
%{_bindir}/gtk-query-immodules-3.0*
2011-01-07 15:22:39 +00:00
%exclude %{_bindir}/gtk-update-icon-cache
%{_libdir}/libgtk-3.0.so.*
%{_libdir}/libgdk-3.0.so.*
2010-05-26 03:26:26 +00:00
%{_libdir}/libgailutil-3.0.so.*
%dir %{_libdir}/gtk-3.0
%dir %{_libdir}/gtk-3.0/%{bin_version}
2011-01-07 18:11:44 +00:00
%{_libdir}/gtk-3.0/%{bin_version}/theming-engines
2010-05-26 03:26:26 +00:00
%dir %{_libdir}/gtk-3.0/%{bin_version}/immodules
%{_libdir}/gtk-3.0/%{bin_version}/printbackends
%{_libdir}/gtk-3.0/modules
%{_libdir}/gtk-3.0/immodules
%{_datadir}/themes/Default
%{_datadir}/themes/Emacs
%{_datadir}/themes/Raleigh
%{_libdir}/girepository-1.0
2010-05-26 04:10:40 +00:00
%dir %{_sysconfdir}/gtk-3.0
%ghost %{_libdir}/gtk-3.0/%{bin_version}/immodules.cache
2010-05-26 04:19:42 +00:00
%{_mandir}/man1/gtk-query-immodules-3.0.1.gz
2011-01-07 15:22:39 +00:00
%exclude %{_mandir}/man1/gtk-update-icon-cache.1.gz
2010-10-20 11:15:25 +00:00
%{_datadir}/glib-2.0/schemas/org.gtk.Settings.FileChooser.gschema.xml
2010-05-26 03:26:26 +00:00
%files immodules
%defattr(-, root, root, -)
%{_libdir}/gtk-3.0/%{bin_version}/immodules/im-am-et.so
%{_libdir}/gtk-3.0/%{bin_version}/immodules/im-cedilla.so
%{_libdir}/gtk-3.0/%{bin_version}/immodules/im-cyrillic-translit.so
%{_libdir}/gtk-3.0/%{bin_version}/immodules/im-inuktitut.so
%{_libdir}/gtk-3.0/%{bin_version}/immodules/im-ipa.so
%{_libdir}/gtk-3.0/%{bin_version}/immodules/im-multipress.so
%{_libdir}/gtk-3.0/%{bin_version}/immodules/im-thai.so
%{_libdir}/gtk-3.0/%{bin_version}/immodules/im-ti-er.so
%{_libdir}/gtk-3.0/%{bin_version}/immodules/im-ti-et.so
%{_libdir}/gtk-3.0/%{bin_version}/immodules/im-viqr.so
%{_sysconfdir}/X11/xinit/xinput.d/im-cedilla.conf
%config(noreplace) %{_sysconfdir}/gtk-3.0/im-multipress.conf
%files immodule-xim
%defattr(-, root, root, -)
%{_libdir}/gtk-3.0/%{bin_version}/immodules/im-xim.so
%files devel -f gtk30-properties.lang
%defattr(-, root, root, -)
%{_libdir}/lib*.so
%{_includedir}/*
%{_datadir}/aclocal/*
2011-01-07 15:22:39 +00:00
%exclude %{_bindir}/gtk-builder-convert
2010-05-26 03:26:26 +00:00
%{_libdir}/pkgconfig/*
%{_bindir}/gtk3-demo
%{_datadir}/gtk-3.0
%{_datadir}/gir-1.0
%files devel-docs
%defattr(-, root, root, -)
2010-08-23 23:41:54 +00:00
%{_datadir}/gtk-doc
2011-01-07 15:22:39 +00:00
%exclude %{_mandir}/man1/gtk-builder-convert.1.gz
2010-05-26 03:26:26 +00:00
%changelog
2011-01-13 01:43:00 +00:00
* Wed Jan 12 2011 Matthias Clasen <mclasen@redhat.com> 2.99.2-1
- Update to 2.99.2
2011-01-11 04:49:43 +00:00
* Mon Jan 10 2011 Matthias Clasen <mclasen@redhat.com> 2.99.1-1
- Update to 2.99.1
2011-01-10 22:00:13 +00:00
* Mon Jan 10 2011 Matthias Clasen <mclasen@redhat.com> 2.99.0-3
- Obsolete gtk3-engines
2011-01-07 18:11:44 +00:00
* Fri Jan 7 2011 Matthias Clasen <mclasen@redhat.com> 2.99.0-2
- Provide the right directory for theming engines
2011-01-07 15:22:39 +00:00
* Thu Jan 6 2011 Matthias Clasen <mclasen@redhat.com> 2.99.0-1
- Update to 2.99.0
- Drop gtk-update-icon-cache and gtk-builder-convert to
avoid conflict with gtk2
- Drop the tooltips-style patch for now
2010-12-03 04:27:08 +00:00
* Thu Dec 2 2010 Matthias Clasen <mclasen@redhat.com> 2.91.5-1
- Update to 2.91.5
2010-11-13 00:25:12 +00:00
* Fri Nov 12 2010 Matthias Clasen <mclasen@redhat.com> 2.91.4-2
- Make gnome-terminal work again
2010-11-11 14:38:34 +00:00
* Thu Nov 11 2010 Matthias Clasen <mclasen@redhat.com> 2.91.4-1
- Update to 2.91.4
2010-11-01 18:13:55 +00:00
* Mon Nov 1 2010 Matthias Clasen <mclasen@redhat.com> 2.91.3-1
- Update to 2.91.3
2010-10-20 11:15:25 +00:00
* Wed Oct 20 2010 Richard Hughes <richard@hughsie.com> 2.91.1-1
- Update to 2.91.1
2010-10-12 16:27:06 +00:00
* Tue Oct 12 2010 Matthias Clasen <mclasen@redhat.com> 2.91.0-2
- Fix a crash in the tooltip code
2010-10-02 04:38:20 +00:00
* Sat Oct 2 2010 Matthias Clasen <mclasen@redhat.com> 2.91.0-1
- Update to 2.91.0
2010-09-29 21:23:48 +00:00
* Wed Sep 29 2010 jkeating - 2.90.7-3
- Rebuilt for gcc bug 634757
2010-09-21 22:31:51 +00:00
* Tue Sep 21 2010 Matthias Clasen <mclaesn@redhat.com> 2.90.7-2
- Reinstate the tooltip look
2010-09-20 13:31:36 +00:00
* Mon Sep 20 2010 Bastien Nocera <bnocera@redhat.com> 2.90.7-1
- Update to 2.90.7
2010-08-23 23:41:54 +00:00
* Mon Aug 23 2010 Matthias Clasen <mclasen@redhat.com> - 2.90.5-5
- Co-own /usr/share/gtk-doc
2010-08-23 23:45:11 +00:00
- gtk3-devel requires gdk-pixbuf2-devel
2010-08-23 23:41:54 +00:00
2010-07-26 22:00:39 +00:00
* Mon Jul 26 2010 Colin Walters <walters@verbum.org> - 2.90.5-4
2010-07-26 21:32:42 +00:00
- gtk3-devel requires gdk-pixbuf-devel
2010-07-26 22:00:39 +00:00
* Thu Jul 22 2010 Colin Walters <walters@verbum.org> - 2.90.5-2
- Rebuild with new gobject-introspection
2010-07-12 18:07:16 +00:00
* Mon Jul 22 2010 Matthias Clasen <mclasen@redhat.com> 2.90.5-1
- Update to 2.90.5
* Fri Jul 9 2010 Colin Walters <walters@verbum.org> - 2.90.4-3
- Update tooltip style patch to remove unused GdkRegion
* Tue Jun 29 2010 Colin Walters <walters@pocket> - 2.90.4-2
- Changes to support rebuilds from snapshots
2010-06-28 17:28:23 +00:00
* Mon Jun 28 2010 Matthias Clasen <mclasen@redhat.com> 2.90.4-1
- Update to 2.90.4
2010-06-21 14:34:25 +00:00
* Fri Jun 18 2010 Matthias Clasen <mclasen@redhat.com> 2.90.3-1
- Update to 2.90.3
2010-06-12 04:51:25 +00:00
* Sat Jun 12 2010 Matthias Clasen <mclasen@redhat.com> 2.90.2-2
- Copy some tweaks from gtk2
2010-06-09 03:23:11 +00:00
* Tue Jun 8 2010 Matthias Clasen <mclasen@redhat.com> 2.90.2-1
- Update to 2.90.2
2010-05-26 04:10:40 +00:00
* Tue May 25 2010 Matthias Clasen <mclasen@redhat.com> 2.90.1-1
- Update to 2.90.1
2010-05-26 03:26:26 +00:00
* Fri May 21 2010 Matthias Clasen <mclasen@redhat.com> 2.90.0-5
- Some more package review feedback
* Thu May 20 2010 Matthias Clasen <mclasen@redhat.com> 2.90.0-4
- Remove %%check again, it causes trouble
* Mon May 17 2010 Matthias Clasen <mclasen@redhat.com> 2.90.0-3
- More review feedback
* Wed May 12 2010 Matthias Clasen <mclasen@redhat.com> 2.90.0-2
- Incorporate review feedback
* Wed May 11 2010 Matthias Clasen <mclasen@redhat.com> 2.90.0-1
- Update to the 2.90.0 release
- Complete parallel installability
* Mon May 10 2010 Richard Hughes <richard@hughsie.com> 2.90.0-0.0.20100510git
- Update from git