franta-hg@188: # SQL-DK franta-hg@188: # Copyright © 2014 František Kučera (frantovo.cz) franta-hg@188: # franta-hg@188: # This program is free software: you can redistribute it and/or modify franta-hg@188: # it under the terms of the GNU General Public License as published by franta-hg@188: # the Free Software Foundation, either version 3 of the License, or franta-hg@188: # (at your option) any later version. franta-hg@188: # franta-hg@188: # This program is distributed in the hope that it will be useful, franta-hg@188: # but WITHOUT ANY WARRANTY; without even the implied warranty of franta-hg@188: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the franta-hg@188: # GNU General Public License for more details. franta-hg@188: # franta-hg@188: # You should have received a copy of the GNU General Public License franta-hg@188: # along with this program. If not, see . franta-hg@188: franta-hg@180: Name: sql-dk franta-hg@180: Summary: SQL batch client franta-hg@188: Group: Applications/Databases franta-hg@188: BuildArch: noarch franta-hg@180: Version: 0.10 franta-hg@188: Release: 3 franta-hg@180: License: GNU GPLv3+ franta-hg@188: URL: https://sql-dk.globalcode.info/ franta-hg@188: #Requires: sql-dk-java = %{version} franta-hg@188: Requires: /usr/bin/java franta-hg@188: franta-hg@188: franta-hg@188: # --- Dependencies ----------------------------------------------------------- franta-hg@188: # SQL-DK requires Java 7 or Java 8 (or maybe higher). franta-hg@188: # But simple franta-hg@188: # Requires: java >= 1:1.7.0 franta-hg@188: # is not working in Fedora 20 franta-hg@188: # because java-1.8.0-openjdk here provides „java8“ not „java“ in version 1.8 franta-hg@188: # see https://www.abclinuxu.cz/poradna/linux/show/396144#1 (in Czech) franta-hg@188: franta-hg@188: %package java7 franta-hg@188: Summary: Java 7 franta-hg@188: Group: Development/Languages franta-hg@188: Requires: java >= 1:1.7.0 franta-hg@188: Provides: sql-dk-java = %{version} franta-hg@188: franta-hg@188: %description java7 franta-hg@188: virtual package for dependency on Java 7 franta-hg@188: franta-hg@188: %files java7 franta-hg@188: franta-hg@188: %package java8 franta-hg@188: Summary: Java 8 franta-hg@188: Group: Development/Languages franta-hg@188: Requires: java8 >= 1:1.8.0 franta-hg@188: Provides: sql-dk-java = %{version} franta-hg@188: franta-hg@188: %description java8 franta-hg@188: virtual package for dependency on Java 8 franta-hg@188: franta-hg@188: %files java8 franta-hg@188: # ---------------------------------------------------------------------------- franta-hg@188: franta-hg@180: franta-hg@180: %description franta-hg@180: SQL-DK is a command-line client for relational databases. franta-hg@180: franta-hg@180: %prep franta-hg@180: mkdir -p ${RPM_BUILD_ROOT}/usr/bin/ franta-hg@180: mkdir -p ${RPM_BUILD_ROOT}/usr/share/sql-dk/ franta-hg@180: mkdir -p ${RPM_BUILD_ROOT}/usr/share/doc/sql-dk/ franta-hg@180: mkdir -p ${RPM_BUILD_ROOT}/etc/bash_completion.d/ franta-hg@180: franta-hg@180: cp ../../../../scripts/sql-dk.sh ${RPM_BUILD_ROOT}/usr/bin/sql-dk franta-hg@180: cp ../../../../xml/config.xsd ${RPM_BUILD_ROOT}/usr/share/doc/sql-dk/ franta-hg@180: cp ../../../../xml/config.rnc ${RPM_BUILD_ROOT}/usr/share/doc/sql-dk/ franta-hg@180: cp ../../../../xml/config.xsl ${RPM_BUILD_ROOT}/usr/share/doc/sql-dk/ franta-hg@238: cp ../../../../java/sql-dk/target/sql-dk-*.jar ${RPM_BUILD_ROOT}/usr/share/sql-dk/ franta-hg@238: cp ../../../../java/jdbc-loopback-driver/target/jdbc-loopback-driver-*.jar ${RPM_BUILD_ROOT}/usr/share/sql-dk/ franta-hg@238: cp ../../../../java/sql-dk/target/bash-completion.sh ${RPM_BUILD_ROOT}/etc/bash_completion.d/sql-dk franta-hg@180: franta-hg@180: %files franta-hg@180: %defattr(-,root,root) franta-hg@180: /usr/bin/* franta-hg@180: /usr/share/sql-dk/* franta-hg@180: /usr/share/doc/sql-dk/* franta-hg@180: /etc/bash_completion.d/*