File gconf-editor.spec of Package gconf-editor

#
# spec file for package gconf-editor (Version 2.28.0)
#
# Copyright (c) 2009 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:        2.28.0
Release:        1
License:        GPL v2 or later
Summary:        An Editor for the GCONF Database System
Url:            http://www.gnome.org
Group:          System/GUI/GNOME
Source:         ftp://ftp.gnome.org/pub/GNOME/sources/gconf-editor/2.20/%{name}-%{version}.tar.bz2
# PATCH-FEATURE-OPENSUSE gconf-editor-desktop.patch
Patch1:         %{name}-desktop.patch
BuildRequires:  dbus-1-glib-devel
BuildRequires:  fdupes
BuildRequires:  gconf2-devel
BuildRequires:  gnome-doc-utils-devel
BuildRequires:  gtk2-devel
BuildRequires:  intltool
BuildRequires:  update-desktop-files
Requires:       %{name}-lang = %{version}
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 2.x Desktop Environment.

%lang_package
%prep
%setup -q
# Apply desktop file after patch translation to prevent double
# translation of desktop file strings:
%patch1
# Do not add patches here, but before gnome-patch-translation-update.

%build
#autoreconf -f -i
%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
%suse_update_desktop_file gconf-editor
%find_lang %{name}
%find_gconf_schemas
cat %{name}.schemas_list >%{name}.lst
%fdupes %{buildroot}

%clean
rm -rf %{buildroot}

%pre -f %{name}.schemas_pre

%posttrans -f %{name}.schemas_posttrans

%preun -f %{name}.schemas_preun

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

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by