File ladspa.spec of Package ladspa

# spec file for package ladspa
# Copyright (c) 2017 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

Name:           ladspa
Version:        1.13
Release:        0
Summary:        The Linux Audio Developer's Simple Plug-In API
License:        LGPL-2.1+
Group:          Productivity/Multimedia/Sound/Utilities
Source1:        baselibs.conf
Patch0:         ladspa.dif
Patch1:         ladspa-find-plugin-path.patch
Patch2:         ladspa-pie.patch
BuildRequires:  gcc-c++
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
AutoReq:        on
Autoprov:       off

The Linux Audio Developer's Simple Plug-in API (LADSPA) provides the
ability to write simple plug-in audio processors in C/C++ and link them
dynamically.  This package contains the plugins built from LADSPA SDK.

%package devel
Summary:        Include Files mandatory for Development
Group:          Development/Libraries/C and C++
%if 0%{?suse_version} > 1110
BuildArch:      noarch

%description devel
This package contains include files to develop LADSPA plugins.

%setup -q -n ladspa_sdk
%patch0 -p1
ln -s ../ladspa.h src/plugins/ladspa.h

# This package failed when testing with -Wl,-as-needed being default.
# So we disable it here, if you want to retest, just delete this comment and the line below.
make -C src %{?_smp_mflags} CFLAGS="%{optflags} -fPIC -ggdb" targets

make -C src \
     INSTALL_PLUGINS_DIR=%{buildroot}%{_libdir}/ladspa \
     INSTALL_INCLUDE_DIR=%{buildroot}%{_includedir} \
     INSTALL_BINARY_DIR=%{buildroot}%{_bindir} install
# devel package
mkdir -p %{buildroot}%{_docdir}/%{name}-devel
cp -av doc/* %{buildroot}%{_docdir}/%{name}-devel
ln -sf %{_includedir}/ladspa.h %{buildroot}%{_docdir}/%{name}-devel/ladspa.h.txt


%files devel
%doc %{_docdir}/%{name}-devel

openSUSE Build Service is sponsored by