packages: alsa-lib/alsa-lib.spec - up to 1.0.25

arekm arekm at pld-linux.org
Fri Jan 27 08:29:59 CET 2012


Author: arekm                        Date: Fri Jan 27 07:29:59 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- up to 1.0.25

---- Files affected:
packages/alsa-lib:
   alsa-lib.spec (1.158 -> 1.159) 

---- Diffs:

================================================================
Index: packages/alsa-lib/alsa-lib.spec
diff -u packages/alsa-lib/alsa-lib.spec:1.158 packages/alsa-lib/alsa-lib.spec:1.159
--- packages/alsa-lib/alsa-lib.spec:1.158	Tue Sep 27 18:39:19 2011
+++ packages/alsa-lib/alsa-lib.spec	Fri Jan 27 08:29:53 2012
@@ -13,12 +13,12 @@
 Summary(ru.UTF-8):	Библиотека API для работы с драйвером ALSA
 Summary(uk.UTF-8):	Бібліотека API для роботи з драйвером ALSA
 Name:		alsa-lib
-Version:	1.0.24.1
-Release:	2
+Version:	1.0.25
+Release:	1
 License:	LGPL v2.1+
 Group:		Libraries
 Source0:	ftp://ftp.alsa-project.org/pub/lib/%{name}-%{version}.tar.bz2
-# Source0-md5:	7cc05f25e1d5b65da8fb3fdcd540f226
+# Source0-md5:	06fe5819020c6684b991dcffc5471304
 Source1:	%{name}-modprobe.conf
 Source2:	%{name}-asound.conf
 URL:		http://www.alsa-project.org/
@@ -191,17 +191,34 @@
 
 %build
 %{__libtoolize}
-%{__aclocal}
+%{__aclocal} -I m4
 %{__autoconf}
 %{__autoheader}
 %{__automake}
-%configure \
+configure_opts="\
 	--disable-silent-rules \
 	%{!?with_python:--disable-python} \
-	%{?with_resmgr:--enable-resmgr} \
-	%{?with_static_libs:--enable-static}
+	%{?with_resmgr:--enable-resmgr}
+"
+
+%if %{with static_libs}
+%configure $configure_opts \
+	--disable-shared \
+	--enable-static
+%{__make}
+install -d static
+%{__make} install \
+	DESTDIR=$(pwd)/static
+%{__make} clean
+%endif
+
+%configure $configure_opts \
+	--enable-shared \
+	--disable-static
 
 %{__make}
+
+
 %{?with_apidocs:%{__make} doc}
 
 %install
@@ -211,6 +228,8 @@
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
+install static/%{_libdir}/libasound.a $RPM_BUILD_ROOT%{_libdir}
+
 mv -f $RPM_BUILD_ROOT%{_libdir}/libasound.so.* $RPM_BUILD_ROOT/%{_lib}
 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libasound.so
 ln -sf /%{_lib}/$(cd $RPM_BUILD_ROOT/%{_lib}; echo libasound.so.*.*) \
@@ -277,6 +296,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.159  2012/01/27 07:29:53  arekm
+- up to 1.0.25
+
 Revision 1.158  2011/09/27 16:39:19  baggins
 - rel 2
 - move libsound to /lib for /sbin/alsactl
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/alsa-lib/alsa-lib.spec?r1=1.158&r2=1.159&f=u



More information about the pld-cvs-commit mailing list