]> git.pld-linux.org Git - packages/alsa-lib.git/blobdiff - alsa-lib.spec
- release 3
[packages/alsa-lib.git] / alsa-lib.spec
index 9178b138a4b881e6e0df4733296ed4e1317ffd9d..0bba56726075d1f9f225c1b0fbc25dc906f0b75a 100644 (file)
@@ -1,9 +1,10 @@
 #
 # Conditional build:
 %bcond_without static_libs     # don't build static library
+%bcond_without apidocs         # do not build and package API docs
 %bcond_without python          # smixer-python binding
 %bcond_with    resmgr          # Resource Manager support
-#
+
 Summary:       Advanced Linux Sound Architecture (ALSA) - Library
 Summary(es.UTF-8):     Advanced Linux Sound Architecture (ALSA) - Biblioteca
 Summary(pl.UTF-8):     Advanced Linux Sound Architecture (ALSA) - Biblioteka
@@ -11,22 +12,28 @@ Summary(pt_BR.UTF-8):       Biblioteca para o ALSA (Advanced Linux Sound Architecture)
 Summary(ru.UTF-8):     Библиотека API для работы с драйвером ALSA
 Summary(uk.UTF-8):     Бібліотека API для роботи з драйвером ALSA
 Name:          alsa-lib
-Version:       1.0.17
-Release:       1
+Version:       1.0.23
+Release:       3
 License:       LGPL v2.1+
 Group:         Libraries
 Source0:       ftp://ftp.alsa-project.org/pub/lib/%{name}-%{version}.tar.bz2
-# Source0-md5: 9bbbdc502478cdc75074c9ba42c385b3
+# Source0-md5: f48b50421d8a69d2d806d9c47e534f0d
+Source1:       %{name}-modprobe.conf
+Source2:       %{name}-asound.conf
 URL:           http://www.alsa-project.org/
 BuildRequires: alsa-driver-devel
 BuildRequires: autoconf >= 2.59
 BuildRequires: automake
 BuildRequires: doxygen
 BuildRequires: libtool
-%{?with_python:BuildRequires:  python-devel >= 1:2.4}
+%if %{with python}
+BuildRequires: python-devel >= 1:2.4
+BuildRequires: python-modules
+%endif
 %{?with_resmgr:BuildRequires:  resmgr-devel}
 BuildConflicts:        alsa-lib <= 0.4.0
 Obsoletes:     alsa-libs
+Conflicts:     alsa-utils < 1.0.20-3
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -155,6 +162,17 @@ Bibliotecas estáticas para desenvolvimento com a alsa-lib
 %description static -l uk.UTF-8
 Статична бібліотека API для роботи з драйвером ALSA.
 
+%package apidocs
+Summary:       ALSA Library API documentation
+Summary(pl.UTF-8):     Dokumentacja API biblioteki ALSA
+Group:         Documentation
+
+%description apidocs
+API and internal documentation for ALSA Library.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API biblioteki ALSA.
+
 %package smixer-python
 Summary:       Python binding module for ALSA Mixer Interface
 Summary(pl.UTF-8):     Moduł wiązania Pythona dla interfejsu miksera architektury ALSA
@@ -177,21 +195,24 @@ Moduł wiązania Pythona dla interfejsu miksera architektury ALSA.
 %{__autoheader}
 %{__automake}
 %configure \
-       --enable-static \
+       --disable-silent-rules \
        %{!?with_python:--disable-python} \
        %{?with_resmgr:--enable-resmgr} \
-       %{!?with_static_libs:--disable-static}
+       %{?with_static_libs:--enable-static}
 
 %{__make}
-%{__make} doc
+%{?with_apidocs:%{__make} doc}
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir}/alsa,/etc/modprobe.d}
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
 install -D utils/alsa.m4 $RPM_BUILD_ROOT%{_aclocaldir}/alsa.m4
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/modprobe.d/alsa-base.conf
+install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/asound.conf
 
 rm -f $RPM_BUILD_ROOT%{_libdir}/alsa-lib/smixer/*.{a,la}
 
@@ -213,10 +234,12 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_libdir}/alsa-lib/smixer/smixer-hda.so
 %attr(755,root,root) %{_libdir}/alsa-lib/smixer/smixer-sbase.so
 %{_datadir}/alsa
+%dir %{_sysconfdir}/alsa
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asound.conf
+%config(noreplace) %verify(not md5 mtime size) /etc/modprobe.d/alsa-base.conf
 
 %files devel
 %defattr(644,root,root,755)
-%doc doc/doxygen/html/*
 %attr(755,root,root) %{_libdir}/libasound.so
 %{_libdir}/libasound.la
 %{_includedir}/sys/asoundlib.h
@@ -230,6 +253,12 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/libasound.a
 %endif
 
+%if %{with apidocs}
+%files apidocs
+%defattr(644,root,root,755)
+%doc doc/doxygen/html/*
+%endif
+
 %if %{with python}
 %files smixer-python
 %defattr(644,root,root,755)
This page took 0.071671 seconds and 4 git commands to generate.