File ratpoison.spec of Package ratpoison
#
# spec file for package ratpoison
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2014 PaleFire messengerhermesK@gmail.com
#
# 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: ratpoison
Version: 1.4.9
Release: 0
Summary: A simple Window Manager with no fat library dependencies
License: GPL-2.0
Group: System/GUI/Other
Url: http://www.nongnu.org/ratpoison/
Source0: http://download.savannah.nongnu.org/releases/%{name}/%{name}-%{version}.tar.xz
Source1: %{name}.desktop
BuildRequires: pkgconfig
BuildRequires: readline-devel
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(x11-xcb)
BuildRequires: pkgconfig(xft)
BuildRequires: pkgconfig(xi)
BuildRequires: pkgconfig(xrandr)
BuildRequires: pkgconfig(xt)
BuildRequires: pkgconfig(xtst)
Requires(post): %{install_info_prereq}
Requires(postun): %{install_info_prereq}
%description
Ratpoison is a simple Window Manager with no fat library
dependencies, no fancy graphics, no window decorations,
and no rodent dependence. It is largely modelled after
GNU Screen which has done wonders in the virtual
terminal market.
%prep
%setup -q
%build
%configure
make %{?_smp_mflags}
%install
%make_install
install -m 0755 -d %{buildroot}%{_datadir}/xsessions/
install -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/xsessions/
# Exclude some unwanted contrib / doc files
rm -rf %{buildroot}%{_datadir}/doc/%{name}
rm -f %{buildroot}%{_datadir}/%{name}/sloppy.c
rm -f %{buildroot}%{_datadir}/%{name}/unrat.c
%post
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%files
%doc ChangeLog README COPYING NEWS
%{_bindir}/%{name}
%{_bindir}/rpws
%{_infodir}/%{name}.info%{ext_info}
%{_mandir}/man1/%{name}.1%{ext_man}
%{_datadir}/%{name}/
%{_datadir}/xsessions/%{name}.desktop
%{_datadir}/emacs/site-lisp/%{name}.el
%changelog