ladspa/ladspa.spec

81 lines
2.5 KiB
RPMSpec
Raw Normal View History

#
# spec file for package ladspa
#
# Copyright (c) 2013 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
BuildRequires: gcc-c++
Summary: The Linux Audio Developer's Simple Plug-In API
License: LGPL-2.1+
Group: Productivity/Multimedia/Sound/Utilities
Version: 1.13
Release: 0
AutoReq: on
Autoprov: off
Source: ladspa_sdk_1.13.tar.bz2
Patch: ladspa.dif
Url: http://www.ladspa.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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
%patch -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="$RPM_OPT_FLAGS -fPIC -ggdb" targets
%install
make -C src \
INSTALL_PLUGINS_DIR="$RPM_BUILD_ROOT"%{_libdir}/ladspa \
INSTALL_INCLUDE_DIR="$RPM_BUILD_ROOT"%{_includedir} \
INSTALL_BINARY_DIR="$RPM_BUILD_ROOT"%{_bindir} install
# devel package
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}-devel
cp -av doc/* $RPM_BUILD_ROOT%{_docdir}/%{name}-devel
ln -sf %{_includedir}/ladspa.h $RPM_BUILD_ROOT%{_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