-
Notifications
You must be signed in to change notification settings - Fork 0
/
tcl.snappy_SUSE.spec
46 lines (37 loc) · 1.06 KB
/
tcl.snappy_SUSE.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
%{!?directory:%define directory /usr}
%define buildroot %{_tmppath}/%{name}
Name: tcl.snappy
Summary: Tcl wrapper for snappy library
Version: 0.13
Release: 0
License: BSD-2-Clause
Group: Development/Libraries/Tcl
Source: %{name}-%{version}.tar.gz
URL: https://github.com/ray2501/tcl.snappy
BuildRequires: autoconf
BuildRequires: make
BuildRequires: gcc-c++
BuildRequires: tcl-devel >= 8.4
Requires: tcl >= 8.4
BuildRoot: %{buildroot}
%description
It is Tcl wrapper for snappy library.
Snappy is a compression/decompression library. It does not aim for maximum
compression, or compatibility with any other compression library; instead,
it aims for very high speeds and reasonable compression.
%prep
%setup -q -n %{name}-%{version}
%build
export CC=g++
./configure \
--prefix=%{directory} \
--exec-prefix=%{directory} \
--libdir=%{directory}/%{_lib}
make
%install
make DESTDIR=%{buildroot} pkglibdir=%{tcl_archdir}/%{name}%{version} install
%clean
rm -rf %buildroot
%files
%defattr(-,root,root)
%{tcl_archdir}