1 | # The default OS/2 Toolkit path, use --define to override on the command line
|
---|
2 | Summary: K Audio Interface library for OS/2 multimedia subsystem
|
---|
3 | Name: libkai
|
---|
4 | Version: 1.2.0
|
---|
5 | Release: 1%{?dist}
|
---|
6 | License: LGPLv2+
|
---|
7 | Group: System Environment/Libraries
|
---|
8 | Vendor: bww bitwise works GmbH
|
---|
9 | URL: https://github.com/komh/kai
|
---|
10 |
|
---|
11 | %define github_name kai
|
---|
12 | %define github_url https://github.com/komh/%{github_name}/archive
|
---|
13 | %define github_rev kai-%{version}
|
---|
14 |
|
---|
15 | Source: %{github_name}-%{github_rev}.zip
|
---|
16 |
|
---|
17 | BuildRequires: gcc make curl zip
|
---|
18 |
|
---|
19 | BuildRequires: os2tk45-headers os2tk45-libs
|
---|
20 |
|
---|
21 | %description
|
---|
22 | K Audio Interface is a frontend library that simplifies access to OS/2
|
---|
23 | audio hardware making it easier to write programs that play sounds.
|
---|
24 | Currently, it supports playing sounds through the standard OS/2
|
---|
25 | MMPM/DART subsystem and through the UNIAUD driver directly.
|
---|
26 |
|
---|
27 | %package devel
|
---|
28 | Summary: K Audio Interface developer package
|
---|
29 | Group: Development/Libraries
|
---|
30 | Requires: %{name} = %{version}-%{release}
|
---|
31 |
|
---|
32 | %description devel
|
---|
33 | Contains headers and libraries necessary to compile audio-enabled
|
---|
34 | applications that use K Audio Interface.
|
---|
35 |
|
---|
36 | %package static
|
---|
37 | Summary: K Audio Interface static library
|
---|
38 | Group: Development/Libraries
|
---|
39 | Requires: %{name}-devel = %{version}-%{release}
|
---|
40 |
|
---|
41 | %description static
|
---|
42 | Contains headers the static K Audio Interface library.
|
---|
43 |
|
---|
44 | %debug_package
|
---|
45 |
|
---|
46 | %prep
|
---|
47 | %if %(sh -c 'if test -f "%{_sourcedir}/%{github_name}-%{github_rev}.zip" ; then echo 1 ; else echo 0 ; fi')
|
---|
48 | %setup -n "%{github_name}-%{github_rev}" -q
|
---|
49 | %else
|
---|
50 | %setup -n "%{github_name}-%{github_rev}" -Tc
|
---|
51 | rm -f "%{_sourcedir}/%{github_name}-%{github_rev}.zip"
|
---|
52 | curl -sSL "%{github_url}/%{github_rev}.zip" -o "%{_sourcedir}/%{github_name}-%{github_rev}.zip"
|
---|
53 | unzip "%{_sourcedir}/%{github_name}-%{github_rev}.zip" -d ..
|
---|
54 | %endif
|
---|
55 |
|
---|
56 | %build
|
---|
57 | make PREFIX=%{_prefix} CC="gcc -idirafter %{_includedir}/os2tk45 -DOS2EMX_PLAIN_CHAR"
|
---|
58 |
|
---|
59 | %install
|
---|
60 | make PREFIX=%{_prefix} INSTALL=%{_bindir}/install DESTDIR=%{buildroot} install
|
---|
61 |
|
---|
62 | %clean
|
---|
63 | rm -rf %{buildroot}
|
---|
64 |
|
---|
65 | %files
|
---|
66 | %defattr(-,root,root)
|
---|
67 | %{_libdir}/*.dll
|
---|
68 |
|
---|
69 | %files devel
|
---|
70 | %defattr(-,root,root)
|
---|
71 | %{_includedir}/*.h
|
---|
72 | %{_libdir}/*_dll.*
|
---|
73 |
|
---|
74 | %files static
|
---|
75 | %defattr(-,root,root)
|
---|
76 | %exclude %{_libdir}/*_dll.*
|
---|
77 | %{_libdir}/*.*
|
---|
78 |
|
---|
79 | %changelog
|
---|
80 | * Thu Jan 28 2016 Dmitriy Kuminov <coding@dmik.org> 1.2.0-1
|
---|
81 | - Update to version 1.2.0 from vendor:
|
---|
82 | + uniaud: Fix device selection by index.
|
---|
83 | + uniaud: Improve volume control.
|
---|
84 | - Add .a libraries (for use with ld, e.g. in non-Zomf mode).
|
---|
85 |
|
---|
86 | * Wed Jul 1 2015 Dmitriy Kuminov <coding@dmik.org> 1.1.4-1
|
---|
87 | - Initial package for version 1.1.4.
|
---|