File fluxbox.spec of Package fluxbox

#
# spec file for package fluxbox
#
# Copyright (c) 2015 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:           fluxbox
Version:        1.3.7
Release:        0
License:        MIT
Summary:        A X11 windowmanager build for speed and flexibility
Url:            http://www.fluxbox.org
Group:          System/GUI/Other
Source:         http://sourceforge.net/projects/%{name}/files/%{name}/%{version}/%{name}-%{version}.tar.xz
Source1:        fluxboxmenu
Source2:        fluxbox.desktop
Source3:        SUSE.tar.bz2
# https://github.com/dmach/fluxbox-theme-breeze
Source4:        fluxbox-theme-breeze-20150121.3d5780b7.tar.xz
Patch1:         remove_build_timestamp.patch
BuildRequires:  automake
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(fribidi)
BuildRequires:  pkgconfig(imlib2)
BuildRequires:  pkgconfig(xft)
BuildRequires:  pkgconfig(xinerama)
BuildRequires:  pkgconfig(xpm)
BuildRequires:  pkgconfig(xrandr)
BuildRequires:  fdupes
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Fluxbox is a windowmanager for X that was based on the Blackbox 0.61.1 code.
It is very light on resources and easy to handle but yet full of features to
make an easy, and extremely fast, desktop experience. It is built using C++ and
licensed under the MIT-License.

%package styles-upstream
Summary:        Upstream bundle of styles for fluxbox
Group:          System/GUI/Other
Supplements:    packageand(%{name}:styles-upstream)
Conflicts:      otherproviders(%{name}-styles)
Provides:       %{name}-styles = %{version}
Requires:       %{name} = %{version}-%{release}
BuildArch:      noarch

%description styles-upstream
This package provides the upstream bundle of styles.

%prep
%setup -q -a 3 -a 4
%patch1

%build
autoreconf -fi
%configure --with-style=%{_datadir}/%{name}/styles/breeze
make %{?_smp_mflags}

%install
make install DESTDIR=%{buildroot} %{?_smp_mflags}
# menu
install -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/fluxbox/menu
# Install desktop file for xdm/gdm
install -D -m 0644 %{SOURCE2} %{buildroot}%{_datadir}/xsessions/fluxbox.desktop
# theme
mv SUSE %{buildroot}%{_datadir}/fluxbox/styles/
mv fluxbox-theme-breeze-20150121.3d5780b7/breeze %{buildroot}%{_datadir}/fluxbox/styles/
%fdupes %{buildroot}%{_datadir}/%{name}

%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING NEWS README TODO
%{_bindir}/*
%{_datadir}/%{name}/apps
%{_datadir}/%{name}/init
%{_datadir}/%{name}/keys
%{_datadir}/%{name}/menu
%{_datadir}/%{name}/overlay
%{_datadir}/%{name}/windowmenu
%{_datadir}/%{name}/nls/
%{_datadir}/%{name}/styles/breeze
%{_datadir}/xsessions/%{name}.desktop
%{_mandir}/man?/*

%files styles-upstream
%defattr(-,root,root)
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/styles/
%exclude %{_datadir}/%{name}/styles/breeze
openSUSE Build Service is sponsored by