## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 6; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: dwl Version: 0.7 Release: %autorelease Summary: dwm for Wayland %global _dwlsourcedir %{_usrsrc}/dwl-user-%{version}-%{release} Group: User Interface/Desktops License: GPL-3.0 URL: https://codeberg.org/dwl/dwl Source0: https://codeberg.org/%{name}/%{name}/archive/v%{version}.tar.gz # dwl-start script and its manpage Source1: %{name}-start Source2: %{name}-start.1 Patch0: %{name}-bar.patch Patch1: %{name}-autostart.patch BuildRequires: pkgconf BuildRequires: make BuildRequires: gcc BuildRequires: libinput-devel BuildRequires: wayland-devel %if 0%{?fedora} > 41 || 0%{?rhel} > 10 BuildRequires: wlroots0.18-devel %else BuildRequires: wlroots-devel %endif BuildRequires: libxkbcommon-devel BuildRequires: wayland-protocols-devel BuildRequires: libxcb-devel BuildRequires: xcb-util-wm BuildRequires: fcft-devel BuildRequires: xorg-x11-server-Xwayland-devel Requires: polkit %description dwl is a compact, hackable compositor for Wayland based on wlroots. It is intended to fill the same space in the Wayland world that dwm does in X11, primarily in terms of functionality, and secondarily in terms of philosophy. Like dwm, dwl is: - Easy to understand, hack on, and extend with patches - One C source file (or a very small number) configurable via config.h - Tied to as few external dependencies as possible %package user Summary: dwm for Wayland sources and tools for user configuration Group: User Interface/Desktops License: GPL-3.0 Requires: %{name}%{?_isa} = %{version}-%{release} Requires: make Requires: gcc Requires: libinput-devel Requires: wayland-devel %if 0%{?fedora} > 41 || 0%{?rhel} > 10 Requires: wlroots0.18-devel %else Requires: wlroots-devel %endif Requires: libxkbcommon-devel Requires: wayland-protocols-devel Requires: libxcb-devel Requires: xcb-util-wm Requires: fcft-devel Requires: xorg-x11-server-Xwayland-devel Requires: patch Requires: polkit %description user dwl sources and dwl-start script for individual user configuration. dwl-start reads user's header file and creates custom dwm build for user to use on the fly. %prep %autosetup -p1 -n %{name} %build # Uncomment to enable XWayland support sed -i 's/#XWAYLAND/XWAYLAND/g' config.mk sed -i 's/#XLIBS/XLIBS/g' config.mk # Fix wayland-scanner supports enum-header from version 1.22 %if !( 0%{?fedora} > 37 || 0%{?rhel} > 9 ) sed -i 's/enum-header/server-header/g' Makefile %endif %make_build CFLAGS="%{optflags}" LDFLAGS="%{build_ldflags}" %install %make_install PREFIX="%{_prefix}" DESTDIR="%{buildroot}" install -m 0755 %{SOURCE1} %{buildroot}%{_bindir}/%{name}-start sed -i "s/version=VERSION/version=%{version}/" %{buildroot}%{_bindir}/%{name}-start sed -i "s/release=RELEASE/release=%{release}/" %{buildroot}%{_bindir}/%{name}-start install -m 0644 %{SOURCE2} %{buildroot}%{_mandir}/man1/%{name}-start.1 mkdir -p %{buildroot}%{_dwlsourcedir} install -m644 -p -t %{buildroot}%{_dwlsourcedir} \ config.def.h \ config.mk \ Makefile \ dwl.1 \ dwl.c \ client.h \ util.c \ util.h \ drwl.h \ wlr-layer-shell-unstable-v1-protocol.h \ wlr-output-power-management-unstable-v1-protocol.h \ cursor-shape-v1-protocol.h \ xdg-shell-protocol.h \ pointer-constraints-unstable-v1-protocol.h install -m 0644 dwl.desktop %{buildroot}%{_datadir}/wayland-sessions/dwl-user.desktop sed -i 's/Name=dwl/Name=dwl-user/g' %{buildroot}%{_datadir}/wayland-sessions/dwl-user.desktop sed -i 's/Exec=dwl/Exec=dwl-start/g' %{buildroot}%{_datadir}/wayland-sessions/dwl-user.desktop %files %license LICENSE LICENSE.dwm LICENSE.sway LICENSE.tinywl %doc README.md CHANGELOG.md %{_bindir}/%{name} %{_mandir}/man1/%{name}.1* %{_datadir}/wayland-sessions/dwl.desktop %files user %{_bindir}/%{name}-start %{_mandir}/man1/%{name}-start.1* %{_datadir}/wayland-sessions/dwl-user.desktop %{_dwlsourcedir} %changelog ## START: Generated by rpmautospec * Fri Oct 31 2025 Luca Magrone - 0.7-6 - BR/R wlroots0.18 from Fedora 42 and RHEL 11 onwards * Fri Oct 31 2025 Luca Magrone - 0.7-5 - Compile with XWayland support * Thu Oct 30 2025 Luca Magrone - 0.7-3 - dwm-user: run with slstatus if available * Thu Oct 30 2025 Luca Magrone - 0.7-2 - Add feature patches * Thu Oct 30 2025 Luca Magrone - 0.7-1 - Initial Package ## END: Generated by rpmautospec