bisq-exchange.spec.in 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. Name: bisq-exchange
  2. Version: __APP_VERSION__
  3. Release: __APP_RELEASE__%{?dist}
  4. Summary: The decentralized bitcoin exchange GUI
  5. URL: https://github.com/bisq-network/exchange
  6. %define debug_package %{nil}
  7. License: AGPLv3
  8. Source0: __APP_URLBASE__/archive/v%{version}.tar.gz
  9. BuildRequires: git
  10. BuildRequires: java-1.8.0-openjdk-devel
  11. BuildRequires: java-1.8.0-openjdk-openjfx
  12. BuildRequires: maven
  13. %description
  14. The decentralized bitcoin exchange https://bisq.network
  15. %prep
  16. %autosetup -n "exchange-%{version}"
  17. %build
  18. mvn clean package verify -DskipTests -Dmaven.javadoc.skip=true
  19. {
  20. echo '#!/bin/sh'
  21. echo 'cd /opt/bisq-exchange'
  22. echo 'exec java -jar gui/target/shaded.jar'
  23. } > bisq-exchange
  24. %install
  25. mkdir -p "%{buildroot}/opt/bisq-exchange" "%{buildroot}%{_bindir}"
  26. cp -r ./[a-z0-9]* "%{buildroot}/opt/bisq-exchange"
  27. install -m 0755 bisq-exchange "%{buildroot}/opt/bisq-exchange"
  28. ln -sT "/opt/bisq-exchange/bisq-exchange" "%{buildroot}%{_bindir}/bisq-exchange"
  29. find "%{buildroot}/opt/bisq-exchange" | LC_ALL=C sort > all.list
  30. find "%{buildroot}/opt/bisq-exchange" -type d | LC_ALL=C sort > dirs.list
  31. sed -i -e "s|^%{buildroot}||" all.list dirs.list
  32. sed 's|^|%%dir |' <dirs.list > files-section
  33. comm -23 all.list dirs.list >> files-section
  34. %files -f files-section
  35. %{_bindir}/bisq-exchange
  36. /opt/bisq-exchange/bisq-exchange
  37. %changelog
  38. * __APP_DATE__ Alois Mahdal <netvor+bisq@vornet.cz> - __APP_VERSION__-__APP_RELEASE__
  39. - Unofficial experimental RPM pseudo-release
  40. # spec file generated from __APP_BUILDSCRIPT_VERSION__