File alsaequal.spec of Package alsaequal
#
# spec file for package alsaequal
#
# Copyright (c) 2020 SUSE LLC
#
# 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/
#
Name: alsaequal
Version: 0.6
Release: 0
Summary: Equalizer plugin for ALSA
License: LGPL-2.1-only
URL: https://build.opensuse.org/package/show/home:13ilya/%{name}
Source0: %{name}-%{version}.tar.xz
Source1: 99-equal.conf
BuildRequires: alsa-devel
BuildRequires: gcc
BuildRequires: ladspa-caps
Requires: ladspa-caps
%description
Alsaequal is a real-time adjustable equalizer plugin for ALSA
%prep
%autosetup -p1
sed -i 's|%{_prefix}/lib/|%{_libdir}/|g' ctl_equal.c pcm_equal.c Makefile
%build
%make_build
%install
install -Dpm0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/alsa/conf.d/99-equal.conf
mkdir -p %{buildroot}%{_libdir}/alsa-lib
%make_install
%files
%license COPYING
%doc README
%dir %{_sysconfdir}/alsa
%dir %{_sysconfdir}/alsa/conf.d
%config(noreplace) %{_sysconfdir}/alsa/conf.d/*.conf
%dir %{_libdir}/alsa-lib
%{_libdir}/alsa-lib/*.so
%changelog