author | František Kučera <franta-hg@frantovo.cz> |
Sun, 24 May 2015 18:45:46 +0200 | |
branch | v_0 |
changeset 199 | 88de2602deb3 |
parent 188 | 54bacc7ed42b |
child 238 | 4a1864c3e867 |
permissions | -rw-r--r-- |
franta-hg@188 | 1 |
# SQL-DK |
franta-hg@188 | 2 |
# Copyright © 2014 František Kučera (frantovo.cz) |
franta-hg@188 | 3 |
# |
franta-hg@188 | 4 |
# This program is free software: you can redistribute it and/or modify |
franta-hg@188 | 5 |
# it under the terms of the GNU General Public License as published by |
franta-hg@188 | 6 |
# the Free Software Foundation, either version 3 of the License, or |
franta-hg@188 | 7 |
# (at your option) any later version. |
franta-hg@188 | 8 |
# |
franta-hg@188 | 9 |
# This program is distributed in the hope that it will be useful, |
franta-hg@188 | 10 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
franta-hg@188 | 11 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
franta-hg@188 | 12 |
# GNU General Public License for more details. |
franta-hg@188 | 13 |
# |
franta-hg@188 | 14 |
# You should have received a copy of the GNU General Public License |
franta-hg@188 | 15 |
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
franta-hg@188 | 16 |
|
franta-hg@180 | 17 |
Name: sql-dk |
franta-hg@180 | 18 |
Summary: SQL batch client |
franta-hg@188 | 19 |
Group: Applications/Databases |
franta-hg@188 | 20 |
BuildArch: noarch |
franta-hg@180 | 21 |
Version: 0.10 |
franta-hg@188 | 22 |
Release: 3 |
franta-hg@180 | 23 |
License: GNU GPLv3+ |
franta-hg@188 | 24 |
URL: https://sql-dk.globalcode.info/ |
franta-hg@188 | 25 |
#Requires: sql-dk-java = %{version} |
franta-hg@188 | 26 |
Requires: /usr/bin/java |
franta-hg@188 | 27 |
|
franta-hg@188 | 28 |
|
franta-hg@188 | 29 |
# --- Dependencies ----------------------------------------------------------- |
franta-hg@188 | 30 |
# SQL-DK requires Java 7 or Java 8 (or maybe higher). |
franta-hg@188 | 31 |
# But simple |
franta-hg@188 | 32 |
# Requires: java >= 1:1.7.0 |
franta-hg@188 | 33 |
# is not working in Fedora 20 |
franta-hg@188 | 34 |
# because java-1.8.0-openjdk here provides „java8“ not „java“ in version 1.8 |
franta-hg@188 | 35 |
# see https://www.abclinuxu.cz/poradna/linux/show/396144#1 (in Czech) |
franta-hg@188 | 36 |
|
franta-hg@188 | 37 |
%package java7 |
franta-hg@188 | 38 |
Summary: Java 7 |
franta-hg@188 | 39 |
Group: Development/Languages |
franta-hg@188 | 40 |
Requires: java >= 1:1.7.0 |
franta-hg@188 | 41 |
Provides: sql-dk-java = %{version} |
franta-hg@188 | 42 |
|
franta-hg@188 | 43 |
%description java7 |
franta-hg@188 | 44 |
virtual package for dependency on Java 7 |
franta-hg@188 | 45 |
|
franta-hg@188 | 46 |
%files java7 |
franta-hg@188 | 47 |
|
franta-hg@188 | 48 |
%package java8 |
franta-hg@188 | 49 |
Summary: Java 8 |
franta-hg@188 | 50 |
Group: Development/Languages |
franta-hg@188 | 51 |
Requires: java8 >= 1:1.8.0 |
franta-hg@188 | 52 |
Provides: sql-dk-java = %{version} |
franta-hg@188 | 53 |
|
franta-hg@188 | 54 |
%description java8 |
franta-hg@188 | 55 |
virtual package for dependency on Java 8 |
franta-hg@188 | 56 |
|
franta-hg@188 | 57 |
%files java8 |
franta-hg@188 | 58 |
# ---------------------------------------------------------------------------- |
franta-hg@188 | 59 |
|
franta-hg@180 | 60 |
|
franta-hg@180 | 61 |
%description |
franta-hg@180 | 62 |
SQL-DK is a command-line client for relational databases. |
franta-hg@180 | 63 |
|
franta-hg@180 | 64 |
%prep |
franta-hg@180 | 65 |
mkdir -p ${RPM_BUILD_ROOT}/usr/bin/ |
franta-hg@180 | 66 |
mkdir -p ${RPM_BUILD_ROOT}/usr/share/sql-dk/ |
franta-hg@180 | 67 |
mkdir -p ${RPM_BUILD_ROOT}/usr/share/doc/sql-dk/ |
franta-hg@180 | 68 |
mkdir -p ${RPM_BUILD_ROOT}/etc/bash_completion.d/ |
franta-hg@180 | 69 |
|
franta-hg@180 | 70 |
cp ../../../../scripts/sql-dk.sh ${RPM_BUILD_ROOT}/usr/bin/sql-dk |
franta-hg@180 | 71 |
cp ../../../../xml/config.xsd ${RPM_BUILD_ROOT}/usr/share/doc/sql-dk/ |
franta-hg@180 | 72 |
cp ../../../../xml/config.rnc ${RPM_BUILD_ROOT}/usr/share/doc/sql-dk/ |
franta-hg@180 | 73 |
cp ../../../../xml/config.xsl ${RPM_BUILD_ROOT}/usr/share/doc/sql-dk/ |
franta-hg@180 | 74 |
cp ../../../../java/sql-dk/dist/sql-dk.jar ${RPM_BUILD_ROOT}/usr/share/sql-dk/ |
franta-hg@180 | 75 |
cp ../../../../java/jdbc-loopback-driver/dist/jdbc-loopback-driver.jar ${RPM_BUILD_ROOT}/usr/share/sql-dk/ |
franta-hg@180 | 76 |
cp ../../../../java/sql-dk/dist/bash-completion.sh ${RPM_BUILD_ROOT}/etc/bash_completion.d/sql-dk |
franta-hg@180 | 77 |
|
franta-hg@180 | 78 |
%files |
franta-hg@180 | 79 |
%defattr(-,root,root) |
franta-hg@180 | 80 |
/usr/bin/* |
franta-hg@180 | 81 |
/usr/share/sql-dk/* |
franta-hg@180 | 82 |
/usr/share/doc/sql-dk/* |
franta-hg@180 | 83 |
/etc/bash_completion.d/* |
franta-hg@180 | 84 |