%bcond_with x
%define udev_dir %{_prefix}/lib/udev
+%define upgrade_script_dir %{_datadir}/upgrade/scripts
Name: pulseaudio
Summary: Improved Linux sound server
Version: 5.0
-Release: 88
+Release: 89
Group: Multimedia/Audio
License: LGPL-2.1+
URL: http://pulseaudio.org
Source0: http://www.freedesktop.org/software/pulseaudio/releases/%{name}-%{version}.tar.gz
Source99: baselibs.conf
Source1001: pulseaudio.manifest
+Source1: 500.pulseaudio-upgrade.patch.sh
BuildRequires: libtool-ltdl-devel
BuildRequires: libtool
BuildRequires: intltool
ln -s ../pulseaudio.service %{buildroot}%{_unitdir}/multi-user.target.wants/pulseaudio.service
%endif
+mkdir -p %{buildroot}%{upgrade_script_dir}
+cp %{SOURCE1} %{buildroot}%{upgrade_script_dir}/
+
fdupes %{buildroot}%{_datadir}
fdupes %{buildroot}%{_includedir}
%exclude %config(noreplace) /etc/bash_completion.d/pulseaudio-bash-completion.sh
+%{upgrade_script_dir}/500.pulseaudio-upgrade.patch.sh
+
%files -n libpulse
%manifest %{name}.manifest
%defattr(-,root,root,-)