Name: nano-syntax-highlighting Version: 0 Release: e7380a8.1.g%{?dist} Summary: Improved nano syntax highlighting files License: GPL-3.0-or-later URL: https://github.com/galenguyer/nano-syntax-highlighting %global commit e7380a85bcc646e171479372768af11d6f8749e7 %global rev %(echo %{commit} | cut -c1-7) Source0: https://github.com/galenguyer/nano-syntax-highlighting/archive/%{commit}.tar.gz#/%{name}-%{rev}.tar.gz BuildArch: noarch Requires: nano %description A collection of improved syntax highlighting definitions for GNU nano. %prep %autosetup -n %{name}-%{commit} %build # Generate nanorc.sample find . -name '*.nanorc' | sed "s@^@include /usr/share/%{name}/@" > nanorc.sample %install mkdir -p %{buildroot}/usr/share/%{name} find . -name '*.nanorc' -exec install -D -m644 {} %{buildroot}/usr/share/%{name}/ \; install -D -m644 nanorc.sample %{buildroot}/usr/share/%{name}/nanorc.sample %files %license license %doc readme.md /usr/share/%{name} %changelog * Fri Apr 18 2025 16:50 Little Owl - synced with upstream