forked from pool/apulse
- Update to version 0.1.13.
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/apulse?expand=0&rev=28
This commit is contained in:
parent
b05334a318
commit
7b9f25b64d
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:cfcadfe971abd785ed3ca24e576fcbaade185525c1eda76daf32dbf298e52892
|
|
||||||
size 117220
|
|
3
apulse-0.1.13.tar.gz
Normal file
3
apulse-0.1.13.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:9234ec4e10e408b9c01d5f4ea768ad1fc15494217c932db2c435202a9c7b5efd
|
||||||
|
size 117369
|
@ -1,22 +0,0 @@
|
|||||||
--- a/src/apulse.h
|
|
||||||
+++ b/src/apulse.h
|
|
||||||
@@ -26,7 +26,7 @@
|
|
||||||
|
|
||||||
#define _GNU_SOURCE
|
|
||||||
#include "ringbuffer.h"
|
|
||||||
-#include <asoundlib.h>
|
|
||||||
+#include <alsa/asoundlib.h>
|
|
||||||
#include <glib.h>
|
|
||||||
#include <poll.h>
|
|
||||||
#include <pthread.h>
|
|
||||||
--- a/src/util.h
|
|
||||||
+++ b/src/util.h
|
|
||||||
@@ -24,7 +24,7 @@
|
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
-#include <asoundlib.h>
|
|
||||||
+#include <alsa/asoundlib.h>
|
|
||||||
#include <pulse/pulseaudio.h>
|
|
||||||
|
|
||||||
int
|
|
@ -1,16 +0,0 @@
|
|||||||
--- a/src/apulse-volume.c
|
|
||||||
+++ b/src/apulse-volume.c
|
|
||||||
@@ -282,8 +282,13 @@ pa_cvolume_scale(pa_cvolume *v, pa_volum
|
|
||||||
|
|
||||||
APULSE_EXPORT
|
|
||||||
pa_cvolume *
|
|
||||||
+#if PA_CHECK_VERSION(11, 99, 0)
|
|
||||||
+pa_cvolume_scale_mask(pa_cvolume *v, pa_volume_t max, const pa_channel_map *cm,
|
|
||||||
+ pa_channel_position_mask_t mask)
|
|
||||||
+#else
|
|
||||||
pa_cvolume_scale_mask(pa_cvolume *v, pa_volume_t max, pa_channel_map *cm,
|
|
||||||
pa_channel_position_mask_t mask)
|
|
||||||
+#endif
|
|
||||||
{
|
|
||||||
trace_info_z("Z %s\n", __func__);
|
|
||||||
return NULL;
|
|
@ -1,3 +1,14 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Sep 29 18:17:04 UTC 2020 - Alexei Sorokin <sor.alexei@meowr.ru>
|
||||||
|
|
||||||
|
- Update to version 0.1.13:
|
||||||
|
* Fix compiling with external PulseAudio 12.x headers.
|
||||||
|
* Link libpulse-simple.so with libpulse.so.
|
||||||
|
* Use <0 rather than !=0 for ALSA error code checking.
|
||||||
|
* Minor compilation fixes.
|
||||||
|
- Drop apulse-fix-pulse-12.patch, apulse-alsa.patch: fixed
|
||||||
|
upstream.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Nov 8 08:05:35 UTC 2019 - Stefan Seyfried <seife+obs@b1-systems.com>
|
Fri Nov 8 08:05:35 UTC 2019 - Stefan Seyfried <seife+obs@b1-systems.com>
|
||||||
|
|
||||||
|
22
apulse.spec
22
apulse.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package apulse
|
# spec file for package apulse
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2020 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -17,11 +17,10 @@
|
|||||||
|
|
||||||
|
|
||||||
# integer of major pulse version
|
# integer of major pulse version
|
||||||
%define pulse_major %(sed -n '/^#define.*PA_MAJOR/{s/^.* //;p}' /usr/include/pulse/version.h)
|
%define pulse_major %(sed -n '/^#define.*PA_MAJOR/{s/^.* //;p}' %{_includedir}/pulse/version.h)
|
||||||
|
|
||||||
%define __provides_exclude_from ^%{_libdir}/apulse/.*.so.*$
|
%define __provides_exclude_from ^%{_libdir}/apulse/.*.so.*$
|
||||||
Name: apulse
|
Name: apulse
|
||||||
Version: 0.1.12
|
Version: 0.1.13
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: PulseAudio emulation for ALSA
|
Summary: PulseAudio emulation for ALSA
|
||||||
License: MIT
|
License: MIT
|
||||||
@ -30,12 +29,9 @@ Source0: https://github.com/i-rinat/%{name}/archive/v%{version}.tar.gz#/%
|
|||||||
Source1: baselibs.conf
|
Source1: baselibs.conf
|
||||||
Source2: %{name}.py
|
Source2: %{name}.py
|
||||||
Source3: %{name}.conf
|
Source3: %{name}.conf
|
||||||
# PATCH-FIX-OPENSUSE apulse-fix-pulse-12.patch sor.alexei@meowr.ru -- Fix PulseAudio 12+ compatibility.
|
|
||||||
Patch0: apulse-fix-pulse-12.patch
|
|
||||||
Patch1: apulse-alsa.patch
|
|
||||||
%if %{pulse_major} > 12
|
%if %{pulse_major} > 12
|
||||||
# PATCH-FIX-OPENSUSE apulse-fix-pulse-13.patch seife+obs@b1-systems.com -- fix pulse 13+ compatibility.
|
# PATCH-FIX-OPENSUSE apulse-fix-pulse-13.patch seife+obs@b1-systems.com -- Fix PulseAudio 13+ compatibility.
|
||||||
Patch2: apulse-fix-pulse-13.patch
|
Patch0: apulse-fix-pulse-13.patch
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
@ -58,7 +54,7 @@ PulseAudio emulation intended to be used with Firefox and Skype.
|
|||||||
-DUSE_BUNDLED_PULSEAUDIO_HEADERS=OFF \
|
-DUSE_BUNDLED_PULSEAUDIO_HEADERS=OFF \
|
||||||
-DAPULSEPATH=%{_libdir}/%{name} \
|
-DAPULSEPATH=%{_libdir}/%{name} \
|
||||||
-DCMAKE_SHARED_LINKER_FLAGS="" -LA
|
-DCMAKE_SHARED_LINKER_FLAGS="" -LA
|
||||||
make %{?_smp_mflags} V=1
|
%make_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%cmake_install
|
%cmake_install
|
||||||
@ -71,15 +67,11 @@ install -Dpm 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/%{name}.conf
|
|||||||
%postun -p /sbin/ldconfig
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%if 0%{?suse_version} >= 1500
|
|
||||||
%license LICENSE.MIT
|
%license LICENSE.MIT
|
||||||
%else
|
|
||||||
%doc LICENSE.MIT
|
|
||||||
%endif
|
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%config(noreplace) %{_sysconfdir}/%{name}.conf
|
%config(noreplace) %{_sysconfdir}/%{name}.conf
|
||||||
%{_bindir}/%{name}
|
%{_bindir}/%{name}
|
||||||
%dir %{_libdir}/%{name}
|
%dir %{_libdir}/%{name}/
|
||||||
%{_libdir}/%{name}/libpulse*.so.*
|
%{_libdir}/%{name}/libpulse*.so.*
|
||||||
%{_mandir}/man1/apulse.1%{?ext_man}
|
%{_mandir}/man1/apulse.1%{?ext_man}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user