summaryrefslogtreecommitdiff
path: root/tcl-tdbc-mysql.spec
blob: ab3bdf7a0f8631ff50600769dc4389c69e2e48d3 (plain)
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
49
50
51
52
53
Summary:	TDBC driver to access MySQL databases
Summary(pl.UTF-8):	Sterownik TDBC służący do dostępu do baz danych MySQL
Name:		tcl-tdbc-mysql
Version:	1.0.4
Release:	1
License:	Tcl (BSD-like)
Group:		Libraries
Source0:	http://downloads.sourceforge.net/tcl/tdbcmysql%{version}.tar.gz
# Source0-md5:	a03304350ad76425ac919c8a3f021edd
URL:		http://tdbc.tcl.tk/
BuildRequires:	tcl-devel >= 8.6
BuildRequires:	tcl-tdbc-devel >= %{version}
Requires:	tcl >= 8.6
Requires:	tcl-tdbc >= %{version}
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
Tcl TDBC MySQL module is the driver for Tcl Database Connectivity
(TDBC) to access MySQL databases.

%description -l pl.UTF-8
Moduł Tcl TDBC MySQL to sterownik szkieletu Tcl Database Connectivity
(TDBC) służący do dostępu do baz danych MySQL.

%prep
%setup -q -n tdbcmysql%{version}

%build
%configure
%{__make}

%install
rm -rf $RPM_BUILD_ROOT

%{__make} install \
	DESTDIR=$RPM_BUILD_ROOT

# internal headers
%{__rm} $RPM_BUILD_ROOT%{_includedir}/{fakemysql,mysqlStubs}.h

# allow dependency generation
chmod 755 $RPM_BUILD_ROOT%{_libdir}/tdbcmysql%{version}/*.so

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc ChangeLog README license.terms
%dir %{_libdir}/tdbcmysql%{version}
%attr(755,root,root) %{_libdir}/tdbcmysql%{version}/libtdbcmysql%{version}.so
%{_libdir}/tdbcmysql%{version}/*.tcl
%{_mandir}/mann/tdbc_mysql.n*