File gconf-editor.spec of Package gconf-editor

#
# spec file for package gconf-editor
#
# Copyright (c) 2012 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/
#


Name:           gconf-editor
Version:        3.0.1
Release:        0
Summary:        An Editor for the GConf Database System
License:        GPL-2.0+
Group:          System/GUI/GNOME
Url:            http://www.gnome.org
Source:         http://download.gnome.org/sources/gconf-editor/3.0/%{name}-%{version}.tar.bz2
# PATCH-FEATURE-OPENSUSE gconf-editor-desktop.patch
Patch1:         %{name}-desktop.patch
BuildRequires:  fdupes
BuildRequires:  gconf2-devel
BuildRequires:  gnome-doc-utils-devel
BuildRequires:  gnome-patch-translation
BuildRequires:  intltool
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(gtk+-3.0)
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%gconf_schemas_prereq

%description
Gconf-editor allows you to view and edit the values that are stored in
the gconf database. This database is used for application settings in
the GNOME Desktop Environment.

%lang_package
%prep
%setup -q
translation-update-upstream
gnome-patch-translation-prepare
%patch1
gnome-patch-translation-update

%build
%configure\
        --disable-scrollkeeper\
        --with-gconf-defaults-source=xml::%{_sysconfdir}/gconf/gconf.xml.defaults \
        --with-gconf-mandatory-source=xml::%{_sysconfdir}/gconf/gconf.xml.mandatory
make %{?jobs:-j%jobs}

%install
%makeinstall
%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
%endif
%suse_update_desktop_file gconf-editor SystemSetup
%find_lang %{name} %{?no_lang_C}
%find_gconf_schemas
%fdupes %{buildroot}

%clean
rm -rf %{buildroot}

%pre -f %{name}.schemas_pre

%post
%desktop_database_post
%icon_theme_cache_post

%posttrans -f %{name}.schemas_posttrans

%preun -f %{name}.schemas_preun

%postun
%desktop_database_postun
%icon_theme_cache_postun

%files -f %{name}.schemas_list
%defattr (-, root, root)
%doc AUTHORS ChangeLog NEWS README
%dir %{_datadir}/gnome/
%dir %{_datadir}/gnome/help/
%dir %{_datadir}/gnome/help/%{name}/
%doc %{_datadir}/gnome/help/%{name}/C/
%dir %{_datadir}/omf/
%dir %{_datadir}/omf/%{name}/
%doc %{_datadir}/omf/%{name}/%{name}-C.omf
%{_bindir}/*
%{_datadir}/applications/gconf-editor.desktop
%{_datadir}/icons/hicolor/*/apps/gconf-editor.png
%{_datadir}/gconf-editor/
%doc %{_mandir}/man?/*.*

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by