[packages/guitarix] - up to 0.47.0
baggins
baggins at pld-linux.org
Thu Nov 12 00:12:05 CET 2026
commit a3c4668672435f8065fa2ec31c7af5c9fc2ae174
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Thu Nov 12 00:11:54 2026 +0100
- up to 0.47.0
always_inline.patch | 20 -----------------
boost-1.90.patch | 6 ++---
gcc13.patch | 11 ----------
guitarix.spec | 56 +++++++++++++++++++++++++----------------------
waf.patch | 11 ----------
zita-resampler-1.10.patch | 27 -----------------------
6 files changed, 33 insertions(+), 98 deletions(-)
---
diff --git a/guitarix.spec b/guitarix.spec
index 27192bc..b26e1b9 100644
--- a/guitarix.spec
+++ b/guitarix.spec
@@ -1,26 +1,31 @@
+
+%define nam_version 0.3.0
+%define rtneural_rev 0b0e5d0
+
Summary: Linux Rock Guitar Amplifier for Jack Audio Connektion Kit
Name: guitarix
-Version: 0.44.1
-Release: 6
+Version: 0.47.0
+Release: 1
License: GPL v2+, GPL v3+ (abgate plugin)
Group: Applications/Multimedia
-Source0: http://downloads.sourceforge.net/guitarix/%{name}2-%{version}.tar.xz
-# Source0-md5: d1757e08ddc54c4ec07defea6a30ac5b
-Patch0: zita-resampler-1.10.patch
-Patch1: gcc13.patch
-Patch2: always_inline.patch
-Patch3: boost-1.90.patch
-Patch4: waf.patch
+Source0: https://github.com/brummer10/guitarix/archive/v%{version}/%{name}2-%{version}.tar.gz
+# Source0-md5: 4734f34588f96d4d8df2220c5b305e55
+Source1: https://github.com/sdatkinson/NeuralAmpModelerCore/archive/v%{nam_version}/NeuralAmpModelerCore-%{nam_version}.tar.gz
+# Source1-md5: 658bb0ee3412387f2fc1e4f95e6a4bc7
+Source2: https://github.com/jatinchowdhury18/RTNeural/archive/%{rtneural_rev}/RTNeural-%{rtneural_rev}.tar.gz
+# Source2-md5: 5778d0fa8242d4d16f8626e67c65c295
+Patch0: boost-1.90.patch
URL: https://guitarix.org/
BuildRequires: avahi-gobject-devel
BuildRequires: bluez-libs-devel
BuildRequires: boost-devel >= 1.42
BuildRequires: cairo-devel
BuildRequires: curl-devel
-BuildRequires: eigen3
-BuildRequires: faust
+BuildRequires: eigen3 >= 5.0.0
+BuildRequires: faust >= 2.79.3
BuildRequires: fftw3-devel >= 3.1.2
BuildRequires: fftw3-single-devel
+BuildRequires: fonts-TTF-Roboto
BuildRequires: gettext-tools
BuildRequires: glib2-devel
BuildRequires: glibmm-devel >= 2.24.0
@@ -58,40 +63,41 @@ use the feedback and feedforward sliders.
%prep
-%setup -q
+%setup -q -a1 -a2
%patch -P0 -p1
-%patch -P1 -p1
-%patch -P2 -p1
-%patch -P3 -p1
-%patch -P4 -p1
+
+%{__mv} NeuralAmpModelerCore-%{nam_version}/* trunk/src/NAM/NeuralAmpModelerCore/
+%{__mv} RTNeural-%{rtneural_rev}*/* trunk/src/RTNeural/RTNeural/
%build
+cd trunk
CC="%{__cc}" \
CXX="%{__cxx}" \
-CFLAGS="%{rpmcflags}" \
-CXXFLAGS="%{rpmcxxflags}" \
+CFLAGS="%{rpmcflags} -I/usr/include/eigen3" \
+CXXFLAGS="%{rpmcxxflags} -std=c++17 -I/usr/include/eigen3" \
LDFLAGS="%{rpmldflags}" \
./waf configure \
--cxxflags-release="-DNDEBUG" \
--prefix=%{_prefix} \
--libdir=%{_libdir} \
- --ladspadir=%{_libdir}/ladspa \
--mod-lv2 \
- --ladspa \
+ --faust \
%ifarch %{ix86}
--disable-sse \
%endif
- --new-ladspa
-./waf build
+./waf build \
+ --verbose
%install
rm -rf $RPM_BUILD_ROOT
+cd trunk
./waf install \
--destdir=$RPM_BUILD_ROOT
+cd -
-rm -f $RPM_BUILD_ROOT%{_libdir}/*.so
+%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/*.so
%find_lang %{name}
@@ -103,14 +109,12 @@ rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(644,root,root,755)
-%doc changelog README*
+%doc trunk/changelog README.md
%attr(755,root,root) %{_bindir}/guitarix
%{_libdir}/libgxw.so.0.*
%ghost %{_libdir}/libgxw.so.0
%{_libdir}/libgxwmm.so.0.*
%ghost %{_libdir}/libgxwmm.so.0
-%{_libdir}/ladspa/*.so
-%{_datadir}/ladspa/rdf/*.rdf
%dir %{_libdir}/lv2/gx*
%{_libdir}/lv2/gx*/*.so
%{_libdir}/lv2/gx*/*.ttl
diff --git a/always_inline.patch b/always_inline.patch
deleted file mode 100644
index 2b84c45..0000000
--- a/always_inline.patch
+++ /dev/null
@@ -1,20 +0,0 @@
-diff -ur guitarix-0.44.1.orig/src/ladspa/ladspa_guitarix.cpp guitarix-0.44.1/src/ladspa/ladspa_guitarix.cpp
---- guitarix-0.44.1.orig/src/ladspa/ladspa_guitarix.cpp 2022-05-02 20:38:03.000000000 +0200
-+++ guitarix-0.44.1/src/ladspa/ladspa_guitarix.cpp 2023-07-05 00:25:36.613058650 +0200
-@@ -16,7 +16,6 @@
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- */
-
--#define always_inline inline __attribute__((always_inline))
-
- #include <stdlib.h>
- #include <string.h>
-@@ -29,6 +28,8 @@
- #include <jack/jack.h>
- #include <jack/thread.h>
-
-+#define always_inline inline __attribute__((always_inline))
-+
- #include "engine.h"
-
- #include "gx_faust_plugins.h"
diff --git a/boost-1.90.patch b/boost-1.90.patch
index b2909db..c7bf610 100644
--- a/boost-1.90.patch
+++ b/boost-1.90.patch
@@ -1,7 +1,7 @@
-diff --git a/wscript b/wscript
+diff --git a/trunk/wscript b/trunk/wscript
index 066d3f00..bc2c4616 100644
---- a/wscript
-+++ b/wscript
+--- a/trunk/wscript
++++ b/trunk/wscript
@@ -186,8 +186,13 @@ def check_boost(conf):
#include <boost/system/error_code.hpp>
int main() { boost::system::error_code c; }
diff --git a/gcc13.patch b/gcc13.patch
deleted file mode 100644
index f4f7c5c..0000000
--- a/gcc13.patch
+++ /dev/null
@@ -1,11 +0,0 @@
-diff -ur guitarix-0.44.1.orig/src/LV2/DSP/gx_common.h guitarix-0.44.1/src/LV2/DSP/gx_common.h
---- guitarix-0.44.1.orig/src/LV2/DSP/gx_common.h 2022-05-02 20:38:03.000000000 +0200
-+++ guitarix-0.44.1/src/LV2/DSP/gx_common.h 2023-07-05 00:27:25.237218722 +0200
-@@ -23,6 +23,7 @@
- #define SRC_HEADERS_GX_COMMON_H_
-
-
-+#include <cstdint>
- #include <cstdlib>
- #include <cmath>
- #include <iostream>
diff --git a/waf.patch b/waf.patch
deleted file mode 100644
index cfc0ada..0000000
--- a/waf.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- guitarix-0.44.1/wscript~ 2026-11-11 09:10:11.000000000 +0100
-+++ guitarix-0.44.1/wscript 2026-11-11 09:15:30.803986858 +0100
-@@ -537,7 +537,7 @@
- dst_fname = task.outputs[0].abspath()
- lst = task.generator.sub_list
-
-- with open(src_fname, 'rU') as f:
-+ with open(src_fname, 'r') as f:
- txt = f.read()
- for (key, val) in lst:
- re_pat = re.compile(key, re.M)
diff --git a/zita-resampler-1.10.patch b/zita-resampler-1.10.patch
deleted file mode 100644
index 0c75fcf..0000000
--- a/zita-resampler-1.10.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-diff -ur guitarix-0.44.1.orig/waftools/zita-resampler.py guitarix-0.44.1/waftools/zita-resampler.py
---- guitarix-0.44.1.orig/waftools/zita-resampler.py 2022-05-02 20:38:03.000000000 +0200
-+++ guitarix-0.44.1/waftools/zita-resampler.py 2023-07-05 00:19:49.453916836 +0200
-@@ -15,12 +15,21 @@
- code="""
- #include <zita-resampler/resampler.h>
- #include <zita-resampler/resampler-table.h>
-- #if ZITA_RESAMPLER_MAJOR_VERSION != %d
-+ #define EXPECTED_ZITA_RESAMPLER_VERSION %d
-+ #if defined(ZITA_RESAMPLER_MAJOR_VERSION) && ZITA_RESAMPLER_MAJOR_VERSION != EXPECTED_ZITA_RESAMPLER_VERSION
- #error
- #endif
-- int main(){ return 0; }
-+ int main(){
-+ #if !defined(ZITA_RESAMPLER_MAJOR_VERSION)
-+ if (zita_resampler_major_version() != 1)
-+ throw "error";
-+ else
-+ #endif
-+ return 0;
-+ }
- """ % expected_zita_resampler_version
- conf.check_cxx(
-+ execute=True,
- fragment=code,
- lib='zita-resampler',
- uselib_store='ZITA_RESAMPLER',
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/guitarix.git/commitdiff/a3c4668672435f8065fa2ec31c7af5c9fc2ae174
More information about the pld-cvs-commit
mailing list