-
Notifications
You must be signed in to change notification settings - Fork 0
/
tcllibao_SUSE.spec
42 lines (34 loc) · 869 Bytes
/
tcllibao_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
%{!?directory:%define directory /usr}
%define buildroot %{_tmppath}/%{name}
Name: tcllibao
Summary: Tcl bindings for libao
Version: 0.4
Release: 0
License: GPL-2.0-or-later
Group: Development/Libraries/Tcl
Source: %{name}-%{version}.tar.gz
URL: https://github.com/ray2501/tcllibao
BuildRequires: autoconf
BuildRequires: make
BuildRequires: tcl-devel >= 8.4
BuildRequires: libao-devel
Requires: tcl >= 8.4
Requires: libao4
BuildRoot: %{buildroot}
%description
Tcl bindings for libao.
%prep
%setup -q -n %{name}-%{version}
%build
./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}