File lsp-plugins.spec of Package lsp-plugins

Name:           lsp-plugins
Version:        1.1.10
Release:        2%{?dist}
Summary:        Linux Studio Plugins

License:        LGPLv3+ and zlib
URL:            https://lsp-plug.in
Source0:        %{name}-%{name}-%{version}.tar.gz

BuildRequires:  gcc-c++
BuildRequires:  libstdc++-devel >= 4.7
BuildRequires:  jack-audio-connection-kit-devel >= 1.9.5
BuildRequires:  lv2-devel >= 1.10
BuildRequires:  ladspa-devel >= 1.13
BuildRequires:  libexpat-devel >= 2.1
BuildRequires:  libsndfile-devel >= 1.0.25
BuildRequires:  cairo-devel >= 1.14
BuildRequires:  php >= 5.5.14
BuildRequires:  Mesa-libGLU-devel
BuildRequires:  Mesa-libGL-devel
BuildRequires:  php-cli
Requires:       lsp-plugins-jack

%description
LSP (Linux Studio Plugins) is a collection of open-source plugins
currently compatible with LADSPA, LV2 and LinuxVST formats.

%package doc
Summary:        Linux Studio Plugins documentation
Requires:       %{name} = %{version}-%{release}
BuildArch:      noarch

%description doc
Documentation for Linux Studio Plugins

%package -n ladspa-lsp-plugins
Summary:        Linux Studio Plugins LADSPA format
Requires:       ladspa%{?_isa}
Conflicts:      lsp-plugins-ladspa

%description -n ladspa-lsp-plugins
${sum}.

%package -n lv2-lsp-plugins
Summary:        Linux Studio Plugins LV2 format
Requires:       lv2%{?_isa}
Conflicts:      lsp-plugins-lv2

%description -n lv2-lsp-plugins
${sum}.


%package vst
Summary:        Linux Studio Plugins VST format

%description vst
${sum}.

%package jack
Summary:        Linux Studio Plugins JACK format
Requires:       lsp-plugins

%description jack
${sum}.


%prep
%autosetup -p1 -n %{name}-%{name}-%{version}
sed -i 's|(PREFIX)/lib|(PREFIX)/%{_lib}|' Makefile
rm -rf include/3rdparty/ladspa
sed -i 's|-Wl,-rpath,$(LD_PATH)||' scripts/make/tools.mk


%build

make PREFIX=%{_prefix} SHELL="/bin/bash -x"


%install
make install DESTDIR=%{buildroot}
mv %{buildroot}%{_datadir}/doc .


%files
%license LICENSE.txt
%doc CHANGELOG.txt README.txt
%{_bindir}/%{name}*

%files doc
%doc doc/%{name}/*

%files -n ladspa-lsp-plugins
%license LICENSE.txt
%doc CHANGELOG.txt README.txt
%dir %{_libdir}/ladspa
%{_libdir}/ladspa/%{name}*

%files -n lv2-lsp-plugins
%license LICENSE.txt
%doc CHANGELOG.txt README.txt
%dir %{_libdir}/lv2
%{_libdir}/lv2/%{name}*

%files vst
%license LICENSE.txt
%doc CHANGELOG.txt README.txt
%dir %{_libdir}/vst
%{_libdir}/vst/%{name}*

%files jack
%license LICENSE.txt
%doc CHANGELOG.txt README.txt
%{_libdir}/%{name}


%changelog