]>
Commit | Line | Data |
---|---|---|
4447e848 JK |
1 | Summary: C++ library for easy access to ALSA PCM devices |
2 | Name: zita-alsa-pcmi | |
3 | Version: 0.2.0 | |
4 | Release: 1 | |
5 | License: GPL v3+ | |
6 | Group: Libraries | |
7 | Source0: http://kokkinizita.linuxaudio.org/linuxaudio/downloads/%{name}-%{version}.tar.bz2 | |
8 | # Source0-md5: 0ba4d59abce231056e2628d081124114 | |
9 | Patch0: ldconfig.patch | |
10 | URL: http://kokkinizita.linuxaudio.org/linuxaudio/ | |
11 | BuildRequires: alsa-lib-devel | |
12 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
13 | ||
14 | %description | |
15 | Zita-alsa-pcmi is the successor of clalsadrv. It provides easy access | |
16 | to ALSA PCM devices, taking care of the many functions required to | |
17 | open, initialise and use a hw: device in mmap mode, and providing | |
18 | floating point audio data. | |
19 | ||
20 | %package devel | |
21 | Summary: Header files for %{name} library | |
22 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki %{name} | |
23 | Group: Development/Libraries | |
24 | Requires: %{name} = %{version}-%{release} | |
25 | ||
26 | %description devel | |
27 | Header files for %{name} library. | |
28 | ||
29 | %description devel -l pl.UTF-8 | |
30 | Pliki nagłówkowe biblioteki %{name}. | |
31 | ||
32 | %package apps | |
33 | Summary: Sample applications files for %{name} library | |
34 | Summary(pl.UTF-8): Przykładowe aplikacje biblioteki %{name} | |
35 | Group: Applications/Sound | |
36 | Requires: %{name} = %{version}-%{release} | |
37 | ||
38 | %description apps | |
39 | Sample applications files for %{name} library. | |
40 | ||
41 | %description devel -l pl.UTF-8 | |
42 | Przykładowe aplikacje biblioteki %{name}. | |
43 | ||
44 | %prep | |
45 | %setup -q | |
46 | %patch0 -p1 | |
47 | ||
48 | %build | |
49 | cd libs | |
50 | %{__make} \ | |
51 | CXXFLAGS="%{rpmcxxflags}" \ | |
52 | CPPFLAGS="%{rpmcppflags}" \ | |
53 | LDFLAGS="%{rpmldflags}" | |
54 | ln -sf libzita-alsa-pcmi.so.* libzita-alsa-pcmi.so | |
55 | cd .. | |
56 | ||
57 | cd apps | |
58 | %{__make} \ | |
59 | CXXFLAGS="%{rpmcxxflags}" \ | |
60 | CPPFLAGS="%{rpmcppflags} -I../libs" \ | |
61 | LDFLAGS="%{rpmldflags} -L../libs" | |
62 | cd .. | |
63 | ||
64 | %install | |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | ||
67 | %{__make} -C libs install \ | |
68 | DESTDIR=$RPM_BUILD_ROOT \ | |
31c11120 JK |
69 | PREFIX=%{_prefix} \ |
70 | LIBDIR=%{_lib} | |
4447e848 JK |
71 | |
72 | %{__make} -C apps install \ | |
73 | DESTDIR=$RPM_BUILD_ROOT \ | |
74 | PREFIX=%{_prefix} | |
75 | ||
76 | %clean | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | ||
79 | %post -p /sbin/ldconfig | |
80 | %postun -p /sbin/ldconfig | |
81 | ||
82 | %files | |
83 | %defattr(644,root,root,755) | |
84 | %doc AUTHORS README | |
85 | %attr(755,root,root) %{_libdir}/lib%{name}.so.*.*.* | |
86 | %attr(755,root,root) %ghost %{_libdir}/lib%{name}.so.0 | |
87 | ||
88 | %files devel | |
89 | %defattr(644,root,root,755) | |
90 | %attr(755,root,root) %{_libdir}/lib%{name}.so | |
91 | %{_includedir}/%{name}.h | |
92 | ||
93 | %files apps | |
94 | %defattr(644,root,root,755) | |
95 | %attr(755,root,root) %{_bindir}/alsa_delay | |
96 | %attr(755,root,root) %{_bindir}/alsa_loopback |