From 778f91f87defa657ffac5f2215bfce37b9ce3925 Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Sat, 6 Jan 2024 06:29:04 +0100 Subject: [PATCH] automatic version update by autodist [release 1.3.2-1mamba;Tue Jan 31 2023] --- README.md | 2 ++ lotus.spec | 82 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 lotus.spec diff --git a/README.md b/README.md index de615cb..87c1bad 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # lotus +Lotus is an implementation of the Filecoin Distributed Storage Network. + diff --git a/lotus.spec b/lotus.spec new file mode 100644 index 0000000..d5cf037 --- /dev/null +++ b/lotus.spec @@ -0,0 +1,82 @@ +Name: lotus +Version: 1.3.2 +Release: 1mamba +Summary: An implementation of the Filecoin Distributed Storage Network +Group: Applications/Networking +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://spec.filecoin.io/ +Source: https+git://github.com/filecoin-project/lotus.git/master/lotus-%{version}.tar.bz2 +License: MIT, Apache License 2.0 +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libgcc +BuildRequires: libhwloc-devel +BuildRequires: ocl-icd-devel +## AUTOBUILDREQ-END +BuildRequires: jq +BuildRequires: rustup + +%description +Lotus is an implementation of the Filecoin Distributed Storage Network. + +%debug_package + +%prep +%setup -q +sed -i "s|/usr/local/bin|%{_bindir}|" scripts/lotus-*.service + +%build +#export RUSTFLAGS="-C target-cpu=native -g" +#export FFI_BUILD_FROM_SOURCE=1 +export GOFLAGS="-trimpath -buildmode=pie" +make clean all + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +install -D -m0755 lotus %{buildroot}%{_bindir}/lotus +install -D -m0755 lotus-miner %{buildroot}%{_bindir}/lotus-miner +install -D -m0755 lotus-worker %{buildroot}%{_bindir}/lotus-worker +install -D -m0644 ./scripts/lotus-daemon.service %{buildroot}%{_unitdir}/lotus-daemon.service +install -D -m0644 ./scripts/lotus-miner.service %{buildroot}%{_unitdir}/lotus-miner.service +#install -D -m0644 ./scripts/lotus-chainwatch.service %{buildroot}%{_unitdir}/lotus-chainwatch.service +install -d %{buildroot}%{_localstatedir}/log/lotus + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post +%systemd_post lotus-daemon.service +%systemd_post lotus-miner.service +: + +%postun +%systemd_postun lotus-daemon.service +%systemd_postun lotus-miner.service +: + +%preun +%systemd_preun_with_restart lotus-daemon.service +%systemd_preun_with_restart lotus-miner.service +: + +%files +%defattr(-,root,root) +%{_unitdir}/lotus-daemon.service +%{_unitdir}/lotus-miner.service +%{_bindir}/lotus +%{_bindir}/lotus-miner +%{_bindir}/lotus-worker +%dir %{_localstatedir}/log/lotus +%doc LICENSE-APACHE LICENSE-MIT + +%changelog +* Tue Jan 31 2023 Automatic Build System 1.3.2-1mamba +- automatic version update by autodist + +* Sun Nov 01 2020 Silvan Calarco 1.1.2.20201101git-1mamba +- update to 1.1.2.20201101git + +* Sun Nov 01 2020 Silvan Calarco 1.1.2-1mamba +- package created using the webbuild interface