diff --git a/pulseaudio.spec b/pulseaudio.spec index 888145af00e7b932bcc9017176be07e9dda005b8..f03e083937e2b4a222033e8695afbd202e5694a5 100644 --- a/pulseaudio.spec +++ b/pulseaudio.spec @@ -6,7 +6,7 @@ Name: pulseaudio Summary: Improved Linux Sound Server Version: 13.0 -Release: 5 +Release: 6 License: LGPLv2+ URL: https://www.freedesktop.org/wiki/Software/PulseAudio Source0: https://freedesktop.org/software/pulseaudio/releases/pulseaudio-%{version}.tar.xz @@ -24,6 +24,7 @@ BuildRequires: xorg-x11-proto-devel libXtst-devel libXi-devel libSM-devel libX1 BuildRequires: libICE-devel xcb-util-devel openssl-devel orc-devel libtdb-devel speexdsp-devel BuildRequires: libasyncns-devel systemd-devel systemd dbus-devel libcap-devel fftw-devel BuildRequires: webrtc-audio-processing-devel +BuildRequires: chrpath Obsoletes: padevchooser < 1.0 Provides: %{name}-module-x11 %{name}-module-bluetooth %{name}-libs %{name}-libs-glib2 %{name}-utils %{name}-esound-compat %{name}-module-zeroconf %{name}-module-gconf %{name}-module-gsettings @@ -97,6 +98,14 @@ mv -fv $RPM_BUILD_ROOT/lib/udev/rules.d/90-pulseaudio.rules $RPM_BUILD_ROOT%{_pr %delete_la +## delete rpath +touch %{name}-%{_arch}.conf +echo "%{_libdir}/pulse-%{version}/modules" >> %{name}-%{_arch}.conf +echo "%{_libdir}/%{name}/" >> %{name}-%{_arch}.conf +find $RPM_BUILD_ROOT/ -type f -exec file {} ';' | grep "ELF" | awk -F ':' '{print $1}' | xargs -i chrpath --delete {} +mkdir -p $RPM_BUILD_ROOT/etc/ld.so.conf.d +install -p -m644 %{name}-%{_arch}.conf $RPM_BUILD_ROOT/etc/ld.so.conf.d/ + %check %make_build check || TESTS_ERROR=$? if [ "${TESTS_ERROR}" != "" ]; then @@ -131,6 +140,7 @@ exit 0 %config(noreplace) %{_sysconfdir}/pulse/daemon.conf %config(noreplace) %{_sysconfdir}/pulse/*.pa %config(noreplace) %{_sysconfdir}/pulse/client.conf +%{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf %{_sysconfdir}/dbus-1/system.d/pulseaudio-system.conf %{_sysconfdir}/xdg/autostart/pulseaudio.desktop %{bash_completionsdir}/* @@ -185,6 +195,10 @@ exit 0 %{_mandir}/man*/* %changelog +* Tue Nov 14 2023 lijianglin - 13.0-6 +- delete rpath info +- Issue: https://gitee.com/src-openeuler/pulseaudio/issues/I8EEX0 + * Thu Sep 08 2022 liweiganga - 13.0-5 - Fix gsettings-helper crash - Issue: https://gitee.com/src-openeuler/pulseaudio/issues/I4WAEZ