%define debug_package %{nil} Name: tezos-baker-PsParisC Version: 21.0 Release: 1 Epoch: 1 Summary: Daemon for baking License: MIT BuildArch: x86_64 aarch64 Source0: tezos-baker-PsParisC-21.0.tar.gz Source1: https://gitlab.com/tezos/tezos/tree/v21.0/ BuildRequires: make wget systemd systemd-rpm-macros Requires: , tezos-sapling-params, tezos-client, acl, udev %description Daemon for baking Maintainer: Serokell %prep %setup -q %build %install make octez-baker-PsParisC mkdir -p %{buildroot}/%{_bindir} install -m 0755 octez-baker-PsParisC %{buildroot}/%{_bindir} ln -s %{_bindir}/octez-baker-PsParisC %{buildroot}/%{_bindir}/tezos-baker-PsParisC mkdir -p %{buildroot}/%{_unitdir} install -m 644 tezos-baker-psparisc.service %{buildroot}/%{_unitdir} install -m 644 tezos-baker-psparisc@.service %{buildroot}/%{_unitdir} mkdir -p %{buildroot}/%{_sysconfdir}/default install -m 644 tezos-baker-psparisc.default %{buildroot}/%{_sysconfdir}/default/tezos-baker-psparisc install -m 0755 tezos-baker-psparisc-start %{buildroot}/%{_bindir} %files %license LICENSE %{_bindir}/octez-baker-PsParisC %{_bindir}/tezos-baker-PsParisC %{_bindir}/tezos-baker-psparisc-start %{_unitdir}/tezos-baker-psparisc.service %{_unitdir}/tezos-baker-psparisc@.service %{_sysconfdir}/default/tezos-baker-psparisc %post %systemd_post tezos-baker-psparisc.service %systemd_post tezos-baker-psparisc@.service if [ -z $(getent passwd tezos) ]; then useradd -r -s /bin/false -m -d /var/lib/tezos tezos chmod 0755 /var/lib/tezos fi mkdir -p /var/lib/tezos/.tezos-client chown -R tezos:tezos /var/lib/tezos/.tezos-client %preun %systemd_preun tezos-baker-psparisc.service %systemd_preun tezos-baker-psparisc@.service %postun %systemd_postun_with_restart tezos-baker-psparisc.service %systemd_postun_with_restart tezos-baker-psparisc@.service