diff --git a/.gitignore b/.gitignore index 8268f81..386b140 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /abGate-1.1.3.tar.gz +/abGate-1.1.9.tar.gz diff --git a/Makefile.patch b/Makefile.patch new file mode 100644 index 0000000..e81831b --- /dev/null +++ b/Makefile.patch @@ -0,0 +1,38 @@ +diff --git a/Makefile b/Makefile +index 89ecd49..8e886b9 100644 +--- a/Makefile ++++ b/Makefile +@@ -1,22 +1,19 @@ + # Please edit PREFIX and INSTALL_DIR to your needs. + + BUNDLE = abGate.lv2 +-PREFIX = /usr +-INSTALL_DIR = $(DESTDIR)$(PREFIX)/lib/lv2 ++PREFIX ?= /usr ++INSTALL_DIR ?= $(DESTDIR)$(PREFIX)/lib/lv2 + +-$(BUNDLE): manifest.ttl gate.ttl gate.so gate_gui.so bypass_on.png bypass_off.png knob.png background.png abGateQt/libabGateQt.so ++$(BUNDLE): manifest.ttl gate.ttl gate.so gate_gui.so bypass_on.png bypass_off.png knob.png background.png + rm -rf $(BUNDLE) + mkdir $(BUNDLE) + cp $^ $(BUNDLE) + +-abGateQt/libabGateQt.so: +- cd abGateQt; qmake; make +- + gate.so: gate.cpp +- g++ $(LDFLAGS) $(CPPFLAGS) $(CFLAGS) -g -O3 -shared -fPIC -DPIC -Wl,--as-needed gate.cpp `pkg-config --cflags --libs lv2` -o gate.so ++ g++ $(LDFLAGS) $(CPPFLAGS) $(CFLAGS) -shared -fPIC -DPIC gate.cpp `pkg-config --cflags --libs lv2` -o gate.so + + gate_gui.so: gate_gui.cpp main_window.cpp main_window.h knob.cpp knob.h toggle.cpp toggle.h preset_widget.cpp preset_widget.h presets.cpp presets.h preset.cpp preset.h gate_const.h plugin_configuration.h +- g++ $(LDFLAGS) $(CPPFLAGS) $(CFLAGS) -g -O3 -shared -fPIC -DPIC -Wl,--as-needed gate_gui.cpp main_window.cpp knob.cpp toggle.cpp preset_widget.cpp presets.cpp preset.cpp `pkg-config --cflags gtkmm-2.4 --libs lv2 gthread-2.0` -o gate_gui.so ++ g++ $(LDFLAGS) $(CPPFLAGS) $(CFLAGS) -shared -fPIC -DPIC gate_gui.cpp main_window.cpp knob.cpp toggle.cpp preset_widget.cpp presets.cpp preset.cpp `pkg-config --cflags gtkmm-2.4 --libs lv2 gthread-2.0` -o gate_gui.so + + all: $(BUNDLE) + +@@ -26,4 +23,4 @@ install: $(BUNDLE) + cp -R $(BUNDLE) $(INSTALL_DIR) + + clean: +- rm -rf $(BUNDLE) gate.so gate_gui.so; cd abGateQt; rm -rf libabGateQt.so; make clean; rm -rf Makefile ++ rm -rf $(BUNDLE) gate.so gate_gui.so diff --git a/lv2-abGate.spec b/lv2-abGate.spec index 196f60b..8a5df42 100644 --- a/lv2-abGate.spec +++ b/lv2-abGate.spec @@ -1,47 +1,47 @@ %global pname abGate Name: lv2-abGate -Version: 1.1.3 -Release: 21%{?dist} -Summary: An LV2 Noice Gate +Version: 1.1.9 +Release: 1%{?dist} +Summary: An LV2 Noise Gate License: GPLv3+ -URL: http://abGate.sourceforge.net -Source0: http://downloads.sourceforge.net/project/abgate/abGate-source/abGate-1.1.3.tar.gz +URL: https://abgate.sourceforge.io/ +Source0: https://github.com/antanasbruzas/%{pname}/archive/v%{version}.tar.gz#/%{pname}-%{version}.tar.gz +Patch0: Makefile.patch BuildRequires: gcc-c++ -BuildRequires: lv2-devel +BuildRequires: lv2-devel >= 1.8.1 BuildRequires: gtkmm24-devel -Requires: lv2 +Requires: lv2 >= 1.8.1 %description A Noise Gate plugin %prep -%setup -q -n %{pname}-%{version} -sed -i -e 's|-O3|%{optflags}|' Makefile -sed -i -e 's|/lib/lv2|/%{_lib}/lv2|' Makefile plugin_configuration.h +%autosetup -p 1 -n %{pname}-%{version} +# Do not build Qt5 GUI for now +rm -rf abGateQt -# Fix encoding issues -for file in README license.txt; do - sed 's|\r||' $file > $file.tmp - iconv -f ISO-8859-1 -t UTF8 $file.tmp > $file.tmp2 - touch -r $file $file.tmp2 - mv -f $file.tmp2 $file -done +# Fix plugin path +sed -i -e "s|/usr/lib/lv2|%{_libdir}/lv2|g" plugin_configuration.h %build -make +%set_build_flags +%make_build PREFIX=%{_prefix} %install -make install DESTDIR=%{buildroot} +%make_install PREFIX=%{_prefix} INSTALL_DIR=%{buildroot}/%{_libdir}/lv2 %files -%doc README -%license license.txt +%doc README.md +%license LICENSE %{_libdir}/lv2/%{pname}.lv2 %changelog +* Mon Dec 23 2019 Guido Aulisi - 1.1.9-1 +- Version 1.1.9 + * Thu Jul 25 2019 Fedora Release Engineering - 1.1.3-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild diff --git a/sources b/sources index 8286584..12d1a3d 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -27fcf7faf46b83396f438b2b9f323b08 abGate-1.1.3.tar.gz +SHA512 (abGate-1.1.9.tar.gz) = 669dc1f54fa64526595cd30051ecc0b16f89e7a4eeb2dcf9008c0ea40f1f433598406d735c186bfe17bfaf4ec737a1ab66f62b0d1b4d783574a1830bb893431d