[packages/tinyalsa] - new

qboosh qboosh at pld-linux.org
Sat Jul 26 15:23:03 CEST 2014


commit 7d6cca333a54c4b6a7e111504f5abb0c0e306f2f
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Jul 26 15:28:17 2014 +0200

    - new

 tinyalsa-make.patch | 36 ++++++++++++++++++++++++
 tinyalsa.spec       | 80 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 116 insertions(+)
---
diff --git a/tinyalsa.spec b/tinyalsa.spec
new file mode 100644
index 0000000..06da54e
--- /dev/null
+++ b/tinyalsa.spec
@@ -0,0 +1,80 @@
+Summary:	Small library to interface with ALSA in the Linux kernel
+Summary(pl.UTF-8):	Mała biblioteka do współpracy z podsystemem ALSA w jądrze Linuksa
+Name:		tinyalsa
+Version:	0
+%define	snap	20140604
+Release:	0.%{snap}.1
+License:	BSD
+Group:		Libraries
+Source0:	https://github.com/tinyalsa/tinyalsa/archive/master/%{name}-%{snap}.tar.gz
+# Source0-md5:	1d1f052450936f4fa78d73244e25f871
+Patch0:		%{name}-make.patch
+URL:		https://github.com/tinyalsa/tinyalsa
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+tinyalsa is a small library to interface with ALSA in the Linux
+kernel. The aims are:
+- Provide a basic PCM and mixer API
+- If it's not absolutely needed, don't add it to the API
+- Avoid supporting complex and unnecessary operations that could be
+  dealt with at a higher level
+
+%description -l pl.UTF-8
+tinyalsa to mała biblioteka do współpracy z podsystemem ALSA w jądrze
+Linuksa. Jej cele to:
+- dostarczenie podstawowego API do PCM i miksera
+- jeśli coś nie jest absolutnie konieczne, nie należy dodawać tego do
+  API
+- unikanie wspierania złożonych i niepotrzebnych operacji, które można
+  obsłużyć na wyższym poziomie
+
+%package devel
+Summary:	Header files for tinyalsa library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki tinyalsa
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description devel
+Header files for tinyalsa library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki tinyalsa.
+
+%prep
+%setup -q -n tinyalsa-master
+%patch0 -p1
+
+%build
+%{__make} \
+	CC="%{__cc}" \
+	CFLAGS="%{rpmcflags} -fPIC -Wall -c" \
+	CPPFLAGS="%{rpmcppflags}" \
+	LDFLAGS="%{rpmldflags}"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_includedir}}
+
+install tinycap tinymix tinypcminfo tinyplay $RPM_BUILD_ROOT%{_bindir}
+install libtinyalsa.so $RPM_BUILD_ROOT%{_libdir}
+cp -pr include/tinyalsa $RPM_BUILD_ROOT%{_includedir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc README
+%attr(755,root,root) %{_bindir}/tinycap
+%attr(755,root,root) %{_bindir}/tinymix
+%attr(755,root,root) %{_bindir}/tinypcminfo
+%attr(755,root,root) %{_bindir}/tinyplay
+%attr(755,root,root) %{_libdir}/libtinyalsa.so
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/tinyalsa
diff --git a/tinyalsa-make.patch b/tinyalsa-make.patch
new file mode 100644
index 0000000..e267e69
--- /dev/null
+++ b/tinyalsa-make.patch
@@ -0,0 +1,36 @@
+--- tinyalsa-master/Makefile.orig	2014-06-03 21:56:15.000000000 +0200
++++ tinyalsa-master/Makefile	2014-07-26 13:01:17.790261446 +0200
+@@ -3,26 +3,27 @@
+ OBJECTS = mixer.o pcm.o
+ LIB = libtinyalsa.so
+ CROSS_COMPILE =
++CC = $(CROSS_COMPILE)gcc
+ 
+ all: $(LIB) tinyplay tinycap tinymix tinypcminfo
+ 
+ tinyplay: $(LIB) tinyplay.o
+-	$(CROSS_COMPILE)gcc tinyplay.o -L. -ltinyalsa -o tinyplay
++	$(CC) $(LDFLAGS) tinyplay.o -L. -ltinyalsa -o tinyplay
+ 
+ tinycap: $(LIB) tinycap.o
+-	$(CROSS_COMPILE)gcc tinycap.o -L. -ltinyalsa -o tinycap
++	$(CC) $(LDFLAGS) tinycap.o -L. -ltinyalsa -o tinycap
+ 
+ tinymix: $(LIB) tinymix.o
+-	$(CROSS_COMPILE)gcc tinymix.o -L. -ltinyalsa -o tinymix
++	$(CC) $(LDFLAGS) tinymix.o -L. -ltinyalsa -o tinymix
+ 
+ tinypcminfo: $(LIB) tinypcminfo.o
+-	$(CROSS_COMPILE)gcc tinypcminfo.o -L. -ltinyalsa -o tinypcminfo
++	$(CC) $(LDFLAGS) tinypcminfo.o -L. -ltinyalsa -o tinypcminfo
+ 
+ $(LIB): $(OBJECTS)
+-	$(CROSS_COMPILE)gcc -shared $(OBJECTS) -o $(LIB)
++	$(CC) $(LDFLAGS) -shared $(OBJECTS) -o $(LIB)
+ 
+ .c.o:
+-	$(CROSS_COMPILE)gcc $(CFLAGS) $< -I$(INC)
++	$(CC) $(CFLAGS) $(CPPFLAGS) $< -I$(INC)
+ 
+ clean:
+ 	-rm $(LIB) $(OBJECTS) tinyplay.o tinyplay tinycap.o tinycap \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/tinyalsa.git/commitdiff/7d6cca333a54c4b6a7e111504f5abb0c0e306f2f



More information about the pld-cvs-commit mailing list