distributions/fedora/sql-dk.spec
author František Kučera <franta-hg@frantovo.cz>
Sat, 06 Dec 2014 14:12:59 +0100
branchv_0
changeset 182 4ff7a273f3e8
parent 180 74a6d55da11c
child 188 54bacc7ed42b
permissions -rw-r--r--
logging: strip line ends from the error message if not printing stacktrace
     1 Name: sql-dk
     2 Summary: SQL batch client
     3 Version: 0.10
     4 Release: 1
     5 License: GNU GPLv3+
     6 # TODO: Java 7 or Java 8+
     7 #Requires: java >= 1:1.7.0
     8 
     9 %description
    10 SQL-DK is a command-line client for relational databases.
    11 
    12 %prep
    13 mkdir -p ${RPM_BUILD_ROOT}/usr/bin/
    14 mkdir -p ${RPM_BUILD_ROOT}/usr/share/sql-dk/
    15 mkdir -p ${RPM_BUILD_ROOT}/usr/share/doc/sql-dk/
    16 mkdir -p ${RPM_BUILD_ROOT}/etc/bash_completion.d/
    17 
    18 cp ../../../../scripts/sql-dk.sh                                                   ${RPM_BUILD_ROOT}/usr/bin/sql-dk
    19 cp ../../../../xml/config.xsd                                                      ${RPM_BUILD_ROOT}/usr/share/doc/sql-dk/
    20 cp ../../../../xml/config.rnc                                                      ${RPM_BUILD_ROOT}/usr/share/doc/sql-dk/
    21 cp ../../../../xml/config.xsl                                                      ${RPM_BUILD_ROOT}/usr/share/doc/sql-dk/
    22 cp ../../../../java/sql-dk/dist/sql-dk.jar                                         ${RPM_BUILD_ROOT}/usr/share/sql-dk/
    23 cp ../../../../java/jdbc-loopback-driver/dist/jdbc-loopback-driver.jar             ${RPM_BUILD_ROOT}/usr/share/sql-dk/
    24 cp ../../../../java/sql-dk/dist/bash-completion.sh                                 ${RPM_BUILD_ROOT}/etc/bash_completion.d/sql-dk
    25 
    26 %files
    27 %defattr(-,root,root)
    28 /usr/bin/*
    29 /usr/share/sql-dk/*
    30 /usr/share/doc/sql-dk/*
    31 /etc/bash_completion.d/*
    32