-
Notifications
You must be signed in to change notification settings - Fork 0
/
tclmixer.spec
45 lines (36 loc) · 1004 Bytes
/
tclmixer.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
%{!?directory:%define directory /usr}
%define buildroot %{_tmppath}/%{name}
Name: tclmixer
Summary: SDL_mixer (SDL) bindings for Tcl
Version: 2.0.1
Release: 0
License: LGPL-2.1-only
Group: Development/Libraries/Tcl
Source: %{name}-%{version}.tar.gz
URL: https://github.com/ray2501/tclmixer
BuildRequires: autoconf
BuildRequires: make
BuildRequires: tcl-devel >= 8.4
BuildRequires: libSDL2-devel
BuildRequires: libSDL2_mixer-devel
Requires: tcl >= 8.4
BuildRoot: %{buildroot}
%description
TclMixer provides SDL_mixer (SDL) bindings for Tcl.
It allows to play multiple sounds simultaneously using a built-in
software mixer.
%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}