-
Notifications
You must be signed in to change notification settings - Fork 2
/
TDBCJDBC.spec
49 lines (38 loc) · 1007 Bytes
/
TDBCJDBC.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
46
47
48
#
# spec file for package TDBCJDBC
#
Name: TDBCJDBC
BuildRequires: tcl
Version: 0.2.0
Release: 0
Summary: Tcl DataBase Connectivity JDBC Driver
Url: https://github.com/ray2501/TDBCJDBC
License: MIT
Group: Development/Libraries/Tcl
BuildArch: noarch
Requires: tcl >= 8.6
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: %{name}.tar.gz
%description
Tcl DataBase Connectivity JDBC Driver.
This extension needs Tcl >= 8.6, TDBC and tclBlend (or tclJBlend) package.
%prep
%setup -q -n %{name}
%build
%install
dir=%buildroot%{tcl_noarchdir}/%{name}%{version}/tdbc
tclsh ./installer.tcl -path $dir
cat > %{buildroot}%{tcl_noarchdir}/%{name}%{version}/pkgIndex.tcl << 'EOD'
#
# Tcl package index file
#
package ifneeded tdbc::jdbc 0.2.0 \
[list source [file join $dir tdbc jdbc-0.2.0.tm]]
EOD
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc README.md
%{tcl_noarchdir}/%{name}%{version}
%changelog