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