ladspa/ladspa.spec

81 lines
2.5 KiB
RPMSpec

#
# spec file for package ladspa
#
# Copyright (c) 2014 SUSE LINUX Products 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 http://bugs.opensuse.org/
#
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
Url: http://www.ladspa.org/
Source: http://www.ladspa.org/download/%{name}_sdk_%{version}.tgz
Patch0: ladspa.dif
BuildRequires: gcc-c++
BuildRoot: %{_tmppath}/%{name}-%{version}-build
AutoReq: on
Autoprov: off
%description
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
%endif
%description devel
This package contains include files to develop LADSPA plugins.
%prep
%setup -q -n ladspa_sdk
%patch0 -p1
ln -s ../ladspa.h src/plugins/ladspa.h
%build
# 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.
export SUSE_ASNEEDED=0
make -C src %{?_smp_mflags} CFLAGS="%{optflags} -fPIC -ggdb" targets
%install
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
%defattr(-,root,root)
%doc README
%{_libdir}/ladspa
%{_bindir}/*
%files devel
%defattr(-,root,root)
%doc %{_docdir}/%{name}-devel
%{_includedir}/*
%changelog