Blob Blame Raw
Name:           lsp-plugins
Version:        1.1.10
Release:        1%{?dist}
Summary:        Linux Studio Plugins

License:        LGPLv3+ and zlib
URL:            https://lsp-plug.in
Source0:        https://downloads.sourceforge.net/%{name}/%{name}-src-%{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:  expat-devel >= 2.1
BuildRequires:  libsndfile-devel >= 1.0.25
BuildRequires:  cairo-devel >= 1.14
BuildRequires:  php >= 5.5.14
BuildRequires:  mesa-libGLU-devel
BuildRequires:  libGL-devel


%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 ladspa
Summary:        Linux Studio Plugins LADSPA format
Requires:       ladspa%{?_isa}

%description ladspa
${sum}.

%package lv2
Summary:        Linux Studio Plugins LV2 format
Requires:       lv2%{?_isa}

%description lv2
${sum}.


%package vst
Summary:        Linux Studio Plugins VST format
Requires:       Carla-vst%{?_isa}

%description vst
${sum}.

%package jack
Summary:        Linux Studio Plugins JACK format

%description jack
${sum}.


%prep
%autosetup -p1 -n %{name}-src-%{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
%{set_build_flags}
%make_build PREFIX=%{_prefix} SHELL="/bin/bash -x"


%install
%make_install PREFIX=%{_prefix}
mv %{buildroot}%{_datadir}/doc .


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

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

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

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

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

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


%changelog
* Tue Jul 23 2019 Vasiliy Glazov <vascom2@gmail.com> - 1.1.10-1
- Update to 1.1.10

* Thu Jun 27 2019 Vasiliy Glazov <vascom2@gmail.com> - 1.1.9-2
- Corrected lisense
- Spec improvments

* Wed Jun 26 2019 Vasiliy Glazov <vascom2@gmail.com> - 1.1.9-1
- Initial release