File obconf.spec of Package obconf

# spec file for package obconf (Version 2.0.3)
# Copyright (c) 2010 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

# norootforbuild

Name:           obconf
BuildRequires:  gcc-c++ gettext libglade2-devel openbox-devel
BuildRequires:  startup-notification-devel update-desktop-files xorg-x11
License:        GPLv2+
Group:          System/GUI/Other
Requires:       openbox
AutoReqProv:    on
Version:        2.0.3
Release:        2
Summary:        Openbox Configuration Tool
Source0:        %name-%version.tar.bz2
Patch0:         %name-mimelnk.patch
Patch1:         %name-2.0.3-build-translations.patch.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

This is the official application from the Openbox developers to
configure the Openbox window manager. It is not needed, but highly
recommended when installing Openbox.

    Ben Jansens <>
    Tim Riley <>

%setup -q
%patch1 -p1

%__cp po/obconf.pot po/nb.po
%__rm po/*.gmo
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" LDFLAGS="-export-dynamic"
%__make clean

%suse_update_desktop_file %name Utility Settings DesktopSettings
%__rm -rf %buildroot//usr/share/locale/no
%if %suse_version >= 1120
%__rm -rf %buildroot/opt/kde3
%find_lang %{name}


%files -f %{name}.lang
%if %suse_version  < 1120