commit 4447e848e85d0fa8cf39a3f293292a0fe1d928d2
Author: Jacek Konieczny <jaj...@jajcus.net>
Date:   Sat Oct 15 11:42:28 2016 +0200

    new package

 ldconfig.patch      | 12 +++++++
 zita-alsa-pcmi.spec | 95 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 107 insertions(+)
---
diff --git a/zita-alsa-pcmi.spec b/zita-alsa-pcmi.spec
new file mode 100644
index 0000000..35178ce
--- /dev/null
+++ b/zita-alsa-pcmi.spec
@@ -0,0 +1,95 @@
+Summary:       C++ library for easy access to ALSA PCM devices
+Name:          zita-alsa-pcmi
+Version:       0.2.0
+Release:       1
+License:       GPL v3+
+Group:         Libraries
+Source0:       
http://kokkinizita.linuxaudio.org/linuxaudio/downloads/%{name}-%{version}.tar.bz2
+# Source0-md5: 0ba4d59abce231056e2628d081124114
+Patch0:                ldconfig.patch
+URL:           http://kokkinizita.linuxaudio.org/linuxaudio/
+BuildRequires: alsa-lib-devel
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Zita-alsa-pcmi is the successor of clalsadrv. It provides easy access
+to ALSA PCM devices, taking care of the many functions required to
+open, initialise and use a hw: device in mmap mode, and providing
+floating point audio data.
+
+%package devel
+Summary:       Header files for %{name} library
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki %{name}
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+
+%description devel
+Header files for %{name} library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki %{name}.
+
+%package apps
+Summary:       Sample applications files for %{name} library
+Summary(pl.UTF-8):     Przykładowe aplikacje biblioteki %{name}
+Group:         Applications/Sound
+Requires:      %{name} = %{version}-%{release}
+
+%description apps
+Sample applications files for %{name} library.
+
+%description devel -l pl.UTF-8
+Przykładowe aplikacje biblioteki %{name}.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+cd libs
+%{__make} \
+       CXXFLAGS="%{rpmcxxflags}" \
+       CPPFLAGS="%{rpmcppflags}" \
+       LDFLAGS="%{rpmldflags}"
+ln -sf libzita-alsa-pcmi.so.* libzita-alsa-pcmi.so
+cd ..
+
+cd apps
+%{__make} \
+       CXXFLAGS="%{rpmcxxflags}" \
+       CPPFLAGS="%{rpmcppflags} -I../libs" \
+       LDFLAGS="%{rpmldflags} -L../libs"
+cd ..
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} -C libs install \
+       DESTDIR=$RPM_BUILD_ROOT \
+       PREFIX=%{_prefix}
+
+%{__make} -C apps install \
+       DESTDIR=$RPM_BUILD_ROOT \
+       PREFIX=%{_prefix}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS README
+%attr(755,root,root) %{_libdir}/lib%{name}.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/lib%{name}.so.0
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/lib%{name}.so
+%{_includedir}/%{name}.h
+
+%files apps
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/alsa_delay
+%attr(755,root,root) %{_bindir}/alsa_loopback
diff --git a/ldconfig.patch b/ldconfig.patch
new file mode 100644
index 0000000..f25a708
--- /dev/null
+++ b/ldconfig.patch
@@ -0,0 +1,12 @@
+diff -dur zita-alsa-pcmi-0.2.0.orig/libs/Makefile 
zita-alsa-pcmi-0.2.0/libs/Makefile
+--- zita-alsa-pcmi-0.2.0.orig/libs/Makefile    2012-03-20 21:23:07.000000000 
+0100
++++ zita-alsa-pcmi-0.2.0/libs/Makefile 2016-10-15 11:35:18.419264378 +0200
+@@ -52,7 +52,7 @@
+       install -Dm 644 $(ZITA-ALSA-PCMI_H)   
$(DESTDIR)$(PREFIX)/include/$(ZITA-ALSA-PCMI_H)
+       install -Dm 644 $(ZITA-ALSA-PCMI_MIN) 
$(DESTDIR)$(PREFIX)/$(LIBDIR)/$(ZITA-ALSA-PCMI_MIN)
+       ln -sf $(ZITA-ALSA-PCMI_MIN) 
$(DESTDIR)$(PREFIX)/$(LIBDIR)/$(ZITA-ALSA-PCMI_SO)
+-      ldconfig
++      /sbin/ldconfig -n -N $(DESTDIR)$(PREFIX)/$(LIBDIR)
+ 
+ uninstall:
+       rm -rf $(DESTDIR)$(PREFIX)/include/zita-alsa-pcmi.h
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/zita-alsa-pcmi.git/commitdiff/4447e848e85d0fa8cf39a3f293292a0fe1d928d2

_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to