File openbox.spec of Package openbox

#
# spec file for package openbox (Version 3.4.11.2)
#
# 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/
#



Name:           openbox
License:        GPLv2+
Group:          System/GUI/Other
Provides:       windowmanager
AutoReqProv:    on
Version:        3.4.11.2
Release:        8
Summary:        ICCCM and EWMH Compliant Window Manager with Very Few Dependencies
Url:            http://openbox.org/
Source:         %name-%version.tar.bz2
Source1:        %name-README.SuSE
Source2:        %name.desktop
Source3:        %name-pipemenu
Source4:        menu.xml
Source5:        xcompmgr-autostart
Patch0:         %name-no_nb.patch
Patch1:         %name-3.4.7.2-return.diff
Patch2:         %name-3.4.7.2-24bit.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  freetype2-devel gcc-c++ glib2-devel libxml2-devel pango-devel
BuildRequires:  startup-notification-devel update-desktop-files
BuildRequires:  fdupes xorg-x11 xorg-x11-devel
Requires:       xdg-menu libxslt
Recommends:     obconf

%description
Openbox is a window manager for the X Window System. It currently runs
on a large list of platforms. It was originally based on Blackbox, but
is, since version 3.0, a complete reimplementation with these features,
among others:

o ICCCM and EWMH compliance o Chainable key bindings o Customizable
mouse actions o Window resistance o Multihead Xinerama support o Pipe
menus

The configuration tool "obconf" is recommended along with this package.



Authors:
--------
    Ben Jansens <ben@openbox.org>
    Mikael Magnusson <mangosoft@comhem.se>

%package gnome
License:        GPLv2+
Summary:        Openbox GNOME integration
Group:          System/GUI/Other
Requires:       %{name} = %{version}

%description gnome
This package provides openbox GNOME integration and tools



Authors:
--------
    Ben Jansens <ben@openbox.org>
    Mikael Magnusson <mangosoft@comhem.se>

%package kde
License:        GPLv2+
Summary:        Openbox KDE integration
Group:          System/GUI/Other
Requires:       %{name} = %{version}

%description kde
This package provides openbox KDE integration and tools



Authors:
--------
    Ben Jansens <ben@openbox.org>
    Mikael Magnusson <mangosoft@comhem.se>


%package devel
License:        GPLv2+
Summary:        Includes and static libraries for openbox
Group:          Development/Libraries/X11
Requires:       %{name} = %{version}
Requires:       libxml2-devel glib2-devel xorg-x11-devel pango-devel

%description devel
Development Includes and static libraries for openbox.



Authors:
--------
    Ben Jansens <ben@openbox.org>
    Mikael Magnusson <mangosoft@comhem.se>

%prep
%setup -q
cp %{S:1} ./README.SuSE
%patch0
%patch1 -p1
%patch2 -p1
mv po/no.po po/nb.po
mv po/no.gmo po/nb.gmo

%build
autoreconf -fi
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
%configure
%__make clean
%__make

%install
%makeinstall
# we dont want static libs
rm $RPM_BUILD_ROOT%_libdir/*.la
rm $RPM_BUILD_ROOT%_libdir/*.a
# we dont want the stupid docdir
rm -rf $RPM_BUILD_ROOT%_datadir/doc/%name
# we dont want invalid locales
rm -rf %buildroot/%_datadir/locale/en@boldquot
rm -rf %buildroot/%_datadir/locale/en@quot
# install kdm/gdm entry
install -m 0755 -d $RPM_BUILD_ROOT/%_datadir/xsessions/
install -m 0644 %SOURCE2 $RPM_BUILD_ROOT/%_datadir/xsessions/
install -m 0755 %SOURCE3 $RPM_BUILD_ROOT/%_bindir/%name-pipemenu
install -m 0644 %SOURCE4 $RPM_BUILD_ROOT/%_sysconfdir/xdg/openbox/menu.xml
install -m 0755 %SOURCE5 $RPM_BUILD_ROOT/%_bindir/xcompmgr-autostart
%suse_update_desktop_file $RPM_BUILD_ROOT/%_datadir/applications/%name.desktop
%suse_update_desktop_file $RPM_BUILD_ROOT/%_datadir/xsessions/%name.desktop
%suse_update_desktop_file $RPM_BUILD_ROOT/%_datadir/xsessions/%name-gnome.desktop
%suse_update_desktop_file $RPM_BUILD_ROOT/%_datadir/xsessions/%name-kde.desktop
%suse_update_desktop_file $RPM_BUILD_ROOT/%_datadir/gnome/wm-properties/%name.desktop
%find_lang %name
%fdupes -s %buildroot

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %name.lang
%defattr(-,root,root)
%doc AUTHORS CHANGELOG COPYING COMPLIANCE README README.SuSE
%doc data/xbm data/menu.xsd doc/rc-mouse-focus.xml data/rc.xsd
%dir %_sysconfdir/xdg/%name
%config(noreplace) %_sysconfdir/xdg/openbox/menu.xml
%config(noreplace) %_sysconfdir/xdg/openbox/rc.xml
%config(noreplace) %_sysconfdir/xdg/openbox/autostart.sh
%_bindir/obxprop
%_bindir/openbox
%_bindir/openbox-pipemenu
%_bindir/openbox-session
%_bindir/xcompmgr-autostart
%_libdir/%name
%_libdir/*.so.*
%_datadir/xsessions/openbox.desktop
%_mandir/man1/obxprop.1.gz
%_mandir/man1/openbox-session.1.gz
%_mandir/man1/openbox.1.gz
%_datadir/themes/*
%_datadir/pixmaps/openbox.png
%_datadir/applications/openbox.desktop

%files gnome
%defattr(-,root,root)
%_bindir/gdm-control
%_bindir/gnome-panel-control
%_bindir/openbox-gnome-session
%_datadir/xsessions/openbox-gnome.desktop
%dir %_datadir/gnome
%dir %_datadir/gnome/wm-properties
%_datadir/gnome/wm-properties/openbox.desktop
%_mandir/man1/openbox-gnome-session.1.gz

%files kde
%defattr(-,root,root)
%_bindir/openbox-kde-session
%_datadir/xsessions/openbox-kde.desktop
%_mandir/man1/openbox-kde-session.1.gz

%files devel
%defattr(-,root,root)
%_includedir/%name
%_libdir/pkgconfig/*.pc
%_libdir/*.so

%changelog
openSUSE Build Service is sponsored by