Name: lsn Version: 1.0.1 Release: 1%{?dist} Summary: List files with extended-attribute notes or write one License: AGPL-3.0-only URL: https://github.com/lungbean23/lsn # Using a real URL silences 'invalid-url' (rpmbuild will still use the local tarball) Source0: %{url}/releases/download/v%{version}/%{name}-%{version}.tar.gz BuildArch: noarch # Runtime deps Requires: bash Requires: coreutils Requires: findutils Requires: sed Requires: attr Recommends: bash-completion %description lsn prints directory entries and, when present, the user.lsn extended attribute next to each name. It can also write or delete a short note on a file or directory. The attribute name can be overridden via the LSN_KEY environment variable. %prep %setup -q %build # nothing to build %check # Syntax check and a smoke test that does not touch xattrs /usr/bin/bash -n lsn NO_COLOR=1 PATH=$PWD:$PATH ./lsn --help >/dev/null %install mkdir -p %{buildroot}%{_bindir} \ %{buildroot}%{_mandir}/man1 \ %{buildroot}%{_datadir}/bash-completion/completions install -m 0755 lsn %{buildroot}%{_bindir}/lsn install -m 0644 lsn.1 %{buildroot}%{_mandir}/man1/lsn.1 gzip -f -n %{buildroot}%{_mandir}/man1/lsn.1 install -m 0644 completions/lsn.bash %{buildroot}%{_datadir}/bash-completion/completions/lsn %files %license LICENSE %{_bindir}/lsn %{_mandir}/man1/lsn.1* %{_datadir}/bash-completion/completions/lsn %changelog * Sun Sep 14 2025 You - 1.0.0-1 - Initial package