%define fname alsa %define name alsa-lib %define version 0.5.10b %define release 1mdk %define lib_name_orig libalsa %define lib_major 1 %define lib_name %{lib_name_orig}%{lib_major} %define url ftp://ftp.alsa-project.org/pub/lib/ Summary: Advanced Linux Sound Architecture (ALSA) lib Name: %{name} Version: %{version} Release: %{release} Source: %{url}/%{name}-%{version}.tar.bz2 Url: http://www.alsa-project.org License: GPL BuildRoot: %{_tmppath}/%{name}-%{version}-root Group: System/Kernel and hardware Requires: kernel >= 2.2.15 %description Advanced Linux Sound Architecture (ALSA) libs. Modularized architecture with support for a large range of ISA and PCI cards. Fully compatible with OSS/Lite (kernel sound drivers), but contains many enhanced features. %package -n %{lib_name} Summary: Main library for %{name} Group: System/Libraries Provides: %{name} = %{version}-%{release} Obsoletes: alsa-lib %description -n %{lib_name} Advanced Linux Sound Architecture (ALSA) libs. Modularized architecture with support for a large range of ISA and PCI cards. Fully compatible with OSS/Lite (kernel sound drivers), but contains many enhanced features. %package -n %{lib_name}-devel Summary: Devel file for Advanced Linux Sound Architecture (ALSA) library License: GPL Group: Development/C Requires: %{lib_name} = %{version} Provides: %{lib_name_orig}-devel = %{version}-%{release}, alsa-lib-devel Obsoletes: alsa-lib-devel %description -n %{lib_name}-devel Advanced Linux Sound Architecture (ALSA) libs. Modularized architecture with support for a large range of ISA and PCI cards. Fully compatible with OSS/Lite (kernel sound drivers), but contains many enhanced features. This is the devel file to compile alsa applications. %prep %setup -q %build %configure make CFLAGS="$RPM_OPT_FLAGS" %install mkdir -p $RPM_BUILD_ROOT%{_includedir}/sys mkdir -p $RPM_BUILD_ROOT%{_libdir} %makeinstall # (cd $RPM_BUILD_ROOT%{_libdir}; \ # mv libasound-%{version}.so libasound.so.%{version}; \ # ln -s libasound.so.%{version} libasound.so.0; \ # ldconfig -n .; \ # ) %clean rm -rf $RPM_BUILD_ROOT %post -n %{lib_name} -p /sbin/ldconfig %postun -n %{lib_name} -p /sbin/ldconfig %files -n %{lib_name} %defattr(-, root, root) %doc COPYING ChangeLog %{_libdir}/*.so.* %files -n %{lib_name}-devel %defattr(-,root,root) %doc COPYING %{_includedir}/sys/asoundlib.h %{_datadir}/aclocal/alsa.m4 %{_libdir}/*.a %{_libdir}/*.la %{_libdir}/*.so %changelog * Tue Jan 29 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 0.5.10b-1mdk - sanitize (license, url, ...) - new release * Fri Sep 28 2001 Chmouel Boudjnah <chmouel@mandrakesoft.com> 0.5.10-3mdk - Split-up librariries. - Fix rpmlint errors. * Wed Dec 13 2000 Jeff Garzik <jgarzik@mandrakesoft.com> 0.5.10-2mdk - Remove ExcludeArch, ALSA is portable * Thu Dec 7 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 0.5.10-1mdk - 0.5.10. * Thu Oct 24 2000 David BAUDENS <baudens@mandrakesoft.com> 0.5.9-2mdk - ExcludeArch: ppc - Fix typo in description * Wed Aug 23 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 0.5.9-1mdk - 0.5.9. * Sun Aug 13 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 0.5.8-3mdk - added .so file to the devel package reported by Stefan van der Eijk <s.vandereijk@chello.nl> - macroswergwerjations * Wed Jul 19 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 0.5.8-2mdk - BM. * Tue Jun 27 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 0.5.8-1mdk - 0.5.8. - macrozifications. * Fri May 19 2000 Francis Galiegue <fg@mandrakesoft.com> 0.5.7-6mdk - ExcludeArch sparcs too * Wed May 17 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 0.5.7-5mdk - ExcludeArch: alpha * Sun Apr 23 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 0.5.7-4mdk - Clean up various titi-sucks. - 0.5.7. - Split lib and devel package. * Thu Apr 20 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 0.5.5-3mdk - fixed group * Thu Mar 09 2000 Thierry Vignaud <tvignaud@mandrakesoft.com> - add requires on alsa since Lord DrkChm has splitten it again from kernel * Thu Mar 09 2000 Thierry Vignaud <tvignaud@mandrakesoft.com> - make the alsa-lib package again, hoping Lord DarkChmou won't want to move it betwenn contrib and main cd and loose it again :-) - update to alsa-lib-0.5.5 * Thu Dec 23 1999 Thierry Vignaud <tvignaud@mandrakesoft.com> - build release for Oxygen as lord Chmou request - removed from contrib - alter requires from alsa-driver to kernel as Lord Chmou integrate it into the mainstream kernel - Updated to 0.4.1e * Mon Aug 23 1999 Thierry Vignaud <tvignaud@mandrakesoft.com> - initial release