File gnome-panel.spec of Package gnome-panel
#
# spec file for package gnome-panel (Version 2.28.0)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: gnome-panel
BuildRequires: NetworkManager-devel
BuildRequires: dbus-1-devel
BuildRequires: evolution-data-server-devel
BuildRequires: fdupes
BuildRequires: gnome-common
BuildRequires: gnome-desktop-devel
BuildRequires: gnome-doc-utils-devel
BuildRequires: gnome-menus-devel
BuildRequires: gnome-patch-translation
BuildRequires: gtk-doc
BuildRequires: intltool
BuildRequires: libbonoboui-devel
BuildRequires: libgweather-devel
BuildRequires: libgnomeui-devel
BuildRequires: libidl-devel
BuildRequires: librsvg-devel
BuildRequires: libwnck-devel
BuildRequires: licenses
BuildRequires: polkit-devel
BuildRequires: translation-update-upstream
BuildRequires: update-desktop-files
License: LGPL v2.1 or later
Group: Development/Libraries/GNOME
Version: 2.28.0
Release: 2
Summary: The GNOME 2.x Desktop Panel
Source: ftp://ftp.gnome.org/pub/gnome/sources/gnome-panel/2.24/%{name}-%{version}.tar.bz2
Url: http://www.gnome.org
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: gnome-themes licenses
Recommends: gnome-main-menu gnome-control-center
Requires: %{name}-lang = %{version}
# Required by clock/tz.c:
Requires: timezone
# PATCH-FIX-UPSTREAM gnome-panel-recent-check-exists.patch -- Show an error when clicking on a recent item that doesn't exist anymore
Patch25: gnome-panel-recent-check-exists.patch
# PATCH-FIX-UPSTREAM gnome-panel-beagle-search.patch bgo336726 -- Use nautilus search instead of gnome-search-tool
Patch34: gnome-panel-beagle-search.patch
# PATCH-FIX-OPENSUSE gnome-panel-2-11-bring-back-my-run-item.patch -- Display the run dialog in the menu bar
Patch35: gnome-panel-2-11-bring-back-my-run-item.patch
# PATCH-FIX-OPENSUSE gnome-panel-main-menu-name.patch -- Rename the upstream main menu to traditional main menu
Patch40: gnome-panel-main-menu-name.patch
# PATCH-NEEDS-REBASE gnome-panel-run-fixes.patch bnc115576 bgo543604 -- Fix running a command like yast2 when we find the desktop file but the binary is not in $PATH (was PATCH-FIX-UPSTREAM)
Patch50: gnome-panel-run-fixes.patch
# PATCH-FEATURE-OPENSUSE gnome-panel-alt-f1-slab.patch -- Open the gnome-main-menu on Alt-F1.
Patch51: gnome-panel-alt-f1-slab.patch
# PATCH-FEATURE-UPSTREAM gnome-panel-recently-used-apps.patch bgo464751 -- Add apps run from the run dialog to the recently used applications. vuntz: I didn't put the patch upstream because I know I won't implement the feature like this upstream.
Patch56: gnome-panel-recently-used-apps.patch
# PATCH-FIX-OPENSUSE gnome-panel-bnc363981-intlclock-compatibility.patch bnc363981 vuntz@novell.com -- Keep compatilibity with setups using intlclock. Also fixes bnc376319
Patch58: gnome-panel-bnc363981-intlclock-compatibility.patch
# PATCH-FEATURE-OPENSUSE gnome-panel-bnc356242-recently-used-apps-hidden.patch bnc356242 vuntz@novell.com -- Hide recently used apps from the recent documents menu
Patch61: gnome-panel-bnc356242-recently-used-apps-hidden.patch
# PATCH-FIX-UPSTREAM gnome-panel-fix-ugly-unhide.patch vuntz@opensuse.org -- Taken from upstream
Patch62: gnome-panel-fix-ugly-unhide.patch
# PATCH-FIX-UPSTREAM gnome-panel-randr-crashes.patch vuntz@opensuse.org -- Taken from upstream
Patch63: gnome-panel-randr-crashes.patch
Obsoletes: gnome-core
# For upgrade from SLE 10
Provides: gnome-panel-nld > 2.12.3
Obsoletes: gnome-panel-nld <= 2.12.3
# As of Jan 2008, intlclock is part of gnome-panel.
Provides: intlclock = 1.0
Obsoletes: intlclock <= 1.0
%gconf_schemas_prereq
%description
This package contains the GNOME 2.x Desktop Panel. The panel is an
easy-to-use and functional interface to manage your desktop, start
programs, and organize access to your data.
%package extras
License: LGPL v2.1 or later
Summary: Extra panel applets
Group: System/GUI/GNOME
Requires: %{name} = %{version} fortune
# For upgrade from SLE 10
Provides: gnome-panel-nld-extras > 2.12.3
Obsoletes: gnome-panel-nld-extras <= 2.12.3
%gconf_schemas_prereq
%description extras
This package contains extra panel applets such as Wanda the fish.
%package devel
License: LGPL v2.1 or later
Summary: Include Files and Libraries mandatory for Development
Group: System/GUI/GNOME
Requires: %{name} = %{version}
Requires: gconf2-devel
Requires: gtk2-devel
Requires: libgnomeui-devel
Requires: libbonoboui-devel
# For upgrade from SLE 10
Provides: gnome-panel-nld-devel > 2.12.3
Obsoletes: gnome-panel-nld-devel <= 2.12.3
%description devel
This package contains all necessary include files and libraries needed
to develop applications that require these.
%package doc
License: LGPL v2.1 or later
Summary: Additional Package Documentation for gnome-panel
Group: System/GUI/GNOME
Requires: %{name} = %{version}
# For upgrade from SLE 10
Provides: gnome-panel-nld-doc > 2.12.3
Obsoletes: gnome-panel-nld-doc <= 2.12.3
%description doc
This package contains optional documentation provided in addition to
this package's base documentation.
%lang_package
%prep
%setup -q
translation-update-upstream
gnome-patch-translation-prepare
%patch25 -p1
%patch34
%patch35 -p1
%patch40
# %patch50
%patch51 -p1
%patch56 -p1
%patch58 -p1
%patch61 -p1
%patch62 -p1
%patch63 -p1
gnome-patch-translation-update
%build
%configure --with-pic \
--libexecdir=%{_libexecdir}/gnome-panel \
--disable-static \
--with-in-process-applets=all \
--disable-schemas-install \
--disable-scrollkeeper
make %{?jobs:-j%jobs}
%install
%makeinstall
%suse_update_desktop_file gnome-panel
%find_lang %{name}-2.0
%find_lang clock %{name}-2.0.lang
%find_lang fish
%def_gconf_schemas %{name}
%add_gconf_schemas clock
%add_gconf_schemas panel-compatibility
%add_gconf_schemas panel-general
%add_gconf_schemas panel-global
%add_gconf_schemas panel-object
%add_gconf_schemas panel-toplevel
%add_gconf_schemas window-list
%add_gconf_schemas workspace-switcher
%def_gconf_schemas %{name}-extras
%add_gconf_schemas fish
%end_gconf_schemas
# NOTE: GCONF_CONFIG_SOURCE is already set by %%posttrans code.
sed -i /GCONF_CONFIG_SOURCE/d %{name}.schemas_posttrans
cat %{name}.schemas_list >%{name}.lst
cat fish.lang %{name}-extras.schemas_list >%{name}-extras.lst
# Move .entries file to /usr/share/gconf/schemas, see fate#305318
mv $RPM_BUILD_ROOT%{_sysconfdir}/gconf/schemas/panel-default-setup.entries $RPM_BUILD_ROOT%{_datadir}/gconf/schemas/panel-default-setup.entries
for FILE in COPYING ; do
MD5SUM=$(md5sum $FILE | sed 's/ .*//g')
if test -f /usr/share/doc/licenses/md5/$MD5SUM ; then
ln -sf /usr/share/doc/licenses/md5/$MD5SUM $FILE
fi
done
find %{buildroot} -type f -name "*.la" -exec %{__rm} -fv {} +
%fdupes $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%pre -f %{name}.schemas_pre
%post
/sbin/ldconfig
%posttrans -f %{name}.schemas_posttrans
export GCONF_CONFIG_SOURCE=`usr/bin/gconftool-2 --get-default-source`
usr/bin/gconftool-2 --direct --config-source=$GCONF_CONFIG_SOURCE --load usr/share/gconf/schemas/panel-default-setup.entries >/dev/null
%preun -f %{name}.schemas_preun
# Remove extra keys from panel-default-setup.entries.
# If it is an update, %%posttrans will install new schemas.
rm -rf etc/gconf/gconf.xml.schemas/apps/panel/default_setup
%postun -p /sbin/ldconfig
%pre extras -f %{name}-extras.schemas_pre
%posttrans extras -f %{name}-extras.schemas_posttrans
%preun extras -f %{name}-extras.schemas_preun
%files -f %{name}.lst
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README
%defattr (-, root, root)
%{_bindir}/*
%{_datadir}/applications/gnome-panel.desktop
%{_datadir}/dbus-1/system-services/*.service
%{_datadir}/gconf/schemas/panel-default-setup.entries
%{_datadir}/gnome-2.0/ui/*.xml
%{_datadir}/gnome-panel/
%{_datadir}/gnome-panelrc
%{_datadir}/icons/*/*/*/gnome-panel*.*
%{_datadir}/idl/*
%{_datadir}/polkit-1/actions/*.policy
%{_libdir}/*.so.*
%{_libdir}/bonobo/servers/*.server
# generic directory for in-process applets
%{_libdir}/gnome-panel/
%if "%{_libdir}" != "%{_libexecdir}"
# generic directory for normal applets, and helpers
%{_libexecdir}/gnome-panel/
%endif
%doc %{_mandir}/man?/*.*
%config %{_sysconfdir}/dbus-1/system.d/*.conf
# Files that are in the extras package
%exclude %{_datadir}/gnome-panel/ui/fish.ui
%exclude %{_datadir}/gnome-panel/pixmaps/fish*.png
%exclude %{_datadir}/gnome-2.0/ui/GNOME_FishApplet.xml
%exclude %{_datadir}/icons/*/*/*/gnome-panel-fish.*
%exclude %{_libdir}/gnome-panel/libfish-applet-2.so
%exclude %{_libdir}/bonobo/servers/GNOME_FishApplet_Factory.server
%files lang -f %{name}-2.0.lang
## ha/ig does not exist in Factory currently
%if %suse_version <= 1110
# exclude locales which don't exist on old versions of openSUSE
%exclude %{_datadir}/locale/la/LC_MESSAGES/*
%endif
%exclude %{_datadir}/locale/ha/LC_MESSAGES/*
%exclude %{_datadir}/locale/ig/LC_MESSAGES/*
%files extras -f %{name}-extras.lst
%defattr (-, root, root)
# When changing the file list here, please update the excluded files in the main package
%{_datadir}/gnome-panel/ui/fish.ui
%{_datadir}/gnome-panel/pixmaps/fish*.png
%{_datadir}/gnome-2.0/ui/GNOME_FishApplet.xml
%{_datadir}/icons/*/*/*/gnome-panel-fish.*
%{_libdir}/gnome-panel/libfish-applet-2.so
%{_libdir}/bonobo/servers/GNOME_FishApplet_Factory.server
%files devel
%defattr (-, root, root)
%{_includedir}/panel-2.0
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%files doc
%defattr (-, root, root)
%{_datadir}/gtk-doc/html/*
%changelog