source: spec/trunk/SPECS/libkai.spec@ 1010

Last change on this file since 1010 was 650, checked in by dmik, 10 years ago

spec: libkai: Release 1.2.0-1.

File size: 2.5 KB
Line 
1# The default OS/2 Toolkit path, use --define to override on the command line
2Summary: K Audio Interface library for OS/2 multimedia subsystem
3Name: libkai
4Version: 1.2.0
5Release: 1%{?dist}
6License: LGPLv2+
7Group: System Environment/Libraries
8Vendor: bww bitwise works GmbH
9URL: 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
15Source: %{github_name}-%{github_rev}.zip
16
17BuildRequires: gcc make curl zip
18
19BuildRequires: os2tk45-headers os2tk45-libs
20
21%description
22K Audio Interface is a frontend library that simplifies access to OS/2
23audio hardware making it easier to write programs that play sounds.
24Currently, it supports playing sounds through the standard OS/2
25MMPM/DART subsystem and through the UNIAUD driver directly.
26
27%package devel
28Summary: K Audio Interface developer package
29Group: Development/Libraries
30Requires: %{name} = %{version}-%{release}
31
32%description devel
33Contains headers and libraries necessary to compile audio-enabled
34applications that use K Audio Interface.
35
36%package static
37Summary: K Audio Interface static library
38Group: Development/Libraries
39Requires: %{name}-devel = %{version}-%{release}
40
41%description static
42Contains 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
51rm -f "%{_sourcedir}/%{github_name}-%{github_rev}.zip"
52curl -sSL "%{github_url}/%{github_rev}.zip" -o "%{_sourcedir}/%{github_name}-%{github_rev}.zip"
53unzip "%{_sourcedir}/%{github_name}-%{github_rev}.zip" -d ..
54%endif
55
56%build
57make PREFIX=%{_prefix} CC="gcc -idirafter %{_includedir}/os2tk45 -DOS2EMX_PLAIN_CHAR"
58
59%install
60make PREFIX=%{_prefix} INSTALL=%{_bindir}/install DESTDIR=%{buildroot} install
61
62%clean
63rm -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.
Note: See TracBrowser for help on using the repository browser.