SHA256
1
0
forked from pool/apulse
apulse/apulse.spec
2018-03-16 11:41:54 +00:00

74 lines
2.3 KiB
RPMSpec

#
# spec file for package apulse
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org
#
%define __provides_exclude_from ^%{_libdir}/apulse/.*.so.*$
Name: apulse
Version: 0.1.10
Release: 0
Summary: PulseAudio emulation for ALSA
License: MIT
Group: System/Libraries
URL: https://github.com/i-rinat/apulse
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
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(libpulse) >= 5.0
%if %{?_lib} == lib64
Recommends: %{name}-32bit = %{version}
%endif
%description
PulseAudio emulation intended to be used with Skype and Firefox
%prep
%setup -q
%patch0 -p1
%build
%cmake -LA -DUSE_BUNDLED_PULSEAUDIO_HEADERS=OFF -DAPULSEPATH=%{_libdir}/%{name}
make %{?_smp_mflags}
%install
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}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(0644,root,root,-)
%license LICENSE.MIT
%doc README.md
%config(noreplace) %{_sysconfdir}/%{name}.conf
%attr(0755,root,root) %{_bindir}/%{name}
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/libpulse*.so.*
%changelog