bisq-exchange.spec.in 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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"
  26. cp -r ./[a-z0-9]* "%{buildroot}/opt/bisq-exchange"
  27. install -m 0755 bisq-exchange "%{buildroot}/opt/bisq-exchange"
  28. find "%{buildroot}/opt/bisq-exchange" | LC_ALL=C sort > all.list
  29. find "%{buildroot}/opt/bisq-exchange" -type d | LC_ALL=C sort > dirs.list
  30. sed -i -e "s|^%{buildroot}||" all.list dirs.list
  31. sed 's|^|%%dir |' <dirs.list > files-section
  32. comm -23 all.list dirs.list >> files-section
  33. %files -f files-section
  34. /opt/bisq-exchange/bisq-exchange
  35. %changelog
  36. * __APP_DATE__ Alois Mahdal <netvor+bisq@vornet.cz> - __APP_VERSION__-__APP_RELEASE__
  37. - Unofficial experimental RPM pseudo-release
  38. # spec file generated from __APP_BUILDSCRIPT_VERSION__