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
|
|
|
#
|
2012-02-08 11:57:04 +01:00
|
|
|
# Copyright (c) 2012 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
|
2012-03-11 18:34:28 +01:00
|
|
|
Version: 0.11.6
|
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
|
2012-02-08 11:57:04 +01:00
|
|
|
Source: http://download.gnome.org/sources/dconf/0.11/%{name}-%{version}.tar.xz
|
2010-10-12 11:16:17 +02:00
|
|
|
Source99: baselibs.conf
|
2010-12-15 12:26:28 +01:00
|
|
|
# For directory ownership
|
|
|
|
BuildRequires: dbus-1
|
2011-02-13 22:04:31 +01:00
|
|
|
BuildRequires: update-desktop-files
|
2012-02-08 11:57:04 +01:00
|
|
|
BuildRequires: vala >= 0.15.1
|
2011-01-19 16:19:46 +01:00
|
|
|
BuildRequires: pkgconfig(dbus-1)
|
2012-03-11 18:34:28 +01:00
|
|
|
BuildRequires: pkgconfig(gio-2.0) >= 2.31.18
|
2010-08-23 18:23:28 +02:00
|
|
|
BuildRequires: pkgconfig(gobject-introspection-1.0)
|
2011-01-07 23:37:35 +01:00
|
|
|
BuildRequires: pkgconfig(gtk+-3.0)
|
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
|
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.
|
|
|
|
|
|
|
|
%package -n libdconf0
|
|
|
|
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
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%description -n libdconf0
|
|
|
|
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
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%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
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
# 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
|
|
|
|
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
|
|
|
|
Requires: libdconf0 = %{version}
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2010-08-23 18:23:28 +02:00
|
|
|
%prep
|
|
|
|
%setup -q
|
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
|
2011-07-28 00:05:16 +02:00
|
|
|
%suse_update_desktop_file %{buildroot}%{_datadir}/applications/dconf-editor.desktop SystemSetup
|
2011-01-19 16:19:46 +01:00
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/dconf/{profile,db}
|
|
|
|
|
2010-08-23 18:23:28 +02:00
|
|
|
%post -n libdconf0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libdconf0 -p /sbin/ldconfig
|
|
|
|
|
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
|
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
|
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
|
|
|
|
%{_sysconfdir}/bash_completion.d/dconf-bash-completion.sh
|
2011-05-26 22:56:13 +02:00
|
|
|
# alternative databases
|
|
|
|
%{_sysconfdir}/dconf/
|
2010-08-23 18:23:28 +02:00
|
|
|
|
|
|
|
%files -n libdconf0
|
|
|
|
%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-02-13 22:04:31 +01:00
|
|
|
%{_datadir}/dconf-editor/
|
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
|
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
|