]>
Commit | Line | Data |
---|---|---|
1 | Summary: Advanced Linux Sound Architecture - OSS compatibility wrapper library & script | |
2 | Summary(pl.UTF-8): Advanced Linux Sound Architecture - biblioteka i skrypt kompatybilności z OSS | |
3 | Name: alsa-oss | |
4 | Version: 1.1.8 | |
5 | Release: 1 | |
6 | License: GPL v2+ | |
7 | Group: Applications/Sound | |
8 | Source0: ftp://ftp.alsa-project.org/pub/oss-lib/%{name}-%{version}.tar.bz2 | |
9 | # Source0-md5: 9ec4bb783fdce19032aace086d65d874 | |
10 | Patch0: %{name}-path.patch | |
11 | Patch1: alsa-oss-libdl.patch | |
12 | URL: http://www.alsa-project.org/ | |
13 | BuildRequires: alsa-lib-devel >= 1.0.0 | |
14 | BuildRequires: autoconf >= 2.59 | |
15 | BuildRequires: automake | |
16 | BuildRequires: libtool | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
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. | |
23 | ||
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. | |
28 | ||
29 | %package devel | |
30 | Summary: ossredir header file and static library | |
31 | Summary(pl.UTF-8): Plik nagłówkowy i biblioteka statyczka ossredir | |
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 | ||
41 | %description devel -l pl.UTF-8 | |
42 | Celem tego małego kawałka kodu jest przekierowanie wywołań OSS (Open | |
43 | Sound System) do dowolnej biblioteki dzielonej, aby zapobiec narzutowi | |
44 | wywołanemu przez wrapper LD_PRELOAD. Szczególnie przechwytywanie | |
45 | select() i poll() powoduje duży narzut. | |
46 | ||
47 | %prep | |
48 | %setup -q | |
49 | %patch0 -p1 | |
50 | %patch1 -p1 | |
51 | ||
52 | %build | |
53 | %{__libtoolize} | |
54 | %{__aclocal} | |
55 | %{__autoconf} | |
56 | %{__automake} | |
57 | %configure | |
58 | ||
59 | %{__make} | |
60 | ||
61 | %install | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | %{__make} install \ | |
65 | DESTDIR=$RPM_BUILD_ROOT | |
66 | ||
67 | # useless (preloadable libraries) | |
68 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib{alsatoss,aoss}.{la,a} | |
69 | ||
70 | %clean | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
73 | %post -p /sbin/ldconfig | |
74 | %postun -p /sbin/ldconfig | |
75 | ||
76 | %files | |
77 | %defattr(644,root,root,755) | |
78 | %attr(755,root,root) %{_bindir}/aoss | |
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 | |
85 | %{_mandir}/man1/aoss.1* | |
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 |