automatic version update by autodist [release 1.3.2-1mamba;Tue Jan 31 2023]
This commit is contained in:
parent
197df80732
commit
778f91f87d
@ -1,2 +1,4 @@
|
||||
# lotus
|
||||
|
||||
Lotus is an implementation of the Filecoin Distributed Storage Network.
|
||||
|
||||
|
82
lotus.spec
Normal file
82
lotus.spec
Normal file
@ -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 <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
|
||||
* 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
|
Loading…
Reference in New Issue
Block a user