distributions/fedora/sql-dk.spec
branchv_0
changeset 188 54bacc7ed42b
parent 180 74a6d55da11c
child 238 4a1864c3e867
     1.1 --- a/distributions/fedora/sql-dk.spec	Sat May 16 20:13:43 2015 +0200
     1.2 +++ b/distributions/fedora/sql-dk.spec	Sat May 16 20:25:16 2015 +0200
     1.3 @@ -1,10 +1,62 @@
     1.4 +# SQL-DK
     1.5 +# Copyright © 2014 František Kučera (frantovo.cz)
     1.6 +# 
     1.7 +# This program is free software: you can redistribute it and/or modify
     1.8 +# it under the terms of the GNU General Public License as published by
     1.9 +# the Free Software Foundation, either version 3 of the License, or
    1.10 +# (at your option) any later version.
    1.11 +# 
    1.12 +# This program is distributed in the hope that it will be useful,
    1.13 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.14 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    1.15 +# GNU General Public License for more details.
    1.16 +# 
    1.17 +# You should have received a copy of the GNU General Public License
    1.18 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
    1.19 +
    1.20  Name: sql-dk
    1.21  Summary: SQL batch client
    1.22 +Group: Applications/Databases
    1.23 +BuildArch: noarch
    1.24  Version: 0.10
    1.25 -Release: 1
    1.26 +Release: 3
    1.27  License: GNU GPLv3+
    1.28 -# TODO: Java 7 or Java 8+
    1.29 -#Requires: java >= 1:1.7.0
    1.30 +URL: https://sql-dk.globalcode.info/
    1.31 +#Requires: sql-dk-java = %{version}
    1.32 +Requires: /usr/bin/java
    1.33 +
    1.34 +
    1.35 +# --- Dependencies -----------------------------------------------------------
    1.36 +# SQL-DK requires Java 7 or Java 8 (or maybe higher).
    1.37 +# But simple 
    1.38 +#     Requires: java >= 1:1.7.0
    1.39 +# is not working in Fedora 20
    1.40 +# because java-1.8.0-openjdk here provides „java8“ not „java“ in version 1.8
    1.41 +# see https://www.abclinuxu.cz/poradna/linux/show/396144#1 (in Czech)
    1.42 +
    1.43 +%package java7
    1.44 +Summary: Java 7
    1.45 +Group: Development/Languages
    1.46 +Requires: java >= 1:1.7.0
    1.47 +Provides: sql-dk-java = %{version}
    1.48 +
    1.49 +%description java7
    1.50 +virtual package for dependency on Java 7
    1.51 +
    1.52 +%files java7
    1.53 +
    1.54 +%package java8
    1.55 +Summary: Java 8
    1.56 +Group: Development/Languages
    1.57 +Requires: java8 >= 1:1.8.0
    1.58 +Provides: sql-dk-java = %{version}
    1.59 +
    1.60 +%description java8
    1.61 +virtual package for dependency on Java 8
    1.62 +
    1.63 +%files java8
    1.64 +# ----------------------------------------------------------------------------
    1.65 +
    1.66  
    1.67  %description
    1.68  SQL-DK is a command-line client for relational databases.