## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; 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 # libbase is a utility library from the same upstream that is only used by this # project and is statically linked into the build %global libbase_commit 69a87c3c476c73683c9b12e3ac099ac464bd562e %global libbase_url https://github.com/phkaeser/libbase %bcond docs 1 # wlmclock fails to link against libbase when using gcc %global toolchain clang Name: wlmaker Version: 0.4.1 Release: %autorelease Summary: Wayland compositor inspired by Window Maker License: Apache-2.0 URL: https://github.com/phkaeser/wlmaker Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz Source1: %{libbase_url}/archive/%{libbase_commit}/libbase-%{libbase_commit}.tar.gz # i686: https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval ExcludeArch: %{ix86} BuildRequires: cmake BuildRequires: bison BuildRequires: clang BuildRequires: desktop-file-utils BuildRequires: flex BuildRequires: sed %if %{with docs} BuildRequires: doxygen BuildRequires: plantuml %endif # For libbase BuildRequires: ncurses-devel BuildRequires: pkgconfig(cairo) >= 1.16.0 # For wlmaker BuildRequires: pkgconfig(wayland-client) >= 1.22.0 BuildRequires: pkgconfig(wayland-protocols) >= 1.31 BuildRequires: pkgconfig(wayland-server) >= 1.22.0 BuildRequires: pkgconfig(wlroots) >= 0.17.4 BuildRequires: pkgconfig(xcb) >= 1.15 BuildRequires: pkgconfig(xkbcommon) >= 1.5.0 BuildRequires: pkgconfig(xwayland) >= 22.1.9 # These are hardcoded in the stock config Recommends: chromium Recommends: firefox Recommends: foot %if %{with docs} Suggests: %{name}-doc = %{version}-%{release} %endif %description Wayland Maker is a Wayland compositor inspired by Window Maker. Key features: - Compositor for windows in stacking mode. - Supports multiple workspaces. - Appearance inspired by Window Maker, following the look and feel of NeXTSTEP. - Easy to use, lightweight, low gimmicks and fast. - Dock and clip, to be extended for dockable apps. %package doc Summary: Developer documentation for %{name} BuildArch: noarch %description doc This package provides additional developer documentation for %{name}. %prep %autosetup -p1 -b 1 # Drop bundled dependencies rm -r dependencies # Ensure libbase can be found; we move instead of symlinking because the build # uses relative paths for the includes and that confuses things rm -r submodules/libbase mv ../libbase-%{libbase_commit}/ submodules/libbase # Do not abort on warnings sed -i 's/-Werror//' CMakeLists.txt submodules/libbase/CMakeLists.txt # Use chromium instead of google-chrome sed -i 's/google-chrome/chromium-browser/' etc/wlmaker-state.plist %build %cmake -Dconfig_OPTIM=ON %cmake_build %if %{with docs} %cmake_build --target doc %endif %install %cmake_install # Drop useless example rm %{buildroot}%{_bindir}/example_toplevel # Relocate desktop files mkdir %{buildroot}%{_datadir}/applications/ mv %{buildroot}%{_datadir}/{wlmaker,wlmclock}.desktop %{buildroot}%{_datadir}/applications/ %check %ctest desktop-file-validate %{buildroot}/%{_datadir}/applications/{wlmaker,wlmclock}.desktop %files %license LICENSE %doc README.md CODE_OF_CONDUCT.md CONTRIBUTING.md doc/ROADMAP.md %{_bindir}/wlmaker %{_bindir}/wlmclock %{_bindir}/wrap-wlmaker.sh %{_datadir}/applications/wlmaker.desktop %{_datadir}/applications/wlmclock.desktop %{_datadir}/icons/%{name}/ %if %{with docs} %files doc %license LICENSE %doc %{_vpath_builddir}/doc/html/ %endif %changelog ## START: Generated by rpmautospec * Sun Jan 19 2025 Fedora Release Engineering - 0.4.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Sun Jan 12 2025 Davide Cavalca - 0.4.1-1 - Update to 0.4.1; Fixes: RHBZ#2295759, RHBZ#2301366 * Sat Jul 20 2024 Fedora Release Engineering - 0.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sat Apr 20 2024 Davide Cavalca - 0.2-1 - Initial import; Fixes: RHBZ#2276172 ## END: Generated by rpmautospec