2024-01-06 06:29:04 +01:00
|
|
|
Name: lotus
|
2024-10-13 09:39:03 +02:00
|
|
|
Version: 1.3.3
|
2024-01-06 06:29:04 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: An implementation of the Filecoin Distributed Storage Network
|
|
|
|
Group: Applications/Networking
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
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
|
2024-10-13 09:39:03 +02:00
|
|
|
* Sun Oct 13 2024 Automatic Build System <autodist@openmamba.org> 1.3.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:29:04 +01:00
|
|
|
* Tue Jan 31 2023 Automatic Build System <autodist@mambasoft.it> 1.3.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sun Nov 01 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.2.20201101git-1mamba
|
|
|
|
- update to 1.1.2.20201101git
|
|
|
|
|
|
|
|
* Sun Nov 01 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.2-1mamba
|
|
|
|
- package created using the webbuild interface
|