SHA256
1
0
forked from pool/apulse

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
This commit is contained in:
Takashi Iwai 2017-07-19 14:07:22 +00:00 committed by Git OBS Bridge
parent 90b6981f11
commit d8eb54e15d
5 changed files with 34 additions and 16 deletions

9
apulse Normal file
View File

@ -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" "$@";

View File

@ -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

2
apulse.conf Normal file
View File

@ -0,0 +1,2 @@
APULSE_CAPTURE_DEVICE=${APULSE_CAPTURE_DEVICE:='plughw:0,0'};
APULSE_PLAYBACK_DEVICE=${APULSE_PLAYBACK_DEVICE:='default'};

View File

@ -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

View File

@ -1,3 +1,2 @@
apulse
autoreqprov off
requires "alsa-<targettype>"
requires "apulse"