@@ -4,7 +4,8 @@ Release: 1
44Summary: Algorand node software
55URL: https://www.algorand.com
66License: AGPL-3+
7- Requires: yum-cron
7+ Requires: dnf-automatic
8+
89Requires: systemd
910Requires(pre): shadow-utils
1011
@@ -42,16 +43,19 @@ install -m 644 ${REPO_DIR}/installer/algorand.service %{buildroot}/lib/systemd/s
4243install -m 644 ${REPO_DIR}/installer/algorand@.service %{buildroot }/lib/systemd/system/algorand@.service
4344
4445mkdir -p %{buildroot }/etc/cron.hourly
45- install -m 755 ${REPO_DIR}/installer/rpm/algorand/0yum-algorand-hourly.cron %{buildroot }/etc/cron.hourly/0yum-algorand-hourly.cron
46+ install -m 755 ${REPO_DIR}/installer/rpm/algorand/0dnf-algorand-hourly.cron %{buildroot }/etc/cron.hourly/0dnf-algorand-hourly.cron
47+
48+
49+ mkdir -p %{buildroot }/etc/dnf
50+ install -m 644 ${REPO_DIR}/installer/rpm/algorand/dnf-cron-algorand.conf %{buildroot }/etc/dnf/dnf-cron-algorand.conf
4651
47- mkdir -p %{buildroot }/etc/yum
48- install -m 644 ${REPO_DIR}/installer/rpm/algorand/yum-cron-algorand.conf %{buildroot }/etc/yum/yum-cron-algorand.conf
4952
5053mkdir -p %{buildroot }/etc/pki/rpm-gpg
5154install -m 644 ${REPO_DIR}/installer/rpm/RPM-GPG-KEY-Algorand %{buildroot }/etc/pki/rpm-gpg/RPM-GPG-KEY-Algorand
5255
53- mkdir -p %{buildroot }/usr/lib/algorand/yum.repos.d
54- install -m 644 ${REPO_DIR}/installer/rpm/algorand/algorand.repo %{buildroot }/usr/lib/algorand/yum.repos.d/algorand.repo
56+ mkdir -p %{buildroot }/usr/lib/algorand/dnf.repos.d
57+ install -m 644 ${REPO_DIR}/installer/rpm/algorand/algorand.repo %{buildroot }/usr/lib/algorand/dnf.repos.d/algorand.repo
58+
5559
5660mkdir -p %{buildroot }/var/lib/algorand/genesis
5761if [ "%{RELEASE_GENESIS_PROCESS }" != "x" ]; then
8892%endif
8993/lib/systemd/system/algorand.service
9094/lib/systemd/system/algorand@.service
91- %config(noreplace) /etc/cron.hourly/0yum-algorand-hourly.cron
92- %config(noreplace) /etc/yum/yum-cron-algorand.conf
95+ %config(noreplace) /etc/cron.hourly/0dnf-algorand-hourly.cron
96+ %config(noreplace) /etc/dnf/dnf-cron-algorand.conf
97+
9398/etc/pki/rpm-gpg/RPM-GPG-KEY-Algorand
94- /usr/lib/algorand/yum .repos.d/algorand.repo
99+ /usr/lib/algorand/dnf .repos.d/algorand.repo
95100
96101%changelog
97102
0 commit comments