6f93337
%define libxml2_version                   2.4.20
8e451e1
%define gtk3_version                      2.91.0
6f93337
%define glib2_version                     2.15.4
6f93337
%define startup_notification_version      0.5
6f93337
%define gnome_doc_utils_version           0.3.2
6f93337
%define gtk_doc_version                   1.9
6f93337
%define po_package                        gnome-desktop-3.0
6f93337
6f93337
Summary: Shared code among gnome-panel, gnome-session, nautilus, etc
6f93337
Name: gnome-desktop3
Bastien Nocera 50d7f66
Version: 2.91.1
Bill Nottingham a95634b
Release: 3%{?dist}
6f93337
URL: http://www.gnome.org
8e451e1
Source0: http://download.gnome.org/sources/gnome-desktop/2.91/gnome-desktop-%{version}.tar.bz2
6f93337
License: GPLv2+ and LGPLv2+
6f93337
Group: System Environment/Libraries
6f93337
6f93337
Requires: redhat-menus
Bill Nottingham 32373a3
### uncomment when gnome-about is packaged here
Bill Nottingham 32373a3
#Requires: pycairo
Bill Nottingham 32373a3
#Requires: pygtk2
6f93337
6f93337
# Make sure to update libgnome schema when changing this
Bill Nottingham 26268e6
Requires: system-backgrounds-gnome
6f93337
6f93337
BuildRequires: gnome-common
6f93337
BuildRequires: libxml2-devel >= %{libxml2_version}
6f93337
BuildRequires: gtk3-devel >= %{gtk3_version}
Bastien Nocera 004fffe
BuildRequires: gsettings-desktop-schemas-devel
6f93337
BuildRequires: GConf2-devel
6f93337
BuildRequires: glib2-devel >= %{glib2_version}
6f93337
BuildRequires: startup-notification-devel >= %{startup_notification_version}
6f93337
BuildRequires: gnome-doc-utils >= %{gnome_doc_utils_version}
6f93337
BuildRequires: scrollkeeper
6f93337
BuildRequires: gettext
6f93337
BuildRequires: gtk-doc >= %{gtk_doc_version}
6f93337
BuildRequires: automake autoconf libtool intltool
6f93337
Bastien Nocera 752dc9e
# Upstream patch
Bastien Nocera 752dc9e
Patch0: 0001-Fix-possible-double-free-when-destroying-private-win.patch
Bastien Nocera 752dc9e
6f93337
%description
6f93337
6f93337
The gnome-desktop package contains an internal library
6f93337
(libgnomedesktop) used to implement some portions of the GNOME
6f93337
desktop, and also some data files and other shared components of the
6f93337
GNOME user environment.
6f93337
6f93337
%package devel
6f93337
Summary: Libraries and headers for libgnome-desktop
6f93337
License: LGPLv2+
6f93337
Group: Development/Libraries
6f93337
Requires: %name = %{version}-%{release}
6f93337
6f93337
Requires: libxml2-devel >= %{libxml2_version}
6f93337
Requires: gtk3-devel >= %{gtk3_version}
6f93337
Requires: glib2-devel >= %{glib2_version}
6f93337
Requires: startup-notification-devel >= %{startup_notification_version}
6f93337
Requires: gnome-doc-utils >= %{gnome_doc_utils_version}
6f93337
Requires: pkgconfig
6f93337
Requires: gtk-doc >= %{gtk_doc_version}
6f93337
6f93337
%description devel
6f93337
Libraries and header files for the GNOME-internal private library
6f93337
libgnomedesktop.
6f93337
6f93337
%prep
6f93337
%setup -q -n gnome-desktop-%{version}
Bastien Nocera 752dc9e
%patch0 -p1 -b .double-free
6f93337
6f93337
%build
6f93337
%configure --with-gnome-distributor="Red Hat, Inc" \
6f93337
           --with-pnp-ids-path="/usr/share/hwdata/pnp.ids" \
6f93337
           --disable-scrollkeeper
