2010-08-23 18:23:28 +02:00
#
2011-01-15 01:33:02 +01:00
# spec file for package dconf
2010-08-23 18:23:28 +02:00
#
2014-04-03 22:32:52 +02:00
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
2010-08-23 18:23:28 +02:00
#
# 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/
#
Name : dconf
2014-04-03 22:32:52 +02:00
Version : 0.20.0
2012-02-08 11:57:04 +01:00
Release : 0
2010-08-23 18:23:28 +02:00
Summary : Simple key-based configuration system
2012-02-08 11:57:04 +01:00
License : LGPL-2.1+
2010-08-23 18:23:28 +02:00
Group : System/Libraries
2011-01-07 23:37:35 +01:00
Url : http://live.gnome.org/dconf
2014-04-03 22:32:52 +02:00
Source : http://download.gnome.org/sources/dconf/0.20/%{name} -%{version} .tar.xz
2010-10-12 11:16:17 +02:00
Source99 : baselibs.conf
2014-06-08 13:57:21 +02:00
# PATCH-FIX-UPSTREAM dconf-use-g_settings_get_default_value.patch bnc#873225 bgo#668234 mgorse@suse.com -- Have editor display correct default value when an administrator has a custom database.
Patch0 : dconf-use-g_settings_get_default_value.patch
2010-12-15 12:26:28 +01:00
# For directory ownership
BuildRequires : dbus-1
2012-09-07 17:25:46 +02:00
BuildRequires : docbook-xsl-stylesheets
BuildRequires : intltool >= 0.50.0
2011-02-13 22:04:31 +01:00
BuildRequires : update-desktop-files
2014-04-03 22:32:52 +02:00
BuildRequires : vala >= 0.18.0
2012-09-07 17:25:46 +02:00
BuildRequires : xsltproc
2011-01-19 16:19:46 +01:00
BuildRequires : pkgconfig(dbus-1)
2013-03-14 00:01:25 +01:00
BuildRequires : pkgconfig(gio-unix-2.0)
2014-04-03 22:32:52 +02:00
BuildRequires : pkgconfig(glib-2.0) >= 2.39.1
2010-08-23 18:23:28 +02:00
BuildRequires : pkgconfig(gobject-introspection-1.0)
2013-07-14 23:33:31 +02:00
BuildRequires : pkgconfig(gtk+-3.0) >= 3.4
2010-08-23 18:23:28 +02:00
BuildRequires : pkgconfig(libxml-2.0)
2011-01-14 10:48:34 +01:00
%if 0%{?BUILD_FROM_VCS}
BuildRequires : gtk-doc
%endif
2010-12-15 12:26:28 +01:00
# dconf provides a dbus service, but has no dependency on dbus in any way
# (because it uses gdbus), so we need an explicit Requires
Requires : dbus-1
2012-09-07 17:25:46 +02:00
Recommends: %{name} -lang
2010-08-23 18:23:28 +02:00
%description
dconf is a low-level configuration system. Its main purpose is to
provide a backend to GSettings on platforms that don't already
have configuration storage systems.
2012-09-07 17:25:46 +02:00
%package -n libdconf1
2010-08-23 18:23:28 +02:00
Summary : Simple key-based configuration system -- Library
Group : System/Libraries
# The library doesn't really work if the dconf service is not reachable, so we
# need a Requires
2012-08-03 09:05:12 +02:00
Requires : %{name} >= %{version}
2010-08-23 18:23:28 +02:00
2012-09-07 17:25:46 +02:00
%description -n libdconf1
2010-08-23 18:23:28 +02:00
dconf is a low-level configuration system. Its main purpose is to
provide a backend to GSettings on platforms that don't already
have configuration storage systems.
2011-01-19 16:19:46 +01:00
%package -n libdconf-dbus-1-0
Summary : Simple key-based configuration system -- Library for D-Bus
Group : System/Libraries
# The library doesn't really work if the dconf service is not reachable, so we
# need a Requires
2012-08-03 09:05:12 +02:00
Requires : %{name} >= %{version}
2011-01-19 16:19:46 +01:00
%description -n libdconf-dbus-1-0
dconf is a low-level configuration system. Its main purpose is to
provide a backend to GSettings on platforms that don't already
have configuration storage systems.
2010-08-23 18:23:28 +02:00
%package -n gsettings-backend-dconf
Summary : Simple key-based configuration system -- GSettings Backend
Group : System/Libraries
2012-08-03 09:05:12 +02:00
Requires : %{name} >= %{version}
2010-08-23 18:23:28 +02:00
# We really want this to be used as the default GSettings backend
Supplements: libgio-2_0-0
%glib2_gio_module_requires
%description -n gsettings-backend-dconf
dconf is a low-level configuration system. Its main purpose is to
provide a backend to GSettings on platforms that don't already
have configuration storage systems.
This package provides a GSettings backend that uses dconf to store
the settings.
%package editor
Summary : Simple key-based configuration system -- Graphical Editor
Group : System/GUI/GNOME
2012-08-03 09:05:12 +02:00
Requires : %{name} >= %{version}
2011-05-26 22:54:36 +02:00
%glib2_gsettings_schema_requires
2010-08-23 18:23:28 +02:00
%description editor
dconf is a low-level configuration system. Its main purpose is to
provide a backend to GSettings on platforms that don't already
have configuration storage systems.
This package provides a graphical editor for dconf database.
%package devel
Summary : Simple key-based configuration system -- Development Files
Group : Development/Libraries/GNOME
2012-09-07 17:25:46 +02:00
Requires : libdconf1 = %{version}
2010-08-23 18:23:28 +02:00
%description devel
dconf is a low-level configuration system. Its main purpose is to
provide a backend to GSettings on platforms that don't already
have configuration storage systems.
2011-01-19 16:19:46 +01:00
%package -n libdconf-dbus-devel
2011-02-13 22:04:31 +01:00
Summary : Simple key-based configuration system -- Development Files
2011-01-19 16:19:46 +01:00
Group : Development/Libraries/GNOME
Requires : libdconf-dbus-1-0 = %{version}
%description -n libdconf-dbus-devel
dconf is a low-level configuration system. Its main purpose is to
provide a backend to GSettings on platforms that don't already
have configuration storage systems.
2012-09-07 17:25:46 +02:00
%lang_package
2010-08-23 18:23:28 +02:00
%prep
%setup -q
2014-06-08 13:57:21 +02:00
%patch0 -p1
2011-01-14 10:48:34 +01:00
%if 0%{?BUILD_FROM_VCS}
2011-01-19 16:19:46 +01:00
[ -x ./autogen.sh ] && NOCONFIGURE=1 ./autogen.sh
2011-01-14 10:48:34 +01:00
%endif
2010-08-23 18:23:28 +02:00
%build
%configure \
2011-01-14 10:48:34 +01:00
%if 0%{?BUILD_FROM_VCS}
--enable-gtk-doc
%endif
2011-01-19 16:19:46 +01:00
%__make V=1 %{?_smp_mflags}
2010-08-23 18:23:28 +02:00
%install
%makeinstall
find %{buildroot} %{_libdir} -name '*.la' -type f -delete -print
2014-06-13 21:25:01 +02:00
%suse_update_desktop_file %{buildroot} %{_datadir} /applications/dconf-editor.desktop SystemSetup X-GNOME-SystemSettings
2011-01-19 16:19:46 +01:00
mkdir -p %{buildroot} %{_sysconfdir} /dconf/{profile,db}
2012-09-07 17:25:46 +02:00
%find_lang %{name}
2011-01-19 16:19:46 +01:00
2012-09-07 17:25:46 +02:00
%post -n libdconf1 -p /sbin/ldconfig
2010-08-23 18:23:28 +02:00
2012-09-07 17:25:46 +02:00
%postun -n libdconf1 -p /sbin/ldconfig
2010-08-23 18:23:28 +02:00
2011-01-19 16:19:46 +01:00
%post -n libdconf-dbus-1-0 -p /sbin/ldconfig
%postun -n libdconf-dbus-1-0 -p /sbin/ldconfig
2010-08-23 18:23:28 +02:00
%post -n gsettings-backend-dconf
%glib2_gio_module_post
%postun -n gsettings-backend-dconf
%glib2_gio_module_postun
2011-02-13 22:04:31 +01:00
%post editor
%desktop_database_post
2012-02-08 11:57:04 +01:00
%icon_theme_cache_post
2013-03-14 00:01:25 +01:00
%icon_theme_cache_post HighContrast
2011-05-26 22:54:36 +02:00
%glib2_gsettings_schema_post
2011-02-13 22:04:31 +01:00
%postun editor
%desktop_database_postun
2012-02-08 11:57:04 +01:00
%icon_theme_cache_postun
2013-03-14 00:01:25 +01:00
%icon_theme_cache_postun HighContrast
2011-05-26 22:54:36 +02:00
%glib2_gsettings_schema_postun
2011-02-13 22:04:31 +01:00
2010-08-23 18:23:28 +02:00
%files
%defattr (-, root, root)
%doc COPYING NEWS
# small utility to read values in the database
%{_bindir} /dconf
# service is needed for write
%{_libexecdir} /dconf-service
%{_datadir} /dbus-1/services/ca.desrt.dconf.service
2011-05-26 22:54:36 +02:00
# Bash completion helper
2012-09-07 17:25:46 +02:00
%{_datadir} /bash-completion/completions/dconf
%{_mandir} /man[17]/dconf.[17]%{ext_man}
%{_mandir} /man1/dconf-service.1%{?ext_man}
2011-05-26 22:56:13 +02:00
# alternative databases
%{_sysconfdir} /dconf/
2014-04-03 22:32:52 +02:00
%dir %{_datadir} /appdata
%{_datadir} /appdata/dconf-editor.appdata.xml
2010-08-23 18:23:28 +02:00
2012-09-07 17:25:46 +02:00
%files lang -f %{name}.lang
%files -n libdconf1
2010-08-23 18:23:28 +02:00
%defattr (-, root, root)
%{_libdir} /libdconf.so.*
2011-01-19 16:19:46 +01:00
%files -n libdconf-dbus-1-0
%defattr (-, root, root)
%{_libdir} /libdconf-dbus-1.so.*
2010-08-23 18:23:28 +02:00
%files -n gsettings-backend-dconf
%defattr (-, root, root)
%{_libdir} /gio/modules/libdconfsettings.so
%files editor
%defattr (-, root, root)
%{_bindir} /dconf-editor
2011-01-19 16:19:46 +01:00
%{_datadir} /applications/dconf-editor.desktop
2011-05-26 22:54:36 +02:00
%{_datadir} /glib-2.0/schemas/ca.desrt.dconf-editor.gschema.xml
2012-02-08 11:57:04 +01:00
%{_datadir} /icons/hicolor/*/apps/dconf-editor.png
2013-03-14 00:01:25 +01:00
%{_datadir} /icons/HighContrast/
2012-09-07 17:25:46 +02:00
%{_mandir} /man1/dconf-editor.1%{?ext_man}
2010-08-23 18:23:28 +02:00
%files devel
%defattr (-, root, root)
%doc %{_datadir} /gtk-doc/html/dconf/
%{_includedir} /dconf/
%{_libdir} /libdconf.so
%{_libdir} /pkgconfig/dconf.pc
%dir %{_datadir} /vala
%dir %{_datadir} /vala/vapi
%{_datadir} /vala/vapi/dconf.*
2010-09-11 12:06:36 +02:00
2011-01-19 16:19:46 +01:00
%files -n libdconf-dbus-devel
%defattr (-, root, root)
%{_includedir} /dconf-dbus-1/
%{_libdir} /libdconf-dbus-1.so
%{_libdir} /pkgconfig/dconf-dbus-1.pc
2010-08-23 18:23:28 +02:00
%changelog