distributions/fedora/sql-dk.spec
branchv_0
changeset 188 54bacc7ed42b
parent 180 74a6d55da11c
child 238 4a1864c3e867
--- a/distributions/fedora/sql-dk.spec	Sat May 16 20:13:43 2015 +0200
+++ b/distributions/fedora/sql-dk.spec	Sat May 16 20:25:16 2015 +0200
@@ -1,10 +1,62 @@
+# SQL-DK
+# Copyright © 2014 František Kučera (frantovo.cz)
+# 
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+# 
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+# 
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
 Name: sql-dk
 Summary: SQL batch client
+Group: Applications/Databases
+BuildArch: noarch
 Version: 0.10
-Release: 1
+Release: 3
 License: GNU GPLv3+
-# TODO: Java 7 or Java 8+
-#Requires: java >= 1:1.7.0
+URL: https://sql-dk.globalcode.info/
+#Requires: sql-dk-java = %{version}
+Requires: /usr/bin/java
+
+
+# --- Dependencies -----------------------------------------------------------
+# SQL-DK requires Java 7 or Java 8 (or maybe higher).
+# But simple 
+#     Requires: java >= 1:1.7.0
+# is not working in Fedora 20
+# because java-1.8.0-openjdk here provides „java8“ not „java“ in version 1.8
+# see https://www.abclinuxu.cz/poradna/linux/show/396144#1 (in Czech)
+
+%package java7
+Summary: Java 7
+Group: Development/Languages
+Requires: java >= 1:1.7.0
+Provides: sql-dk-java = %{version}
+
+%description java7
+virtual package for dependency on Java 7
+
+%files java7
+
+%package java8
+Summary: Java 8
+Group: Development/Languages
+Requires: java8 >= 1:1.8.0
+Provides: sql-dk-java = %{version}
+
+%description java8
+virtual package for dependency on Java 8
+
+%files java8
+# ----------------------------------------------------------------------------
+
 
 %description
 SQL-DK is a command-line client for relational databases.