From 25973b68d585f6fb7b62639a2f081513a2019669 Mon Sep 17 00:00:00 2001 From: Yan Yin Date: Wed, 14 Mar 2012 15:46:59 +0800 Subject: [PATCH] update for beta universally --- packaging/alsa-lib.spec | 85 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 packaging/alsa-lib.spec diff --git a/packaging/alsa-lib.spec b/packaging/alsa-lib.spec new file mode 100644 index 0000000..53cd8dc --- /dev/null +++ b/packaging/alsa-lib.spec @@ -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 -- 2.7.4