update for beta universally
authorYan Yin <yan.yin@intel.com>
Wed, 14 Mar 2012 07:46:59 +0000 (15:46 +0800)
committerYan Yin <yan.yin@intel.com>
Wed, 14 Mar 2012 07:46:59 +0000 (15:46 +0800)
packaging/alsa-lib.spec [new file with mode: 0644]

diff --git a/packaging/alsa-lib.spec b/packaging/alsa-lib.spec
new file mode 100644 (file)
index 0000000..53cd8dc
--- /dev/null
@@ -0,0 +1,85 @@
+Name:       alsa-lib
+Summary:    The Advanced Linux Sound Architecture (ALSA) library
+Version:    1.0.21a
+Release:    3.1
+Group:      System/Libraries
+License:    LGPLv2+
+URL:        http://www.alsa-project.org/
+Source0:    ftp://ftp.alsa-project.org/pub/lib/alsa-lib-%{version}.tar.gz
+
+
+%description
+The Advanced Linux Sound Architecture (ALSA) provides audio and MIDI
+functionality to the Linux operating system.
+
+This package includes the ALSA runtime libraries to simplify application
+programming and provide higher level functionality as well as support for
+the older OSS API, providing binary compatibility for most OSS programs.
+
+
+
+%package -n libasound
+Summary:    ALSA Library package for multimedia framework middleware package
+Group:      Development/Libraries
+Requires(post): /sbin/ldconfig
+Requires(postun): /sbin/ldconfig
+
+%description -n libasound
+ALSA Library package for multimedia framework middleware package
+
+
+%package -n libasound-devel
+Summary:    ALSA Library package for multimedia framework middleware package
+Group:      Development/Libraries
+Requires:   libasound
+
+%description -n libasound-devel
+ALSA Library package for multimedia framework middleware package
+
+
+%prep
+%setup -q -n %{name}-%{version}
+
+%build
+export CFLAGS+=" -fPIC" 
+export LDFLAGS+=" -Wl,--warn-unresolved-symbols -Wl,--hash-style=both -Wl,--as-needed"
+chmod +x autogen.sh
+
+%autogen
+%ifarch %arm
+%configure \
+    --with-alsa-devdir=/dev/snd \
+    --disable-alisp \
+    --disable-seq \
+    --disable-rawmidi \
+    --disable-python \
+    --with-gnu-ld \
+    --with-pcm-plugins=rate,linear,plug,dmix,dsnoop,asym,mmap,ioplug,hooks
+%else
+%configure
+%endif
+
+make %{?jobs:-j%jobs}
+
+%install
+rm -rf %{buildroot}
+%make_install
+
+rm -f %{buildroot}/%{_bindir}/aserver
+
+%post -n libasound -p /sbin/ldconfig
+
+%postun -n libasound -p /sbin/ldconfig
+
+%files
+
+%files -n libasound
+%{_libdir}/lib*.so.*
+%{_libdir}/alsa-lib/smixer/*.so
+%{_datadir}/alsa/*
+
+%files -n libasound-devel
+%{_includedir}/*
+%{_libdir}/lib*.so
+%{_libdir}/pkgconfig/*
+%{_datadir}/aclocal