forked from pool/gnome-control-center
0638be72a5
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-control-center?expand=0&rev=d983bd4ef32bbb11b3bafc46d8634994
213 lines
7.8 KiB
RPMSpec
213 lines
7.8 KiB
RPMSpec
#
|
|
# spec file for package gnome-control-center (Version 2.29.91)
|
|
#
|
|
# Copyright (c) 2010 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-control-center
|
|
BuildRequires: desktop-file-utils
|
|
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: gnome-settings-daemon-devel
|
|
BuildRequires: intltool
|
|
BuildRequires: libgnomekbd-devel
|
|
BuildRequires: librsvg-devel
|
|
BuildRequires: libslab-devel
|
|
BuildRequires: libunique-devel
|
|
BuildRequires: libxklavier-devel
|
|
BuildRequires: metacity-devel
|
|
BuildRequires: translation-update-upstream
|
|
BuildRequires: update-desktop-files
|
|
BuildRequires: xorg-x11
|
|
License: GPLv2+
|
|
Group: System/GUI/GNOME
|
|
Obsoletes: fontilus themus acme
|
|
Provides: fontilus themus acme
|
|
Version: 2.29.91
|
|
Release: 1
|
|
Summary: The GNOME Control Center
|
|
Source: %{name}-%{version}.tar.bz2
|
|
# PATCH-FEATURE-OPENSUSE gnome-control-center-shell-common-tasks-i18n.patch vuntz@opensuse.org -- Translate favorite capplets in the code. This is needed for our gconf2-branding to really work for this setting, so keep in sync with gconf2-branding.
|
|
Patch0: gnome-control-center-shell-common-tasks-i18n.patch
|
|
# PATCH-FIX-UPSTREAM gnome-control-center-bnc427745-force-dpi.patch bnc427745 bgo553652 vuntz@novell.com -- Force the DPI to 96 right now to avoid big fonts.
|
|
Patch1: gnome-control-center-bnc427745-force-dpi.patch
|
|
# PATCH-NEEDS-REBASE gnome-control-center-system-proxy-configuration.patch -- this needs to be reimplemented to be more distro-generic before submitting upstream - docs at http://en.opensuse.org/GNOME/Proxy_configuration (was PATCH-FEATURE-OPENSUSE)
|
|
Patch14: gnome-control-center-system-proxy-configuration.patch
|
|
# PATCH-FEATURE-OPENSUSE gnome-control-center-use-settings-menu.patch
|
|
Patch28: gnome-control-center-use-settings-menu.patch
|
|
# PATCH-FIX-OPENSUSE gnome-control-center-bnc373197-layout-switch-keybinding.patch bnc373197 vuntz@novell.com -- this is a temporary hack to change the default layout switching keybinding
|
|
Patch30: gnome-control-center-bnc373197-layout-switch-keybinding.patch
|
|
# PATCH-FIX-UPSTREAM gnome-control-center-bnc436206-add-to-default.patch bnc436206 sreeves@novell.com -- Add groupwise to defaults list
|
|
Patch31: gnome-control-center-bnc436206-add-to-default.patch
|
|
Url: http://www.gnome.org
|
|
Requires: nautilus gnome-settings-daemon gnome-menus libcanberra-gtk
|
|
Requires: %{name}-lang = %{version}
|
|
Provides: control-center2 = 2.22.1
|
|
Obsoletes: control-center2 < 2.22.1
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
%gconf_schemas_prereq
|
|
|
|
%description
|
|
This package contains the control center for the GNOME 2.x Desktop.
|
|
|
|
%package devel
|
|
License: GPLv2+
|
|
Summary: Header files for the GNOME Control Center
|
|
Group: System/GUI/GNOME
|
|
Requires: %{name} = %{version}
|
|
Provides: control-center2-devel = 2.22.1
|
|
Obsoletes: control-center2-devel < 2.22.1
|
|
|
|
%description devel
|
|
This package contains the control center for the GNOME 2.x Desktop.
|
|
|
|
%package -n libgnome-window-settings1
|
|
License: GPLv2+
|
|
Summary: Utility library for getting window manager settings
|
|
Group: Development/Libraries/GNOME
|
|
Group: Development/Libraries/GNOME
|
|
Requires: %{name}-lang = %{version}
|
|
|
|
%description -n libgnome-window-settings1
|
|
This library is used by the GNOME control center to change preferences
|
|
of window managers.
|
|
|
|
%package -n libgnome-window-settings-devel
|
|
License: GPLv2+
|
|
Summary: Utility library for getting window manager settings - Development Files
|
|
Group: Development/Libraries/GNOME
|
|
Requires: libgnome-window-settings1 = %{version}
|
|
Requires: gtk2-devel
|
|
|
|
%description -n libgnome-window-settings-devel
|
|
This library is used by the GNOME control center to change preferences
|
|
of window managers.
|
|
|
|
%lang_package
|
|
%prep
|
|
%setup -q
|
|
translation-update-upstream
|
|
gnome-patch-translation-prepare
|
|
%patch0 -p1
|
|
%patch1 -p1
|
|
#NEEDS-REBASE
|
|
#%patch14 -p1
|
|
%patch28
|
|
%patch30 -p1
|
|
%patch31 -p1
|
|
gnome-patch-translation-update
|
|
|
|
%build
|
|
autoreconf -f -i
|
|
%configure --with-pic\
|
|
--disable-static\
|
|
--disable-scrollkeeper\
|
|
--disable-update-mimedb\
|
|
--enable-aboutme
|
|
make %{?jobs:-j%jobs}
|
|
|
|
%install
|
|
%makeinstall
|
|
%if 0%{?suse_version} <= 1120
|
|
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
|
|
%endif
|
|
rm -f %{buildroot}%{_datadir}/applications/mimeinfo.cache
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
%find_lang %{name}-2.0
|
|
# help files
|
|
%find_lang control-center %{name}-2.0.lang
|
|
%find_gconf_schemas
|
|
%suse_update_desktop_file -N "Control Center" -G "Personal Settings" -C "Configure the desktop" gnomecc DesktopSettings
|
|
# capplets
|
|
%suse_update_desktop_file at-properties X-SuSE-ControlCenter-Personal
|
|
%suse_update_desktop_file default-applications X-SuSE-ControlCenter-System AdvancedSettings
|
|
%suse_update_desktop_file display-properties X-SuSE-ControlCenter-Hardware
|
|
%suse_update_desktop_file gnome-about-me X-SuSE-ControlCenter-Personal
|
|
%suse_update_desktop_file gnome-network-properties X-SuSE-ControlCenter-System AdvancedSettings
|
|
%suse_update_desktop_file gnome-settings-mouse X-SuSE-ControlCenter-Hardware
|
|
%suse_update_desktop_file gnome-appearance-properties X-SuSE-ControlCenter-LookAndFeel
|
|
%suse_update_desktop_file keybinding X-SuSE-ControlCenter-Personal
|
|
%suse_update_desktop_file keyboard X-SuSE-ControlCenter-Hardware
|
|
%suse_update_desktop_file window-properties X-SuSE-ControlCenter-LookAndFeel
|
|
%suse_update_desktop_file gnome-at-session
|
|
%suse_update_desktop_file gnome-font-viewer
|
|
%suse_update_desktop_file gnome-theme-installer
|
|
%fdupes $RPM_BUILD_ROOT
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%pre -f %{name}.schemas_pre
|
|
|
|
%post
|
|
if test -x usr/bin/update-mime-database ; then
|
|
usr/bin/update-mime-database usr/share/mime >/dev/null
|
|
fi
|
|
|
|
%posttrans -f %{name}.schemas_posttrans
|
|
|
|
%preun -f %{name}.schemas_preun
|
|
|
|
%postun
|
|
if test -x usr/bin/update-mime-database ; then
|
|
usr/bin/update-mime-database usr/share/mime >/dev/null
|
|
fi
|
|
|
|
%post -n libgnome-window-settings1 -p /sbin/ldconfig
|
|
|
|
%postun -n libgnome-window-settings1 -p /sbin/ldconfig
|
|
|
|
%files -f %{name}.schemas_list
|
|
%defattr(-,root,root)
|
|
%doc AUTHORS COPYING ChangeLog NEWS README TODO
|
|
%{_bindir}/*
|
|
%{_sysconfdir}/xdg/autostart/*.desktop
|
|
%{_datadir}/applications/*.desktop
|
|
%{_datadir}/desktop-directories/*.directory
|
|
%{_datadir}/gnome/cursor-fonts
|
|
%{_datadir}/gnome-control-center
|
|
%{_datadir}/icons/hicolor/*/*/*.png
|
|
%{_datadir}/icons/hicolor/scalable/apps/*.svg
|
|
%{_datadir}/mime/packages/*.xml
|
|
%{_sysconfdir}/xdg/menus/gnomecc.menu
|
|
|
|
%files lang -f %{name}-2.0.lang
|
|
|
|
%files devel
|
|
%defattr (-, root, root)
|
|
%{_datadir}/pkgconfig/gnome-default-applications.pc
|
|
%{_datadir}/pkgconfig/gnome-keybindings.pc
|
|
|
|
%files -n libgnome-window-settings1
|
|
%defattr (-, root, root)
|
|
%dir %{_libdir}/window-manager-settings
|
|
%{_libdir}/window-manager-settings/libmetacity.so
|
|
%{_libdir}/libgnome-window-settings.so.*
|
|
|
|
%files -n libgnome-window-settings-devel
|
|
%defattr (-, root, root)
|
|
%{_includedir}/gnome-window-settings-2.0
|
|
%{_libdir}/libgnome-window-settings.so
|
|
%{_libdir}/pkgconfig/gnome-window-settings-2.0.pc
|
|
|
|
%changelog
|