bisq-exchange.spec.in 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. Requires: java-1.8.0-openjdk-devel
  14. Requires: java-1.8.0-openjdk-openjfx
  15. %description
  16. The decentralized bitcoin exchange https://bisq.network
  17. %prep
  18. %autosetup -n "exchange-%{version}"
  19. %build
  20. mvn clean package verify -DskipTests -Dmaven.javadoc.skip=true
  21. {
  22. echo '#!/bin/sh'
  23. echo 'cd /opt/bisq-exchange'
  24. echo 'exec java -jar gui/target/shaded.jar'
  25. } > bisq-exchange
  26. %install
  27. mkdir -p "%{buildroot}/opt/bisq-exchange" "%{buildroot}%{_bindir}"
  28. cp -r ./[a-z0-9]* "%{buildroot}/opt/bisq-exchange"
  29. install -m 0755 bisq-exchange "%{buildroot}/opt/bisq-exchange"
  30. ln -sT "/opt/bisq-exchange/bisq-exchange" "%{buildroot}%{_bindir}/bisq-exchange"
  31. find "%{buildroot}/opt/bisq-exchange" | LC_ALL=C sort > all.list
  32. find "%{buildroot}/opt/bisq-exchange" -type d | LC_ALL=C sort > dirs.list
  33. sed -i -e "s|^%{buildroot}||" all.list dirs.list
  34. sed 's|^|%%dir |' <dirs.list > files-section
  35. comm -23 all.list dirs.list >> files-section
  36. %files -f files-section
  37. %{_bindir}/bisq-exchange
  38. /opt/bisq-exchange/bisq-exchange
  39. %changelog
  40. * __APP_DATE__ Alois Mahdal <netvor+bisq@vornet.cz> - __APP_VERSION__-__APP_RELEASE__
  41. - Unofficial experimental RPM pseudo-release
  42. # spec file generated from __APP_BUILDSCRIPT_VERSION__