Name: bisq-exchange Version: __APP_VERSION__ Release: __APP_RELEASE__%{?dist} Summary: The decentralized bitcoin exchange GUI URL: https://github.com/bisq-network/exchange %define debug_package %{nil} License: AGPLv3 Source0: __APP_URLBASE__/archive/v%{version}.tar.gz BuildRequires: git BuildRequires: java-1.8.0-openjdk-devel BuildRequires: java-1.8.0-openjdk-openjfx BuildRequires: maven %description The decentralized bitcoin exchange https://bisq.network %prep %autosetup -n "exchange-%{version}" %build mvn clean package verify -DskipTests -Dmaven.javadoc.skip=true { echo '#!/bin/sh' echo 'cd /opt/bisq-exchange' echo 'exec java -jar gui/target/shaded.jar' } > bisq-exchange %install mkdir -p "%{buildroot}/opt/bisq-exchange" cp -r ./[a-z0-9]* "%{buildroot}/opt/bisq-exchange" install -m 0755 bisq-exchange "%{buildroot}/opt/bisq-exchange" ln -sT "/opt/bisq-exchange/bisq-exchange" "%{buildroot}${_bindir}/bisq-exchange" find "%{buildroot}/opt/bisq-exchange" | LC_ALL=C sort > all.list find "%{buildroot}/opt/bisq-exchange" -type d | LC_ALL=C sort > dirs.list sed -i -e "s|^%{buildroot}||" all.list dirs.list sed 's|^|%%dir |' files-section comm -23 all.list dirs.list >> files-section %files -f files-section %{_bindir}/bisq-exchange /opt/bisq-exchange/bisq-exchange %changelog * __APP_DATE__ Alois Mahdal - __APP_VERSION__-__APP_RELEASE__ - Unofficial experimental RPM pseudo-release # spec file generated from __APP_BUILDSCRIPT_VERSION__