dexed/dexed.spec

77 lines
2.3 KiB
RPMSpec
Raw Permalink Normal View History

Name: dexed
Version: 0.9.6
Release: 1mamba
Summary: DX7 FM multi plaform/multi format plugin
Group: Graphical Desktop/Applications/Multimedia
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://asb2m10.github.io/dexed/
Source: https://github.com/asb2m10/dexed.git/v%{version}/dexed-%{version}.tar.bz2
Source1: dexed.desktop
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libX11-devel
BuildRequires: libXext-devel
BuildRequires: libXinerama-devel
BuildRequires: libalsa-devel
BuildRequires: libcurl-devel
BuildRequires: libfreetype-devel
BuildRequires: libgcc
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
%description
DX7 FM multi plaform/multi format plugin.
%debug_package
%prep
%setup -q
#sed -i "s|/usr/lib/vst|%{_libdir}/vst|" \
# JuceLibraryCode/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp
%build
./scripts/get-juce.sh
./scripts/projuce.sh
#./scripts/build-lin.sh
%make -C Builds/Linux \
CONFIG=Release CXXFLAGS="-D JUCE_JACK=1 -D JUCE_ALSA=1 -D buildVST=0 -D buildStandalone=1" \
mv Builds/Linux/build/Dexed Dexed.standalone
# VST plugin
%make -C Builds/Linux clean
%make -C Builds/Linux \
CONFIG=Release CXXFLAGS="-D JUCE_JACK=0 -D JUCE_ALSA=0 -D buildVST=1 -D buildStandalone=0"
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
INSTARCH=`uname -m`
install -D -m0755 Builds/Linux/build/Dexed %{buildroot}%{_bindir}/dexed
install -D -m0755 Builds/Linux/build/Dexed.vst3/Contents/${INSTARCH}-linux/Dexed.so \
%{buildroot}%{_prefix}/lib/vst/Contents/${INSTARCH}-linux/Dexed.so
install -D -m0644 Resources/ui/dexedIcon.png %{buildroot}%{_datadir}/pixmaps/dexed.png
install -D -m0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/dexed.desktop
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/dexed
%{_prefix}/lib/vst/Contents/*-linux/Dexed.so
%{_datadir}/applications/dexed.desktop
%{_datadir}/pixmaps/dexed.png
%doc LICENSE
%changelog
* Sat Apr 10 2021 Automatic Build System <autodist@mambasoft.it> 0.9.6-1mamba
- automatic version update by autodist
* Sat Jun 01 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.4hf1-1mamba
- package created using the webbuild interface