From d8eb54e15d9cfdee80cf17e1a3d8896b6d5121cacc41fbb0ae41b54fb311d013 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Wed, 19 Jul 2017 14:07:22 +0000 Subject: [PATCH] Accepting request 511410 from home:13ilya:branches:multimedia:libs 0.1.10 OBS-URL: https://build.opensuse.org/request/show/511410 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/apulse?expand=0&rev=17 --- apulse | 9 +++++++++ apulse.changes | 6 ++++++ apulse.conf | 2 ++ apulse.spec | 30 ++++++++++++++++-------------- baselibs.conf | 3 +-- 5 files changed, 34 insertions(+), 16 deletions(-) create mode 100644 apulse create mode 100644 apulse.conf diff --git a/apulse b/apulse new file mode 100644 index 0000000..4b72bdd --- /dev/null +++ b/apulse @@ -0,0 +1,9 @@ +#!/bin/sh + +[ -f '/etc/apulse.conf' -a -r '/etc/apulse.conf' ] && . '/etc/apulse.conf'; +[ -f $HOME'/.apulse.conf' -a -r $HOME'/.apulse.conf' ] && . $HOME'/.apulse.conf'; + +APULSE_CAPTURE_DEVICE=${APULSE_CAPTURE_DEVICE:='plughw:0,0'}; +APULSE_PLAYBACK_DEVICE=${APULSE_PLAYBACK_DEVICE:='default'}; + +LD_LIBRARY_PATH='/usr/$LIB/apulse'${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} APULSE_CAPTURE_DEVICE="$APULSE_CAPTURE_DEVICE" APULSE_PLAYBACK_DEVICE="$APULSE_PLAYBACK_DEVICE" "$@"; diff --git a/apulse.changes b/apulse.changes index 5e1801e..2803c1a 100644 --- a/apulse.changes +++ b/apulse.changes @@ -1,3 +1,9 @@ +Wed Jul 19 11:59:16 UTC 2017 - ilya@ilya.pp.ua + +- Add files: + * apulse.conf + * apulse (using apulse.conf and autoload 32-bit or 64-bit library) + ------------------------------------------------------------------- Tue May 9 16:45:47 UTC 2017 - sor.alexei@meowr.ru diff --git a/apulse.conf b/apulse.conf new file mode 100644 index 0000000..48ce580 --- /dev/null +++ b/apulse.conf @@ -0,0 +1,2 @@ +APULSE_CAPTURE_DEVICE=${APULSE_CAPTURE_DEVICE:='plughw:0,0'}; +APULSE_PLAYBACK_DEVICE=${APULSE_PLAYBACK_DEVICE:='default'}; diff --git a/apulse.spec b/apulse.spec index 0f19845..b42ebe3 100644 --- a/apulse.spec +++ b/apulse.spec @@ -24,8 +24,10 @@ Summary: PulseAudio emulation for ALSA License: MIT Group: System/Libraries Url: https://github.com/i-rinat/apulse -Source: https://github.com/i-rinat/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +Source0: https://github.com/i-rinat/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz Source1: baselibs.conf +Source2: %{name}.conf +Source3: %{name} # PATCH-FIX-OPENSUSE apulse-link-math.patch sor.alexei@meowr.ru -- Link with -lm to fix building. Patch0: apulse-link-math.patch BuildRequires: cmake @@ -39,30 +41,30 @@ Recommends: %{name}-32bit = %{version} %endif %description -PulseAudio emulation intended to be used with Mozilla Firefox. +PulseAudio emulation intended to be used with Skype and Firefox %prep %setup -q %patch0 -p1 %build -%cmake \ - -DUSE_BUNDLED_PULSEAUDIO_HEADERS=OFF \ - -DAPULSEPATH=%{_libdir}/%{name}/ -make %{?_smp_mflags} V=1 +%cmake -DUSE_BUNDLED_PULSEAUDIO_HEADERS=OFF -DAPULSEPATH=%{_libdir}/%{name} +make %{?_smp_mflags} %install -%cmake_install -rm %{buildroot}%{_libdir}/%{name}/*.so - -%post -p /sbin/ldconfig - -%postun -p /sbin/ldconfig +mkdir -p %{buildroot}%{_libdir}/%{name} +install -m644 build/libpulse*.so.* %{buildroot}%{_libdir}/%{name} +mkdir %{buildroot}%{_sysconfdir} +install -m644 %{SOURCE2} %{buildroot}%{_sysconfdir} +mkdir %{buildroot}%{_bindir} +install %{SOURCE3} %{buildroot}%{_bindir} %files %defattr(-,root,root) -%doc LICENSE.MIT README.md %{_bindir}/%{name} -%{_libdir}/%{name}/ +%dir %{_libdir}/%{name} +%{_libdir}/%{name}/libpulse*.so.* +%config(noreplace) %{_sysconfdir}/%{name}.conf +%doc LICENSE.MIT README.md %changelog diff --git a/baselibs.conf b/baselibs.conf index 4d5bcc7..ccac9af 100644 --- a/baselibs.conf +++ b/baselibs.conf @@ -1,3 +1,2 @@ apulse - autoreqprov off - requires "alsa-" + requires "apulse"