File dconf-editor.spec of Package dconf-editor

#
# spec file for package dconf-editor
#
# Copyright (c) 2017 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.26.2
Release:        0
Summary:        Simple key-based configuration system -- Graphical Editor
License:        GPL-3.0+
Group:          System/GUI/GNOME
Url:            http://live.gnome.org/dconf
Source0:        http://download.gnome.org/sources/dconf-editor/3.26/%{name}-%{version}.tar.xz
# PATCH-FIX-UPSTREAM dconf-editor-nb-translations.patch zaitor@opensuse.org -- Update Norwegian Bokmål translations
Patch0:         dconf-editor-nb-translations.patch
# PATCH-FIX-UPSTREAM dconf-editor-fix-localized-strings-problem.patch zaitor@opensuse.org -- Fix problem on localized strings
Patch1:         dconf-editor-fix-localized-strings-problem.patch
# PATCH-FIX-UPSTREAM dconf-editor-fix-rows-issue.patch bgo#790025 zaitor@opensuse.org -- Fix rows option
Patch2:         dconf-editor-fix-rows-issue.patch

BuildRequires:  appstream-glib-devel
BuildRequires:  update-desktop-files
BuildRequires:  vala >= 0.33.1
BuildRequires:  pkgconfig(dconf) >= 0.25.1
BuildRequires:  pkgconfig(glib-2.0) >= 2.46.0
BuildRequires:  pkgconfig(gmodule-2.0)
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.22.0
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
Recommends:     %{name}-lang

%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
%autosetup -p1

%build
%configure
make %{?_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

%files
%defattr(-, root, root)
%doc COPYING
%{_bindir}/dconf-editor
%dir %{_datadir}/metainfo
%{_datadir}/metainfo/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