mirror of
https://gitlab.com/virt-viewer/virt-viewer.git
synced 2025-01-06 13:17:45 +03:00
virt-viewer.spec.in: fix build after spice-xpi-client removal
This fixes commit 140cb84c25
, where we
removed the spice-xpi-client-remote-viewer.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
parent
5d04a426db
commit
bf39970a1f
@ -89,9 +89,6 @@ autoreconf -if
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
%__make install DESTDIR=$RPM_BUILD_ROOT
|
||||
mkdir -p %{buildroot}%{_libexecdir}
|
||||
touch %{buildroot}%{_libexecdir}/spice-xpi-client
|
||||
install -m 0755 data/spice-xpi-client-remote-viewer %{buildroot}%{_libexecdir}/
|
||||
%find_lang %{name}
|
||||
|
||||
%clean
|
||||
@ -100,8 +97,6 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%post
|
||||
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
||||
/bin/touch --no-create %{_datadir}/mime/packages &> /dev/null || :
|
||||
%{_sbindir}/update-alternatives --install %{_libexecdir}/spice-xpi-client \
|
||||
spice-xpi-client %{_libexecdir}/spice-xpi-client-remote-viewer 25
|
||||
/usr/bin/update-desktop-database -q %{_datadir}/applications
|
||||
|
||||
%postun
|
||||
@ -109,7 +104,6 @@ if [ $1 -eq 0 ] ; then
|
||||
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
|
||||
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
||||
/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || :
|
||||
%{_sbindir}/update-alternatives --remove spice-xpi-client %{_libexecdir}/spice-xpi-client-remote-viewer
|
||||
fi
|
||||
/usr/bin/update-desktop-database -q %{_datadir}/applications
|
||||
|
||||
@ -127,8 +121,6 @@ fi
|
||||
%{_datadir}/applications/remote-viewer.desktop
|
||||
%{_datadir}/appdata/remote-viewer.appdata.xml
|
||||
%{_datadir}/mime/packages/virt-viewer-mime.xml
|
||||
%ghost %{_libexecdir}/spice-xpi-client
|
||||
%{_libexecdir}/spice-xpi-client-remote-viewer
|
||||
%{_mandir}/man1/virt-viewer.1*
|
||||
%{_mandir}/man1/remote-viewer.1*
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user