You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.1 KiB

  1. %define __spec_install_post %{nil}
  2. %define debug_package %{nil}
  3. %define __os_install_post %{nil}
  4. Name: tendermint
  5. Summary: securely and consistently replicate an application on many machines
  6. License: Apache 2.0
  7. URL: https://tendermint.com/
  8. Packager: Greg Szabo
  9. %description
  10. Tendermint is software for securely and consistently replicating an application on many machines. By securely, we mean that Tendermint works even if up to 1/3 of machines fail in arbitrary ways. By consistently, we mean that every non-faulty machine sees the same transaction log and computes the same state.
  11. %prep
  12. test -d "$GOPATH" || echo "GOPATH not set"
  13. test -d "$GOPATH"
  14. %{__mkdir_p} %{name}-%{version}
  15. cd %{name}-%{version}
  16. %{__mkdir_p} .%{_bindir} .%{_defaultlicensedir}/%{name}
  17. %{__cp} $GOPATH/bin/tendermint .%{_bindir}
  18. %{__cp} $GOPATH/src/github.com/tendermint/tendermint/LICENSE .%{_defaultlicensedir}/%{name}
  19. %{__chmod} -Rf a+rX,u+w,g-w,o-w .
  20. %build
  21. # Nothing to do here.
  22. %install
  23. cd %{name}-%{version}
  24. %{__cp} -a * %{buildroot}
  25. %files
  26. %{_bindir}/tendermint
  27. %dir %{_defaultlicensedir}/%{name}
  28. %doc %{_defaultlicensedir}/%{name}/LICENSE