Name: sl-xkb-mac-layouts Version: 1.0.0 Release: 100.2.3%{?dist} Summary: Custom Mac keyboard layouts and rules by Sl License: MIT URL: https://slsrepo.com BuildArch: noarch Source0: sl-xkb-mac-layouts.zip BuildRequires: unzip Requires: xkeyboard-config Requires: libxkbcommon %description Custom Mac keyboard layouts and rules by Sl. %prep rm -rf sl-xkb-mac-layouts mkdir -p sl-xkb-mac-layouts unzip -q %{SOURCE0} -d sl-xkb-mac-layouts %build # Data-only package. %install srcdir="$(find sl-xkb-mac-layouts -mindepth 1 -maxdepth 1 -type d ! -name "__MACOSX" | head -n 1)" if [ -z "$srcdir" ]; then srcdir="sl-xkb-mac-layouts" fi cd "$srcdir" install -d %{buildroot}%{_sysconfdir}/X11/xkb if [ -d xkb ]; then cp -a xkb/. %{buildroot}%{_sysconfdir}/X11/xkb/ find %{buildroot}%{_sysconfdir}/X11/xkb -type d -exec chmod 755 {} \; find %{buildroot}%{_sysconfdir}/X11/xkb -type f -exec chmod 644 {} \; else echo "Error: 'xkb' directory not found in the source archive." exit 1 fi %files %config(noreplace) %{_sysconfdir}/X11/xkb/* %changelog * Sat Jun 20 2026 Sl (Shahaf Levi) - 1.0.0-3 - Initial COPR package for Slash