forked from pool/apulse
Accepting request 511429 from multimedia:libs
1 OBS-URL: https://build.opensuse.org/request/show/511429 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/apulse?expand=0&rev=8
This commit is contained in:
commit
4b671abccc
9
apulse
Normal file
9
apulse
Normal 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" "$@";
|
@ -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
|
Tue May 9 16:45:47 UTC 2017 - sor.alexei@meowr.ru
|
||||||
|
|
||||||
|
2
apulse.conf
Normal file
2
apulse.conf
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
APULSE_CAPTURE_DEVICE=${APULSE_CAPTURE_DEVICE:='plughw:0,0'};
|
||||||
|
APULSE_PLAYBACK_DEVICE=${APULSE_PLAYBACK_DEVICE:='default'};
|
30
apulse.spec
30
apulse.spec
@ -24,8 +24,10 @@ Summary: PulseAudio emulation for ALSA
|
|||||||
License: MIT
|
License: MIT
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Url: https://github.com/i-rinat/apulse
|
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
|
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.
|
# PATCH-FIX-OPENSUSE apulse-link-math.patch sor.alexei@meowr.ru -- Link with -lm to fix building.
|
||||||
Patch0: apulse-link-math.patch
|
Patch0: apulse-link-math.patch
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
@ -39,30 +41,30 @@ Recommends: %{name}-32bit = %{version}
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
PulseAudio emulation intended to be used with Mozilla Firefox.
|
PulseAudio emulation intended to be used with Skype and Firefox
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%cmake \
|
%cmake -DUSE_BUNDLED_PULSEAUDIO_HEADERS=OFF -DAPULSEPATH=%{_libdir}/%{name}
|
||||||
-DUSE_BUNDLED_PULSEAUDIO_HEADERS=OFF \
|
make %{?_smp_mflags}
|
||||||
-DAPULSEPATH=%{_libdir}/%{name}/
|
|
||||||
make %{?_smp_mflags} V=1
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%cmake_install
|
mkdir -p %{buildroot}%{_libdir}/%{name}
|
||||||
rm %{buildroot}%{_libdir}/%{name}/*.so
|
install -m644 build/libpulse*.so.* %{buildroot}%{_libdir}/%{name}
|
||||||
|
mkdir %{buildroot}%{_sysconfdir}
|
||||||
%post -p /sbin/ldconfig
|
install -m644 %{SOURCE2} %{buildroot}%{_sysconfdir}
|
||||||
|
mkdir %{buildroot}%{_bindir}
|
||||||
%postun -p /sbin/ldconfig
|
install %{SOURCE3} %{buildroot}%{_bindir}
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc LICENSE.MIT README.md
|
|
||||||
%{_bindir}/%{name}
|
%{_bindir}/%{name}
|
||||||
%{_libdir}/%{name}/
|
%dir %{_libdir}/%{name}
|
||||||
|
%{_libdir}/%{name}/libpulse*.so.*
|
||||||
|
%config(noreplace) %{_sysconfdir}/%{name}.conf
|
||||||
|
%doc LICENSE.MIT README.md
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -1,3 +1,2 @@
|
|||||||
apulse
|
apulse
|
||||||
autoreqprov off
|
requires "apulse"
|
||||||
requires "alsa-<targettype>"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user