Name: nuspawn Vendor: tulilirockz Version: 0.3.0+92d994f Release: 0%{?dist} Summary: Helper for Nspawn and Machinectl License: 3.0-BSD URL: https://github.com/%{vendor}/%{name} VCS: git+https://github.com/tulilirockz/nuspawn.git#92d994f05fdc11eca3365cb18142a71f5eeb2b31: Source: nuspawn-92d994f0.tar.gz BuildArch: noarch Supplements: systemd Requires: nu %description Wraps systemd-nspawn for fetching and easier usage %global debug_package %{nil} %global pname nuspawn %prep %setup -T -b 0 -q -n nuspawn %build %install mkdir -p %{buildroot}%{_libexecdir}/%{pname} %{buildroot}/%{_bindir} sed -i 's/\%GIT_COMMIT\%/{{ git_ref }}/g' src/lib/meta.nu sed -i 's/\%VERSION\%/%{VERSION}/g' src/lib/meta.nu sed -i 's~\.\/lib~\/usr\/libexec/%{pname}~' src/%{pname} install -D -m 0755 src/%{pname} %{buildroot}%{_bindir}/%{pname} cp -r src/lib/* %{buildroot}%{_libexecdir}/%{pname} %files %license LICENSE %{_libexecdir}/%{name}/* %attr(0755,root,root) %{_bindir}/%{pname} %changelog %autochangelog