]>
Commit | Line | Data |
---|---|---|
e0a29c17 | 1 | Summary: Advanced Linux Sound Architecture - OSS compatibility wrapper library & script |
c51558f4 | 2 | Summary(pl.UTF-8): Advanced Linux Sound Architecture - biblioteka i skrypt kompatybilności z OSS |
aca608fe | 3 | Name: alsa-oss |
2a3b0804 | 4 | Version: 1.0.15 |
ada6f012 | 5 | Release: 2 |
6003b9d2 | 6 | License: GPL v2+ |
aca608fe | 7 | Group: Applications/Sound |
7de3ef11 | 8 | Source0: ftp://ftp.alsa-project.org/pub/oss-lib/%{name}-%{version}.tar.bz2 |
2a3b0804 | 9 | # Source0-md5: 49fb5fbae8bf955b248e46ff9c9a2aa1 |
ada6f012 | 10 | Patch0: %{name}-path.patch |
aca608fe | 11 | URL: http://www.alsa-project.org/ |
12 | BuildRequires: alsa-lib-devel >= 1.0.0 | |
13 | BuildRequires: autoconf | |
14 | BuildRequires: automake | |
15 | BuildRequires: libtool | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %description | |
e0a29c17 JB |
19 | This package contains the ALSA -> OSS compatibility library and simple |
20 | wrapper script which facilitates its use. This script just sets the | |
21 | appropriate LD_PRELOAD path and then runs the command. | |
aca608fe | 22 | |
1ef74edf JR |
23 | %description -l pl.UTF-8 |
24 | Ten pakiet zawiera bibliotekę kompatybilności ALSA -> OSS oraz prosty | |
25 | wrapper który ułatwia jej użycie, po prostu ustawiając odpowiednie | |
26 | LD_PRELOAD i uruchamiając polecenie. | |
aca608fe | 27 | |
ad44c427 JB |
28 | %package devel |
29 | Summary: ossredir header file and static library | |
c51558f4 | 30 | Summary(pl.UTF-8): Plik nagłówkowy i biblioteka statyczka ossredir |
ad44c427 JB |
31 | Group: Development/Libraries |
32 | # doesn't require base on build time (only at runtime...) | |
33 | ||
34 | %description devel | |
35 | The purpose of this little piece of code is to redirect OSS (Open | |
36 | Sound System) calls to any shared library to avoid overhead caused | |
37 | with the LD_PRELOAD wrapper. Especially, wrapping select() and poll() | |
38 | functions cause big overhead. | |
39 | ||
1ef74edf JR |
40 | %description devel -l pl.UTF-8 |
41 | Celem tego małego kawałka kodu jest przekierowanie wywołań OSS (Open | |
ad44c427 | 42 | Sound System) do dowolnej biblioteki dzielonej, aby zapobiec narzutowi |
1ef74edf JR |
43 | wywołanemu przez wrapper LD_PRELOAD. Szczególnie przechwytywanie |
44 | select() i poll() powoduje duży narzut. | |
ad44c427 | 45 | |
aca608fe | 46 | %prep |
7de3ef11 | 47 | %setup -q |
ada6f012 | 48 | %patch0 -p1 |
aca608fe | 49 | |
50 | %build | |
9ea8ce01 | 51 | cp -f /usr/share/automake/config.sub . |
ad44c427 | 52 | %configure |
aca608fe | 53 | |
54 | %{__make} | |
55 | ||
56 | %install | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %{__make} install \ | |
60 | DESTDIR=$RPM_BUILD_ROOT | |
61 | ||
ad44c427 JB |
62 | # useless (preloadable libraries) |
63 | rm -f $RPM_BUILD_ROOT%{_libdir}/lib{alsatoss,aoss}.{la,a} | |
e0a29c17 | 64 | |
aca608fe | 65 | %clean |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
e0a29c17 JB |
68 | %post -p /sbin/ldconfig |
69 | %postun -p /sbin/ldconfig | |
70 | ||
aca608fe | 71 | %files |
72 | %defattr(644,root,root,755) | |
73 | %attr(755,root,root) %{_bindir}/aoss | |
6003b9d2 JB |
74 | %attr(755,root,root) %{_libdir}/libalsatoss.so.*.*.* |
75 | %attr(755,root,root) %ghost %{_libdir}/libalsatoss.so.0 | |
76 | %attr(755,root,root) %{_libdir}/libalsatoss.so | |
77 | %attr(755,root,root) %{_libdir}/libaoss.so.*.*.* | |
78 | %attr(755,root,root) %ghost %{_libdir}/libaoss.so.0 | |
79 | %attr(755,root,root) %{_libdir}/libaoss.so | |
aca608fe | 80 | %{_mandir}/man1/aoss.1* |
ad44c427 JB |
81 | |
82 | %files devel | |
83 | %defattr(644,root,root,755) | |
84 | %doc oss-redir/README | |
85 | %{_libdir}/libossredir.a | |
86 | %{_libdir}/libossredir.la | |
87 | %{_includedir}/oss-redir.h |