-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathosql.spec
46 lines (36 loc) · 1.15 KB
/
osql.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
45
Name: osql
Version: 0.2
Release: 1
Summary: osql, the Oracle DBA shell
Group: Applications/Databases
License: BSD
Source: %{expand:%%(pwd)}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: x86_64
# no automatic requirements discovery: libclntsh should not become a rpm
# dependency
AutoReq: 0
Requires: libc.so.6()(64bit)
Requires: libreadline.so.5()(64bit)
Requires: libtermcap.so.2()(64bit)
%description
osql is an Oracle command-line interface alternative to the stock sqlplus shell.
%install
mkdir -p $RPM_BUILD_ROOT/usr/bin
mkdir -p $RPM_BUILD_ROOT/usr/share/man/man1
cp %{SOURCEURL0}/osql $RPM_BUILD_ROOT/usr/bin/
cp %{SOURCEURL0}/osql.bin $RPM_BUILD_ROOT/usr/bin/
cp %{SOURCEURL0}/osql.1 $RPM_BUILD_ROOT/usr/share/man/man1
# to keep rpmbuild from failing (?!)
test -e %{_topdir}/SOURCES/osql || touch %{_topdir}/SOURCES/osql
%clean
rm -rf $RPM_BUILD_ROOT
rm -f %{_topdir}/SOURCES/osql
%files
%defattr(-,root,root,-)
/usr/bin/osql
/usr/bin/osql.bin
/usr/share/man/man1/osql.1.gz
%changelog
* Sun Jan 20 2013 Dennis Koegel <[email protected]> - 0.1
- initial spec file