diff --git a/pulseaudio.spec b/pulseaudio.spec index ccdfff43b9e06c5d72df7184165fa12b06342b60..04c6ffed1ca1fa33aa4fe85d341e554a260eda56 100644 --- a/pulseaudio.spec +++ b/pulseaudio.spec @@ -6,7 +6,7 @@ Name: pulseaudio Summary: Improved Linux Sound Server Version: 16.1 -Release: 2 +Release: 3 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 @@ -211,6 +220,7 @@ exit 0 %files libs %dir %{_sysconfdir}/pulse/ %config(noreplace) %{_sysconfdir}/pulse/client.conf +%{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf %{_libdir}/libpulse.so.0* %{_libdir}/libpulse-simple.so.0* %dir %{_libdir}/pulseaudio/ @@ -232,6 +242,9 @@ exit 0 %{_mandir}/man*/* %changelog +* Thu Sep 22 2022 lijianglin - 16.1-3 +- delete rpath info + * Mon Aug 15 2022 luoqing - 16.1-2 - fix the problem that autostart failed