[packages/audacity] - fix loading private libraries - build with gtk3 - rel 2
baggins
baggins at pld-linux.org
Mon Sep 25 21:34:17 CEST 2023
commit bcf5fbff2630e668f02de3195eeccf145d1679fd
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Mon Sep 25 21:21:05 2023 +0200
- fix loading private libraries
- build with gtk3
- rel 2
audacity.spec | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)
---
diff --git a/audacity.spec b/audacity.spec
index 738411e..41663df 100644
--- a/audacity.spec
+++ b/audacity.spec
@@ -6,7 +6,7 @@
#
# Conditional build:
%bcond_without ffmpeg # build without ffmpeg support
-%bcond_with gtk3 # GTK+ 3.x instead of 2.x (not fully supported)
+%bcond_without gtk3 # GTK+ 3.x instead of 2.x (not fully supported)
%bcond_without mmx # MMX instructions
%bcond_without sse # SSE instructions
%bcond_without sse2 # SSE2 instructions
@@ -26,7 +26,7 @@ Summary(pl.UTF-8): Audacity - narzędzie do obróbki plików dźwiękowych
Summary(ru.UTF-8): Кроссплатформенный звуковой редактор
Name: audacity
Version: 3.3.3
-Release: 1
+Release: 2
License: GPL v2+
Group: X11/Applications/Sound
Source0: https://github.com/audacity/audacity/releases/download/Audacity-%{version}/%{name}-sources-%{version}.tar.gz
@@ -38,6 +38,7 @@ URL: http://audacityteam.org/
BuildRequires: alsa-lib-devel
BuildRequires: autoconf >= 2.59
BuildRequires: automake >= 1:1.9
+BuildRequires: chrpath
BuildRequires: expat-devel >= 1.95
# libavcodec >= 51.53 libavformat >= 52.12 libavutil
%{?with_ffmpeg:BuildRequires: ffmpeg-devel >= 0.8.0}
@@ -71,7 +72,8 @@ BuildRequires: udev-devel
BuildRequires: unzip
BuildRequires: vamp-devel >= 2.0
BuildRequires: which
-BuildRequires: wxGTK2-unicode-devel >= 3.1.3
+%{!?with_gtk3:BuildRequires: wxGTK2-unicode-devel >= 3.1.3}
+%{?with_gtk3:BuildRequires: wxGTK3-unicode-devel >= 3.1.3}
BuildRequires: xz
Requires(post,postun): shared-mime-info
Requires: flac-c++ >= 1.3.0
@@ -166,6 +168,14 @@ cd build
INSTALL_PATH=$RPM_BUILD_ROOT
cd ..
+# audacity needs to know where its libraries are...
+chrpath --replace %{_libdir}/%{name} $RPM_BUILD_ROOT/%{_bindir}/audacity
+
+# ..but the libraries don't need RPATH
+for lib in $RPM_BUILD_ROOT/%{_libdir}/%{name}/{,modules/}*.so ; do
+ chrpath --delete $lib
+done
+
install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/help
%{__tar} xf %{SOURCE1} -C $RPM_BUILD_ROOT%{_datadir}/%{name}/help
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/audacity.git/commitdiff/bcf5fbff2630e668f02de3195eeccf145d1679fd
More information about the pld-cvs-commit
mailing list