-
Notifications
You must be signed in to change notification settings - Fork 0
/
tgdbm.spec
45 lines (36 loc) · 1.01 KB
/
tgdbm.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
%{!?directory:%define directory /usr}
%define buildroot %{_tmppath}/%{name}
%define packagename tgdbm
Name: tcl-tgdbm
Summary: Tcl interface to the Gdbm
Version: 0.7
Release: 0
License: GPL-2.0-only
Group: Development/Libraries/Tcl
Source: %{packagename}-%{version}.tar.gz
URL: https://github.com/ray2501/tgdbm
BuildRequires: autoconf
BuildRequires: gdbm-devel
BuildRequires: tcl-devel >= 8.4
Requires: tcl >= 8.4
Requires: libgdbm4
BuildRoot: %{buildroot}
%description
This is a Tcl-Wrapper for the famous gdbm (the GNU-Version of dbm) and
a small database-utility "Qgdbm".
%prep
%setup -q -n %{packagename}-%{version}
%build
./configure \
--prefix=%{directory} \
--exec-prefix=%{directory} \
--libdir=%{directory}/%{_lib} \
--with-tcl=%{directory}/%{_lib}
make
%install
make DESTDIR=%{buildroot} pkglibdir=%{tcl_archdir}/%{packagename}%{version} install
%clean
rm -rf %buildroot
%files
%defattr(-,root,root)
%{tcl_archdir}/%{packagename}%{version}