File calf.spec of Package calf
#
# spec file for package calf
#
# Copyright (c) 2019 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/
#
Name: calf
Version: 0.90.3
Release: 0
Summary: A pack of audio effects and instruments plugins
License: LGPL-2.1-or-later AND GPL-2.0-or-later
Group: Productivity/Multimedia/Sound/Utilities
URL: https://calf-studio-gear.org/
Source: https://github.com/calf-studio-gear/calf/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: bash-completion
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(cairo)
BuildRequires: pkgconfig(expat)
BuildRequires: pkgconfig(fftw3)
BuildRequires: pkgconfig(fluidsynth)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(jack)
BuildRequires: pkgconfig(lash-1.0)
BuildRequires: pkgconfig(libglade-2.0)
BuildRequires: pkgconfig(lv2)
Requires: dssi
Requires: jack
Requires: lash
%description
Calf is a pack of audio plugins – effects and instruments, currently in
development. The goal is to create a set of plugins using decent algorithms
and parameter settings, available in a form which is compatible with as
many FOSS applications as possible.
%package -n lv2-%{name}
Summary: Calf LV2 plugins
Group: Productivity/Multimedia/Sound/Utilities
Requires: %{name} = %{version}
%description -n lv2-%{name}
Calf plugins for LV2.
%package bash-completion
Summary: Bash completion for %{name}
Group: Productivity/Multimedia/Sound/Utilities
Requires: bash-completion
Supplements: (%{name} and bash)
BuildArch: noarch
%description bash-completion
Bash command line completion support for %{name}.
%prep
%setup -q
%build
sed -i 's|^\(docdir = \).*$|\1%{_docdir}/%{name}|' Makefile.am
sed -i '/^Version/d' %{name}.desktop*
autoreconf -fiv
%configure \
--enable-static=no \
--with-lv2-dir=%{_libdir}/lv2 \
--enable-experimental \
%ifarch %{ix86} x86_64
--enable-sse
%endif
make %{?_smp_mflags}
%install
%make_install
%fdupes %{buildroot}%{_datadir}
find %{buildroot} -type f -name "*.la" -delete -print
%suse_update_desktop_file -r %{name} AudioVideo Music
%post
%desktop_database_post
%icon_theme_cache_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%files
%license COPYING
%doc AUTHORS ChangeLog README TODO
%doc %{_docdir}/%{name}/*
%{_bindir}/calfjackhost
%{_libdir}/%{name}/
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}*
%{_mandir}/man?/*.?%{ext_man}
%files -n lv2-%{name}
%{_libdir}/lv2/
%files bash-completion
%{_datadir}/bash-completion/completions/%{name}
%changelog