-Summary: Advanced Linux Sound Architecture (ALSA) OSS compatibility wrapper library & script
-Summary(pl): Advanced Linux Sound Architecture (ALSA) - biblioteka i skrypt kompatibilno¶ci z OSS
+Summary: Advanced Linux Sound Architecture - OSS compatibility wrapper library & script
+Summary(pl.UTF-8): Advanced Linux Sound Architecture - biblioteka i skrypt kompatybilności z OSS
Name: alsa-oss
-%define _pre rc2
-Version: 1.0.0
-Release: 0.%{_pre}.2
+Version: 1.0.14
+Release: 1
License: GPL
Group: Applications/Sound
-Source0: ftp://ftp.alsa-project.org/pub/oss-lib/%{name}-%{version}%{_pre}.tar.bz2
-# Source0-md5: 50cc9bd5c36149aacd0ca2d0bcb55d0b
+Source0: ftp://ftp.alsa-project.org/pub/oss-lib/%{name}-%{version}.tar.bz2
+# Source0-md5: a24475b978982ff8cb2f25be793c6b83
URL: http://www.alsa-project.org/
BuildRequires: alsa-lib-devel >= 1.0.0
BuildRequires: autoconf
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-OSS compatibility library and simple wrapper script which facilitates
-it's use. It just sets the appropriate LD_PRELOAD path and then runs
-the command.
+This package contains the ALSA -> OSS compatibility library and simple
+wrapper script which facilitates its use. This script just sets the
+appropriate LD_PRELOAD path and then runs the command.
+%description -l pl.UTF-8
+Ten pakiet zawiera bibliotekę kompatybilności ALSA -> OSS oraz prosty
+wrapper który ułatwia jej użycie, po prostu ustawiając odpowiednie
+LD_PRELOAD i uruchamiając polecenie.
-%description -l pl
-Bibliteka kompatybilno¶ci z OSS i prosty wrapper który u³atwia jej
-u¿ycie, który po prostu ustawia odpowiednie LD_PRELOAD po czym
-uruchamia komendê.
+%package devel
+Summary: ossredir header file and static library
+Summary(pl.UTF-8): Plik nagłówkowy i biblioteka statyczka ossredir
+Group: Development/Libraries
+# doesn't require base on build time (only at runtime...)
+%description devel
+The purpose of this little piece of code is to redirect OSS (Open
+Sound System) calls to any shared library to avoid overhead caused
+with the LD_PRELOAD wrapper. Especially, wrapping select() and poll()
+functions cause big overhead.
+%description devel -l pl.UTF-8
+Celem tego małego kawałka kodu jest przekierowanie wywołań OSS (Open
+Sound System) do dowolnej biblioteki dzielonej, aby zapobiec narzutowi
+wywołanemu przez wrapper LD_PRELOAD. Szczególnie przechwytywanie
+select() i poll() powoduje duży narzut.
%prep
-%setup -q -n %{name}-%{version}%{_pre}
-%configure
+%setup -q
%build
+cp -f /usr/share/automake/config.sub .
+%configure
%{__make}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+# useless (preloadable libraries)
+rm -f $RPM_BUILD_ROOT%{_libdir}/lib{alsatoss,aoss}.{la,a}
+
%clean
rm -rf $RPM_BUILD_ROOT
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
%files
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/aoss
-
+%attr(755,root,root) %{_libdir}/lib*.so.*.*.*
+%attr(755,root,root) %{_libdir}/lib*.so
%{_mandir}/man1/aoss.1*
-%{_libdir}/*.la
-%{_libdir}/*.so.*
+
+%files devel
+%defattr(644,root,root,755)
+%doc oss-redir/README
+%{_libdir}/libossredir.a
+%{_libdir}/libossredir.la
+%{_includedir}/oss-redir.h