File apulse.spec of Package apulse

# 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

%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
Source1:        baselibs.conf
Source2:        %{name}.conf
Source3:        %{name}
# PATCH-FIX-OPENSUSE apulse-link-math.patch -- 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}

PulseAudio emulation intended to be used with Skype and Firefox

%setup -q
%patch0 -p1

make %{?_smp_mflags}

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

%license LICENSE.MIT
%config(noreplace) %{_sysconfdir}/%{name}.conf
%attr(0755,root,root) %{_bindir}/%{name}
%dir %{_libdir}/%{name}

openSUSE Build Service is sponsored by