Accepting request 1216810 from X11:XOrg
OBS-URL: https://build.opensuse.org/request/show/1216810 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tigervnc?expand=0&rev=105
This commit is contained in:
commit
ad3d57f718
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Oct 18 12:10:51 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
- Do not ship rcFOO symlinks for CODE 16 (PED-266).
|
||||||
|
- No longer use update alternatives on CODE 16: there are no
|
||||||
|
alternatives for vncviewer present.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Sep 26 20:58:00 UTC 2024 - Fridrich Strba <fstrba@suse.com>
|
Thu Sep 26 20:58:00 UTC 2024 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
@ -25,6 +25,8 @@
|
|||||||
%else
|
%else
|
||||||
%define use_firewalld 0
|
%define use_firewalld 0
|
||||||
%endif
|
%endif
|
||||||
|
%define use_update_alternative 0%{?suse_version} >= 1315 && 0%{?suse_version} < 1600
|
||||||
|
%define with_rc_service_symlink 0%{?suse_version} && 0%{?suse_version} < 1600
|
||||||
%if 0%{?suse_version} < 1550
|
%if 0%{?suse_version} < 1550
|
||||||
%define _pam_vendordir %{_sysconfdir}/pam.d
|
%define _pam_vendordir %{_sysconfdir}/pam.d
|
||||||
%endif
|
%endif
|
||||||
@ -134,7 +136,7 @@ BuildRequires: pkgconfig(xorg-macros) >= 1.14
|
|||||||
BuildRequires: pkgconfig(xproto) >= 7.0.17
|
BuildRequires: pkgconfig(xproto) >= 7.0.17
|
||||||
BuildRequires: pkgconfig(xtrans) >= 1.2.2
|
BuildRequires: pkgconfig(xtrans) >= 1.2.2
|
||||||
BuildRequires: pkgconfig(zlib)
|
BuildRequires: pkgconfig(zlib)
|
||||||
%if 0%{?suse_version} >= 1315
|
%if %use_update_alternative
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun): update-alternatives
|
Requires(postun): update-alternatives
|
||||||
%endif
|
%endif
|
||||||
@ -293,8 +295,10 @@ popd
|
|||||||
|
|
||||||
%make_install
|
%make_install
|
||||||
|
|
||||||
|
%if %use_update_alternative
|
||||||
mv %{buildroot}%{_bindir}/vncviewer %{buildroot}%{_bindir}/vncviewer-tigervnc
|
mv %{buildroot}%{_bindir}/vncviewer %{buildroot}%{_bindir}/vncviewer-tigervnc
|
||||||
mv %{buildroot}%{_datadir}/man/man1/vncviewer.1 %{buildroot}%{_datadir}/man/man1/vncviewer-tigervnc.1
|
mv %{buildroot}%{_datadir}/man/man1/vncviewer.1 %{buildroot}%{_datadir}/man/man1/vncviewer-tigervnc.1
|
||||||
|
%endif
|
||||||
|
|
||||||
pushd unix/xserver
|
pushd unix/xserver
|
||||||
%make_install
|
%make_install
|
||||||
@ -325,14 +329,16 @@ install -D -m 644 %{SOURCE6} %{buildroot}%{_pam_vendordir}/vnc
|
|||||||
mv %{buildroot}%{_sysconfdir}/pam.d/tigervnc %{buildroot}%{_pam_vendordir}
|
mv %{buildroot}%{_sysconfdir}/pam.d/tigervnc %{buildroot}%{_pam_vendordir}
|
||||||
%endif
|
%endif
|
||||||
install -D -m 644 %{SOURCE8} %{buildroot}%{_datadir}/vnc/classes
|
install -D -m 644 %{SOURCE8} %{buildroot}%{_datadir}/vnc/classes
|
||||||
%if 0%{?suse_version} >= 1315
|
%if %use_update_alternative
|
||||||
ln -s -f %{_sysconfdir}/alternatives/vncviewer %{buildroot}%{_bindir}/vncviewer
|
ln -s -f %{_sysconfdir}/alternatives/vncviewer %{buildroot}%{_bindir}/vncviewer
|
||||||
ln -s -f %{_sysconfdir}/alternatives/vncviewer.1.gz %{buildroot}%{_mandir}/man1/vncviewer.1.gz
|
ln -s -f %{_sysconfdir}/alternatives/vncviewer.1.gz %{buildroot}%{_mandir}/man1/vncviewer.1.gz
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if %with_rc_service_symlink
|
||||||
mkdir -p %{buildroot}%{_sbindir}
|
mkdir -p %{buildroot}%{_sbindir}
|
||||||
ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rcxvnc
|
ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rcxvnc
|
||||||
ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rcxvnc-novnc
|
ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rcxvnc-novnc
|
||||||
|
%endif
|
||||||
|
|
||||||
mkdir -p %{buildroot}%{_sysconfdir}/vnc
|
mkdir -p %{buildroot}%{_sysconfdir}/vnc
|
||||||
|
|
||||||
@ -354,15 +360,15 @@ rm -rf %{buildroot}%{_datadir}/doc/tigervnc*
|
|||||||
%find_lang '%{name}'
|
%find_lang '%{name}'
|
||||||
%python3_fix_shebang
|
%python3_fix_shebang
|
||||||
|
|
||||||
|
%if %use_update_alternative
|
||||||
%post
|
%post
|
||||||
%if 0%{?suse_version} >= 1315
|
|
||||||
%_sbindir/update-alternatives \
|
%_sbindir/update-alternatives \
|
||||||
--install %{_bindir}/vncviewer vncviewer %{_bindir}/vncviewer-tigervnc 20 \
|
--install %{_bindir}/vncviewer vncviewer %{_bindir}/vncviewer-tigervnc 20 \
|
||||||
--slave %{_mandir}/man1/vncviewer.1.gz vncviewer.1.gz %{_mandir}/man1/vncviewer-tigervnc.1.gz
|
--slave %{_mandir}/man1/vncviewer.1.gz vncviewer.1.gz %{_mandir}/man1/vncviewer-tigervnc.1.gz
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if %use_update_alternative
|
||||||
%postun
|
%postun
|
||||||
%if 0%{?suse_version} >= 1315
|
|
||||||
if [ "$1" = 0 ] ; then
|
if [ "$1" = 0 ] ; then
|
||||||
"%{_sbindir}/update-alternatives" --remove vncviewer %{_bindir}/vncviewer-tigervnc
|
"%{_sbindir}/update-alternatives" --remove vncviewer %{_bindir}/vncviewer-tigervnc
|
||||||
fi
|
fi
|
||||||
@ -426,17 +432,19 @@ fi
|
|||||||
%postun -n libXvnc1 -p /sbin/ldconfig
|
%postun -n libXvnc1 -p /sbin/ldconfig
|
||||||
|
|
||||||
%files -f %{name}.lang
|
%files -f %{name}.lang
|
||||||
%ghost %{_bindir}/vncviewer
|
|
||||||
%{_bindir}/vncviewer-tigervnc
|
|
||||||
%license LICENCE.TXT
|
%license LICENCE.TXT
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
|
%if %use_update_alternative
|
||||||
|
%ghost %{_bindir}/vncviewer
|
||||||
|
%{_bindir}/vncviewer-tigervnc
|
||||||
%ghost %{_mandir}/man1/vncviewer.1.gz
|
%ghost %{_mandir}/man1/vncviewer.1.gz
|
||||||
%{_mandir}/man1/vncviewer-tigervnc.1%{?ext_man}
|
%{_mandir}/man1/vncviewer-tigervnc.1%{?ext_man}
|
||||||
%if 0%{?suse_version} >= 1315
|
|
||||||
%ghost %{_sysconfdir}/alternatives/vncviewer
|
%ghost %{_sysconfdir}/alternatives/vncviewer
|
||||||
%ghost %{_sysconfdir}/alternatives/vncviewer.1.gz
|
%ghost %{_sysconfdir}/alternatives/vncviewer.1.gz
|
||||||
|
%else
|
||||||
|
%{_bindir}/vncviewer
|
||||||
|
%{_mandir}/man1/vncviewer.1%{?ext_man}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%dir %{_datadir}/icons/hicolor/16x16
|
%dir %{_datadir}/icons/hicolor/16x16
|
||||||
%dir %{_datadir}/icons/hicolor/16x16/apps
|
%dir %{_datadir}/icons/hicolor/16x16/apps
|
||||||
%dir %{_datadir}/icons/hicolor/22x22
|
%dir %{_datadir}/icons/hicolor/22x22
|
||||||
@ -488,7 +496,9 @@ fi
|
|||||||
%{_unitdir}/xvnc.socket
|
%{_unitdir}/xvnc.socket
|
||||||
%{_unitdir}/xvnc.target
|
%{_unitdir}/xvnc.target
|
||||||
%{_sysusersdir}/vnc.conf
|
%{_sysusersdir}/vnc.conf
|
||||||
|
%if %with_rc_service_symlink
|
||||||
%{_sbindir}/rcxvnc
|
%{_sbindir}/rcxvnc
|
||||||
|
%endif
|
||||||
|
|
||||||
%dir %{_sysconfdir}/tigervnc
|
%dir %{_sysconfdir}/tigervnc
|
||||||
%config(noreplace) %{_sysconfdir}/tigervnc/vncserver*
|
%config(noreplace) %{_sysconfdir}/tigervnc/vncserver*
|
||||||
@ -537,7 +547,9 @@ fi
|
|||||||
%files -n xorg-x11-Xvnc-novnc
|
%files -n xorg-x11-Xvnc-novnc
|
||||||
%{_unitdir}/xvnc-novnc.service
|
%{_unitdir}/xvnc-novnc.service
|
||||||
%{_unitdir}/xvnc-novnc.socket
|
%{_unitdir}/xvnc-novnc.socket
|
||||||
|
%if %with_rc_service_symlink
|
||||||
%{_sbindir}/rcxvnc-novnc
|
%{_sbindir}/rcxvnc-novnc
|
||||||
|
%endif
|
||||||
|
|
||||||
%files -n xorg-x11-Xvnc-java
|
%files -n xorg-x11-Xvnc-java
|
||||||
%doc java/com/tigervnc/vncviewer/README
|
%doc java/com/tigervnc/vncviewer/README
|
||||||
|
Loading…
Reference in New Issue
Block a user