File genesis-cli.spec of Package genesis-cli
Name: genesis-cli
Version: 0.1.1
Release: 1
Summary: An extensible command-line tool for building documentation-focused static sites from Markdown.
License: Apache-2.0
URL: [https://github.com/sakethpathike/genesis](https://github.com/sakethpathike/genesis)
Source0: genesis-cli-v%{version}.tar.gz
Source1: offline-bundle.tar.gz
%if 0%{?suse_version} || 0%{?fedora}
BuildRequires: java-17-openjdk-devel
BuildRequires: tar
Requires: java-17-openjdk-headless
%endif
%description
CLI tool built on `genesis-core` and `kapsule` that generates static documentation sites from Markdown, featuring configurable rendering with Kotlin scripts and a live server for real-time previews.
%prep
%setup -q -n genesis-cli-v%{version}
%build
tar -xzf %{SOURCE1}
export GRADLE_USER_HOME=$PWD/.gradle
./gradle-8.12/bin/gradle clean build installDist --no-daemon --offline
%install
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_datadir}/%{name}
cp -r genesis-cli/build/install/genesis-cli/* %{buildroot}%{_datadir}/%{name}/
cat > %{buildroot}%{_bindir}/%{name} << 'EOF'
exec %{_datadir}/%{name}/bin/genesis-cli "$@"
EOF
chmod +x %{buildroot}%{_bindir}/%{name}
%files
%{_bindir}/%{name}
%{_datadir}/%{name}
%changelog
* Wed Sep 10 2025 Saketh Pathike <sakethpathike@gmail.com> - 0.1.1-1
- Fix infinite reload loop in `serve` command by comparing absolute paths.
* Mon Sep 08 2025 Saketh Pathike <sakethpathike@gmail.com> - 0.1.0-1
- Initial release v0.1.0