File euclid-wm.spec of Package euclid-wm

# vim: set sw=4 ts=4 et nu:
#
# spec file for package euclid-wm
#
# Copyright (c) 2018 SUSE LINUX 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:           euclid-wm
Version:        0.4.3
Release:        0
Summary:        Minimalist Tiling Window Manager for X11
License:        BSD-3-Clause
Group:          System/GUI/Other
URL:            http://euclid-wm.sourceforge.net
Source:         http://euclid-wm.sourceforge.net/releases/%{name}-%{version}.tar.gz
Source99:       rpmlintrc
Patch1:         %{name}-fix_makefile.patch
Patch2:         remove-hacks.patch
BuildRequires:  gcc
BuildRequires:  glibc-devel
BuildRequires:  make
BuildRequires:  pkgconfig
BuildRequires:  xorg-x11-devel

%description
euclid-wm is a minimalist tiling window manager for X11. It is designed to
allow quick and easy management of numerous windows entirely from
easy-to-learn, Vim-like key-bindings. It seeks to do two things in particular:
balance the ease of use common among automatic-layout tiling window managers
with the flexibility of manual layout window managers, and create a useful way
to handle minimized applications.

%prep
%setup -q
%patch1 -p1
%patch2 -p1

%build
make %{?_smp_mflags} \
    VER="%{version}" \
    CFLAGS="%{optflags}"

%install
%make_install

# those files are useless, as the package is built to use ~/.config/euclid-wm
# instead of the global location, as it currently only supports *one* of those
# variants:
rm "%{buildroot}%{_datadir}/%{name}"/{%{name}.conf,euclidrc,VERSION}
# proceed like this instead of rm -rf to avoid deleting other, useful files
# if new versions of euclid-wm install additional stuff there in the future:
/bin/rmdir "%{buildroot}%{_datadir}/%{name}"

%files
%doc %{name}.conf.sample
%doc euclidrc
%{_bindir}/%{name}
%{_bindir}/start-euclid
%config %{_datadir}/xsessions/euclid.desktop
%{_mandir}/man1/%{name}.1%{ext_man}

%changelog
openSUSE Build Service is sponsored by