%global project https://github.com/arkane-systems/genie/ %global version 1.35 # debuginfo is 'not supported' for .NET binaries %global debug_package %{nil} %global _enable_debug_package 0 %global __os_install_post /usr/lib/rpm/brp-compress %{nil} Name: genie Version: %{version} Release: 1%{?dist} Summary: A quick way into systemd "bottle" for WSL License: Unlicense URL: %{project} Source0: %{project}archive/genie-%{version}.tar.gz Requires: systemd-container Requires: daemonize Requires: dotnet-runtime-5.0 BuildRequires: dotnet-sdk-5.0 BuildRequires: make ExclusiveArch: x86_64 %description A quick way into systemd "bottle" for WSL %prep %setup -q -n %{name}-%{version} %build make -C binsrc %install pwd install -d -p %{buildroot}%{_libexecdir}/%{name} install -d -p %{buildroot}%{_sysconfdir} install -m 4755 -vp binsrc/genie/bin/Release/net5.0/linux-x64/publish/genie %{buildroot}%{_libexecdir}/%{name} install -m 0755 -vp binsrc/runinwsl/bin/Release/net5.0/linux-x64/publish/runinwsl %{buildroot}%{_libexecdir}/%{name} install -m 0755 -vp othersrc/scripts/10-genie-envar.sh %{buildroot}%{_libexecdir}/%{name} install -m 0755 -vp othersrc/etc/genie.ini %{buildroot}%{_sysconfdir}/ %post ln -s %{_libexecdir}/%{name}/%{name} %{_bindir}/%{name} ln -s %{_libexecdir}/%{name}/10-genie-envar.sh %{_exec_prefix}/lib/systemd/system-environment-generators/ %postun rm -rf %{_libexecdir}/%{name} rm -f %{_bindir}/%{name} rm -f %{_exec_prefix}/lib/systemd/system-environment-generators/10-envar.sh %clean rm -rf %{buildroot} %files %{_libexecdir}/%{name}/* %config %{_sysconfdir}/genie.ini %changelog * Mon Feb 22 2021 Alistair Young 1.35-1 - Packager modified for new build system. * Wed Feb 17 2021 Gerard Braad 1.34-1 - Initial version for Fedora