# Status: active
# Tag: Audio, Mixer
# Type: Standalone, LV2, LADSPA
# Category: Audio, Tool

Summary: Reboot of Non Mixer with eXTended LV2 support.
Name: non-mixer-xt
Version: 2.0.7
Release: 4%{?dist}
License: GPL-3.0-only
URL: https://github.com/Stazed/non-mixer-xt
ExclusiveArch: x86_64 aarch64

Vendor:       Audinux
Distribution: Audinux

# Usage: ./source-non-mixer-xt.sh <tag>
#        ./source-non-mixer-xt.sh 2.0.7

Source0: non-mixer-xt.tar.gz
Source1: source-non-mixer-xt.sh

BuildRequires: gcc gcc-c++
BuildRequires: cmake
BuildRequires: non-ntk-devel
BuildRequires: non-ntk-fluid
BuildRequires: liblo-devel
BuildRequires: libsndfile-devel
BuildRequires: fltk-fluid
BuildRequires: fltk-devel
BuildRequires: fltk-static
BuildRequires: libsigc++20-devel
BuildRequires: pkgconfig(jack)
BuildRequires: libXpm-devel
BuildRequires: ladspa-devel
BuildRequires: liblrdf-devel
BuildRequires: lv2-devel
BuildRequires: lilv-devel
BuildRequires: suil-devel
BuildRequires: zix-devel
BuildRequires: clap-devel
BuildRequires: pango-devel
BuildRequires: libXfixes-devel
BuildRequires: libXinerama-devel
BuildRequires: libXcursor-devel
BuildRequires: desktop-file-utils

%description
Non-Mixer-XT is a reboot of original Non-Mixer with eXTended LV2 support.
LV2 support includes X11, ShowInterface and External custom UI support.
In addition, MIDI support with JACK timebase support and much more.
The generic parameter editor has been redesigned to accommodate larger
LV2 plugins, preset support and state save and restore.

%prep
%autosetup -n %{name}

%build

%cmake -DEnableOptimizations=OFF \
       -DEnableSSE=OFF \
       -DEnableSSE2=ON \
       -DNativeOptimizations=OFF \
       -DEnableLADSPASupport=ON \
       -DEnableLV2Support=ON \
       -DEnableCLAPSupport=ON \
       -DEnableVST2Support=ON \
       -DEnableVST3Support=ON
%cmake_build

%install
%cmake_install

sed -i -e "/Version=2.0/d" %{buildroot}/%{_datadir}/applications/midi-mapper-xt.desktop

desktop-file-install --vendor '' \
        --add-category=X-Sound \
        --add-category=Midi \
        --add-category=X-Jack \
        --dir %{buildroot}/%{_datadir}/applications \
        %{buildroot}/%{_datadir}/applications/*.desktop

%check
desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop

%files
%doc README.md
%license COPYING
%{_bindir}/*
%{_datadir}/applications/*
%{_datadir}/pixmaps/*
%{_datadir}/icons/hicolor/*
%{_datadir}/doc/non-mixer-xt/*

%changelog
* Tue Jan 14 2025 Yann Collette <ycollette dot nospam at free.fr> 2.0.7-2
- update to 2.0.7-2

* Fri Dec 06 2024 Yann Collette <ycollette dot nospam at free.fr> 2.0.6-2
- update to 2.0.6-2

* Thu Oct 03 2024 Yann Collette <ycollette dot nospam at free.fr> 2.0.4-2
- update to 2.0.4-2

* Wed Aug 21 2024 Yann Collette <ycollette dot nospam at free.fr> 2.0.3-2
- update to 2.0.3-2

* Sun Jul 21 2024 Yann Collette <ycollette dot nospam at free.fr> 2.0.2-4
- update to 2.0.2-4 - fix ladspa search path
- update to 2.0.2-3 - activate ladspa
- update to 2.0.2-2

* Thu Jul 04 2024 Yann Collette <ycollette dot nospam at free.fr> 2.0.1-2
- update to 2.0.1-2 - disable optimizations

* Tue Jun 18 2024 Yann Collette <ycollette dot nospam at free.fr> 2.0.1-1
- update to 2.0.1-1

* Sat Jun 08 2024 Yann Collette <ycollette dot nospam at free.fr> 2.0.0-1
- update to 2.0.0-1

* Thu May 16 2024 Yann Collette <ycollette dot nospam at free.fr> 1.3.3-1
- update to 1.3.3-1

* Mon Mar 11 2024 Yann Collette <ycollette dot nospam at free.fr> 1.3.2-1
- update to 1.3.2-1

* Thu Feb 08 2024 Yann Collette <ycollette dot nospam at free.fr> 1.3.1-1
- update to 1.3.1-1

* Thu Feb 01 2024 Yann Collette <ycollette dot nospam at free.fr> 1.3.0-1
- update to 1.3.0-1

* Fri Dec 08 2023 Yann Collette <ycollette dot nospam at free.fr> 1.1.0-1
- update to 1.1.0-1

* Tue Oct 31 2023 Yann Collette <ycollette dot nospam at free.fr> 1.0.6-1
- update to 1.0.6-1

* Thu Oct 26 2023 Yann Collette <ycollette dot nospam at free.fr> 1.0.5-1
- update to 1.0.5-1

* Sat Sep 09 2023 Yann Collette <ycollette dot nospam at free.fr> 1.0.4-1
- initial release