6f93337
make %{?_smp_mflags}
6f93337
6f93337
%install
6f93337
make install DESTDIR=$RPM_BUILD_ROOT
6f93337
6f93337
# stuff we don't want
6f93337
rm -rf $RPM_BUILD_ROOT/var/scrollkeeper
6f93337
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
6f93337
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
6f93337
6f93337
# conflicts with the original gnome-desktop, but we might switchroo in a few weeks time
6f93337
rm -f $RPM_BUILD_ROOT%{_bindir}/gnome-about 
6f93337
rm -f $RPM_BUILD_ROOT%{_datadir}/applications/gnome-about.desktop 
6f93337
rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome-about
e28904a
rm -f $RPM_BUILD_ROOT%{_mandir}/man1/gnome-about*
6f93337
6f93337
%find_lang %{po_package} --all-name --with-gnome
6f93337
6f93337
%post -p /sbin/ldconfig
6f93337
6f93337
%postun -p /sbin/ldconfig
6f93337
6f93337
%files -f %{po_package}.lang
6f93337
%defattr(-,root,root,-)
6f93337
%doc AUTHORS COPYING COPYING.LIB NEWS README
6f93337
# these files might come back if we ever end up not shipping the original gnome-desktop on the media
6f93337
#%{_datadir}/applications/gnome-about.desktop
6f93337
#%{_datadir}/gnome-about
6f93337
%{_datadir}/omf/*
6f93337
# GPL
6f93337
#%{_bindir}/gnome-about
6f93337
# LGPL
6f93337
%{_libdir}/lib*.so.*
6f93337
6f93337
%files devel
6f93337
%defattr(-,root,root,-)
6f93337
%{_libdir}/lib*.so
6f93337
%{_libdir}/pkgconfig/*
6f93337
%{_includedir}/*
6f93337
%doc %{_datadir}/gtk-doc/html/gnome-desktop3/
6f93337
6f93337
%changelog
Bill Nottingham 32373a3
* Thu Nov 11 2010 Bill Nottingham <notting@redhat.com> 2.91.1-3
Bill Nottingham 32373a3
- remove some extraneous deps
Bill Nottingham 32373a3
Bastien Nocera 752dc9e
* Thu Nov 11 2010 Bastien Nocera <bnocera@redhat.com> 2.91.1-2
Bastien Nocera 752dc9e
- Fix a possible double-free crasher
Bastien Nocera 752dc9e
Bastien Nocera 50d7f66
* Wed Nov 10 2010 Bastien Nocera <bnocera@redhat.com> 2.91.1-1
Bastien Nocera 50d7f66
- Update to 2.91.1
Bastien Nocera 50d7f66
0fcb14c
* Tue Nov  2 2010 Matthias Clasen <mclasen@redhat.com> 2.91.0-3
0fcb14c
- Rebuild against newer gtk3
0fcb14c
Bill Nottingham 26268e6
* Thu Oct 28 2010 Bill Nottingham <notting@redhat.com> 2.91.0-2
Bill Nottingham 26268e6
- flip background to match F-14
Bill Nottingham 26268e6
8e451e1
* Mon Oct  4 2010 Matthias Clasen <mclasen@redhat.com> 2.91.0-1
8e451e1
- Update to 2.91.0
8e451e1
Jesse Keating c38d257
* Wed Sep 29 2010 jkeating - 2.90.4-4
Jesse Keating c38d257
- Rebuilt for gcc bug 634757
Jesse Keating c38d257
edbb99c
* Wed Sep 22 2010 Matthias Clasen <mclasen@redhat.com> 2.90.4-3
edbb99c
- Rebuild against newer gobject-introspection
edbb99c
- Rebuild against newer gtk
edbb99c
e28904a
* Thu Aug 19 2010 Matthias Clasen <mclasen@redhat.com> 2.90.4-2
e28904a
- Prevent file conflict with gnome-desktop
e28904a
3913769
* Tue Jun 29 2010 Matthias Clasen <mclasen@redhat.com> 2.90.4-1
3913769
- Update to 2.90.4
3913769
220e718
* Mon Jun 28 2010 Matthias Clasen <mclasen@redhat.com> 2.90.2-1
220e718
- 2.90.2
c84487d
6f93337
* Thu Jun 17 2010 Richard Hughes <richard@hughsie.com> 2.90.1-1
6f93337
- Initial build for review.
6f93337