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 http://bugs.opensuse.org/
#
# 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
Url: http://openbox.org/
Source0: %name-%version.tar.bz2
Patch0: %name-mimelnk.patch
Patch1: %name-2.0.3-build-translations.patch.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
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.
Authors:
--------
Ben Jansens <ben@openbox.org>
Tim Riley <tr@slackzone.org>
%prep
%setup -q
%patch0
%patch1 -p1
%build
%__cp po/obconf.pot po/nb.po
%__rm po/*.gmo
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" LDFLAGS="-export-dynamic"
%configure
%__make clean
%__make
%install
%makeinstall
%suse_update_desktop_file %name Utility Settings DesktopSettings
%__rm -rf %buildroot//usr/share/locale/no
%if %suse_version >= 1120
%__rm -rf %buildroot/opt/kde3
%endif
%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS COPYING README
%_bindir/%name
%_datadir/%name
%_datadir/mime/packages/obconf.xml
%_datadir/applications/%name.desktop
%_datadir/pixmaps/obconf.png
%if %suse_version < 1120
/opt/kde3
%endif
%changelog