File ctwm.spec of Package ctwm
#
# spec file for package ctwm
#
# Copyright (c) 2025 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: ctwm
Version: 4.1.0
Release: 0
Summary: Claude's Tab window manager
License: MIT AND NonFree
Group: System/GUI/Other
URL: https://ctwm.org/
Source: https://ctwm.org/dist/%{name}-%{version}.tar.xz
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: gcc
BuildRequires: libjpeg-devel
BuildRequires: m4
BuildRequires: pkgconfig(xmu)
BuildRequires: pkgconfig(xpm)
BuildRequires: pkgconfig(xrandr)
# Default configuration includes m4 support.
Requires: m4
%description
ctwm is Claude Lecommandeur's extension to twm; in addition to the
features of twm, it supports multiple virtual screens, the pixmap file
format, pinnable ("sticky") menus, and other enhancements.
%prep
%setup -q
sed -i -E \
-e 's|(PIXMAPDIR) .+\)|\1 %{_datadir}/pixmaps/%{name})|' \
cmake_files/install_paths.cmake
%build
%cmake \
-DDOCDIR=%{_docdir}/%{name}
%install
%cmake_install
%fdupes %{buildroot}%{_datadir}
%files
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1%{?ext_man}
%dir %{_datadir}/pixmaps/%{name}
%dir %{_datadir}/examples
%dir %{_datadir}/examples/ctwm
%dir %{_docdir}/%{name}
%{_datadir}/pixmaps/%{name}/*.xpm
%{_docdir}/%{name}/CHANGES.md
%{_docdir}/%{name}/README.md
%{_docdir}/%{name}/%{name}.1.html
%{_datadir}/examples/%{name}/system.ctwmrc
%changelog