-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsqlwrap.spec
executable file
·44 lines (39 loc) · 1.22 KB
/
sqlwrap.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
Name: sqlwrap
Summary: filename and command completion for SQL*Plus using rlwrap
Version: 0.1.8.5
Release: 1%{?dtap}
BuildArch: noarch
URL: https://github.com/outrunnl/sqlwrap
Source0: %{name}-%{version}.tbz2
License: GPLv3+
Group: Database
Requires: rlwrap >= 0.42
%description
Provides TAB completion for SQL*Plus filenames and commands using rlwrap
%prep
%setup -q -n %{name}
%install
rm -rf %{buildroot}
install -m 0755 -d %{buildroot}/etc
install -m 0755 -d %{buildroot}/usr/bin
install -m 0755 -d %{buildroot}/usr/share/%{name}
install -m 0755 -d %{buildroot}/usr/share/rlwrap
install -m 0755 -d %{buildroot}/usr/share/doc/%{name}
install -m 0755 -d %{buildroot}/usr/share/man/man1
cp -p bin/* %{buildroot}/usr/bin
cp -p doc/* %{buildroot}/usr/share/doc/%{name}
cp -pr etc/* %{buildroot}/etc
cp -p share/* %{buildroot}/usr/share/%{name}
cp -p man1/* %{buildroot}/usr/share/man/man1
cp -pr rlwrap/* %{buildroot}/usr/share/rlwrap/
%files
/usr/share/doc/%{name}
/usr/share/%{name}
%defattr(0644,root,root)
/etc/profile.d/sqlwrap.sh
%defattr(0444,root,root)
%verify(not mode) /usr/share/rlwrap/completions/*
/usr/share/man/man1/sqlwrap.1.gz
%defattr(0755,root,root)
/usr/bin/sqlwrap*
/usr/share/rlwrap/filters/sqlplus_filter