diff --git a/pulseaudio.spec b/pulseaudio.spec index 3375e066ced8651e14a718731f08afb9ec55350f..ab52f9284b5d6df4917962f4c8e8d9f9fd400d51 100644 --- a/pulseaudio.spec +++ b/pulseaudio.spec @@ -6,7 +6,7 @@ Name: pulseaudio Summary: Improved Linux Sound Server Version: 15.0 -Release: 9 +Release: 10 License: LGPLv2+ URL: https://www.freedesktop.org/wiki/Software/PulseAudio Source0: https://freedesktop.org/software/pulseaudio/releases/pulseaudio-%{version}.tar.xz @@ -25,6 +25,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: pkgconfig(gstreamer-1.0) pkgconfig(gstreamer-app-1.0) pkgconfig(gstreamer-rtp-1.0) +BuildRequires: chrpath Obsoletes: padevchooser < 1.0 Provides: %{name}-module-x11 %{name}-utils %{name}-esound-compat %{name}-module-zeroconf %{name}-module-gsettings @@ -124,6 +125,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 %meson_test || TESTS_ERROR=$? if [ "${TESTS_ERROR}" != "" ]; then @@ -158,6 +167,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}/* @@ -232,6 +242,9 @@ exit 0 %{_mandir}/man*/* %changelog +* Tue Sep 20 2022 luochunsheng - 15.0-10 +- delete rpath info + * Mon Aug 15 2022 luoqing - 15.0-9 - fix the problem that autostart failed