%global commit 8aa160df135ee1510e0239f26565f1bd9f3c1a05 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global build_timestamp %(date +"%Y%m%d") %global upstreamname noctalia-shell Name: noctalia-shell-v5 Version: 5.0.0 Release: 0.5.%{build_timestamp}git%{shortcommit}%{?dist} Summary: A lightweight Wayland shell and bar built directly on Wayland + OpenGL ES, with no Qt or GTK dependency. License: MIT URL: https://github.com/noctalia-dev/%{upstreamname} Source0: %{url}/archive/%{commit}/%{upstreamname}-%{commit}.tar.gz BuildRequires: meson BuildRequires: gcc-c++ BuildRequires: pipewire-devel BuildRequires: sdbus-cpp-devel BuildRequires: pkgconfig(cairo) BuildRequires: pkgconfig(egl) BuildRequires: pkgconfig(freetype2) BuildRequires: pkgconfig(fontconfig) BuildRequires: pkgconfig(glesv2) BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(libcurl) BuildRequires: pkgconfig(libwebp) BuildRequires: pkgconfig(pam) BuildRequires: pkgconfig(pango) BuildRequires: pkgconfig(polkit-gobject-1) BuildRequires: pkgconfig(wayland-client) BuildRequires: pkgconfig(wayland-protocols) BuildRequires: pkgconfig(xkbcommon) Provides: desktop-notification-daemon Provides: PolicyKit-authentication-agent Requires: hicolor-icon-theme Requires: dejavu-sans-fonts Requires: libwebp Recommends: cliphist Recommends: ddcutil Recommends: gpu-screen-recorder Recommends: power-profiles-daemon Recommends: wlsunset %description %{summary} %prep %autosetup -n %{upstreamname}-%{commit} %build %meson %meson_build %install %meson_install install -d %{buildroot}%{_licensedir}/%{name}/third_party find third_party -type f \( -name "LICENSE*" -o -name "COPYING*" -o -name "NOTICE*" \) | while read -r file; do # Create the destination subdirectory dest_dir="%{buildroot}%{_licensedir}/%{name}/$(dirname "$file")" install -d "$dest_dir" # Copy the file to its specific subfolder install -p -m 0644 "$file" "$dest_dir/" done %files %doc README.md %license LICENSE %{_licensedir}/%{name}/third_party/ %{_bindir}/noctalia %{_datadir}/noctalia/ %changelog %autochangelog