File apulse.spec of Package apulse
Name: apulse
Version: 0.1.10
Release: 1
Summary: PulseAudio emulation for ALSA
License: MIT and LGPL-2.1+
Group: System/Libraries
URL: https://github.com/i-rinat/%name
Source: %name-%version.tar.xz
Source8: baselibs.conf
#Patch0: %name-%version-git.patch
BuildRequires: gcc-c++
BuildRequires: cmake >= 2.8.8
BuildRequires: pkgconfig(glib-2.0) pkgconfig(alsa)
%description
Libraries and wrapper to emulate PulseAudio with ALSA.
%prep
%setup -q
#patch0 -p1
sed -i '/^target_link_libraries(/s/)/ m&/' CMakeLists.txt
%build
%cmake \
-DAPULSEPATH:STRING=%_libdir/%name \
-DCMAKE_INSTALL_PREFIX=%_prefix \
-DCMAKE_BUILD_TYPE=RelWithDebInfo
make %{?_smp_mflags}
%install
%cmake_install
ln -s libpulsecommon-5.0.so %buildroot%_libdir/%name/libpulsecommon-4.0.so
%files
%defattr(-,root,root)
%doc README*
%_bindir/*
%_libdir/*
%changelog