File dconf-editor.spec of Package dconf-editor

#
# spec file for package dconf-editor
#
# Copyright (c) 2015 SUSE LINUX 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/
#


Name:           dconf-editor
Version:        3.16.1
Release:        0
Summary:        Simple key-based configuration system -- Graphical Editor
License:        LGPL-2.1+
Group:          System/GUI/GNOME
Url:            http://live.gnome.org/dconf
Source:         http://download.gnome.org/sources/dconf-editor/3.16/%{name}-%{version}.tar.xz
# 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
BuildRequires:  intltool >= 0.50.0
BuildRequires:  update-desktop-files
BuildRequires:  vala
BuildRequires:  pkgconfig(dconf) >= 0.23.2
BuildRequires:  pkgconfig(glib-2.0) >= 2.39.3
BuildRequires:  pkgconfig(gmodule-2.0)
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.4
BuildRequires:  pkgconfig(libxml-2.0)
# Special case: we obsolete dconf-lang < 0.24, as at that time, dconf-editor was part of dconf.
# The gettext domain for dconf-editor remained dconf
Obsoletes:      dconf-lang < 0.24

%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.

This package provides a graphical editor for dconf database.

%lang_package

%prep
%setup -q
%patch0 -p1

%build
%configure
make V=1 %{?_smp_mflags}

%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%suse_update_desktop_file %{buildroot}%{_datadir}/applications/ca.desrt.dconf-editor.desktop SystemSetup X-GNOME-PersonalSettings
%find_lang dconf

%post
%desktop_database_post
%icon_theme_cache_post
%{glib2_gsettings_schema_post}

%postun
%desktop_database_postun
%icon_theme_cache_postun
%{glib2_gsettings_schema_postun}

%files
%defattr(-, root, root)
%doc COPYING
%{_bindir}/dconf-editor
%dir %{_datadir}/appdata
%{_datadir}/appdata/ca.desrt.dconf-editor.appdata.xml
%{_datadir}/applications/ca.desrt.dconf-editor.desktop
%{_datadir}/dbus-1/services/ca.desrt.dconf-editor.service
%{_datadir}/glib-2.0/schemas/ca.desrt.dconf-editor.gschema.xml
%{_datadir}/icons/hicolor/*/apps/dconf-editor*
%{_mandir}/man1/dconf-editor.1%{?ext_man}

%files lang -f dconf.lang
%defattr(-,root,root)

%changelog
openSUSE Build Service is sponsored by