Pārlūkot izejas kodu

Sync RHEL packaging with Fedora

Makes it easier to compare changes with what people normally run.
tags/v1.12.90
Pierre Ossman pirms 1 gada
vecāks
revīzija
7c4ddec922

+ 52
- 82
contrib/packages/rpm/el7/SPECS/tigervnc.spec Parādīt failu


#defining macros needed by SELinux #defining macros needed by SELinux
%global selinuxtype targeted %global selinuxtype targeted
%global modulename vncsession %global modulename vncsession
Release: 1%{?snap:.%{snap}}%{?dist} Release: 1%{?snap:.%{snap}}%{?dist}
Summary: A TigerVNC remote display system Summary: A TigerVNC remote display system


Group: User Interface/Desktops
%global _hardened_build 1

License: GPLv2+ License: GPLv2+
Packager: Brian P. Hinz <bphinz@users.sourceforge.net>
URL: http://www.tigervnc.com URL: http://www.tigervnc.com


Source0: %{name}-%{version}%{?snap:-%{snap}}.tar.bz2 Source0: %{name}-%{version}%{?snap:-%{snap}}.tar.bz2
Source3: 10-libvnc.conf Source3: 10-libvnc.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)


BuildRequires: libX11-devel, automake, autoconf, libtool
BuildRequires: gettext, gettext-autopoint
BuildRequires: libXext-devel, xorg-x11-server-source, libXi-devel
BuildRequires: xorg-x11-xtrans-devel, xorg-x11-util-macros, libXtst-devel
BuildRequires: libdrm-devel, libXt-devel, pixman-devel
BuildRequires: make
BuildRequires: gcc-c++
BuildRequires: automake, autoconf, libtool, gettext, gettext-autopoint
BuildRequires: cmake3, desktop-file-utils
BuildRequires: libxkbfile-devel, openssl-devel, libpciaccess-devel BuildRequires: libxkbfile-devel, openssl-devel, libpciaccess-devel
BuildRequires: mesa-libGL-devel, libXinerama-devel, ImageMagick
BuildRequires: freetype-devel, libXdmcp-devel, libXfont2-devel
BuildRequires: libXrandr-devel, fltk-devel >= 1.3.3
BuildRequires: libjpeg-turbo-devel, gnutls-devel, pam-devel
BuildRequires: systemd, cmake3, selinux-policy-devel
BuildRequires: libpng-devel
BuildRequires: freetype-devel, libjpeg-turbo-devel, gnutls-devel, pam-devel
BuildRequires: zlib-devel BuildRequires: zlib-devel
# X11/graphics dependencies
BuildRequires: xorg-x11-server-source
BuildRequires: libXext-devel, libX11-devel, libXi-devel, libXfixes-devel
BuildRequires: libXdamage-devel, libXrandr-devel, libXt-devel, libXdmcp-devel
BuildRequires: libXinerama-devel, mesa-libGL-devel, libxshmfence-devel
BuildRequires: pixman-devel, libdrm-devel,
BuildRequires: xorg-x11-util-macros, xorg-x11-xtrans-devel, libXtst-devel
BuildRequires: xorg-x11-font-utils
BuildRequires: libXfont2-devel
# SELinux
BuildRequires: libselinux-devel, selinux-policy-devel, systemd

# TigerVNC 1.4.x requires fltk 1.3.3 for keyboard handling support
# See https://github.com/TigerVNC/tigervnc/issues/8, also bug #1208814
BuildRequires: fltk-devel >= 1.3.3
BuildRequires: xorg-x11-server-devel


Requires(post): coreutils Requires(post): coreutils
Requires(postun): coreutils Requires(postun): coreutils


Requires: hicolor-icon-theme Requires: hicolor-icon-theme
Requires: tigervnc-license = %{version}-%{release}
Requires: tigervnc-icons = %{version}-%{release}

Provides: vnc = 4.1.3-2, vnc-libs = 4.1.3-2
Obsoletes: vnc < 4.1.3-2, vnc-libs < 4.1.3-2
Provides: tightvnc = 1.5.0-0.15.20090204svn3586
Obsoletes: tightvnc < 1.5.0-0.15.20090204svn3586
Requires: tigervnc-license
Requires: tigervnc-icons


%description %description
Virtual Network Computing (VNC) is a remote display system which Virtual Network Computing (VNC) is a remote display system which


%package server %package server
Summary: A TigerVNC server Summary: A TigerVNC server
Group: User Interface/X
Provides: vnc-server = 4.1.3-2, vnc-libs = 4.1.3-2
Obsoletes: vnc-server < 4.1.3-2, vnc-libs < 4.1.3-2
Provides: tightvnc-server = 1.5.0-0.15.20090204svn3586
Obsoletes: tightvnc-server < 1.5.0-0.15.20090204svn3586
Requires: perl
Requires: perl-interpreter
Requires: tigervnc-server-minimal = %{version}-%{release} Requires: tigervnc-server-minimal = %{version}-%{release}
Requires: tigervnc-selinux = %{version}-%{release} Requires: tigervnc-selinux = %{version}-%{release}
Requires: xorg-x11-xauth Requires: xorg-x11-xauth
Requires: xorg-x11-xinit Requires: xorg-x11-xinit
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
Requires(post): systemd-sysv chkconfig


%description server %description server
The VNC system allows you to access the same desktop from a wide The VNC system allows you to access the same desktop from a wide


%package server-minimal %package server-minimal
Summary: A minimal installation of TigerVNC server Summary: A minimal installation of TigerVNC server
Group: User Interface/X
Requires(post): chkconfig
Requires(preun): chkconfig
Requires(preun): initscripts
Requires(postun): initscripts
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
Requires(post): systemd


Requires: mesa-dri-drivers, xkeyboard-config, xorg-x11-xkb-utils
Requires: tigervnc-license = %{version}-%{release}
Requires: mesa-dri-drivers, xkeyboard-config, xkbcomp
Requires: tigervnc-license, dbus-x11


%description server-minimal %description server-minimal
The VNC system allows you to access the same desktop from a wide The VNC system allows you to access the same desktop from a wide
of TigerVNC server, allowing others to access the desktop on your of TigerVNC server, allowing others to access the desktop on your
machine. machine.


%ifnarch s390 s390x
%package server-module %package server-module
Summary: TigerVNC module to Xorg Summary: TigerVNC module to Xorg
Group: User Interface/X
Provides: vnc-server = 4.1.3-2, vnc-libs = 4.1.3-2
Obsoletes: vnc-server < 4.1.3-2, vnc-libs < 4.1.3-2
Provides: tightvnc-server-module = 1.5.0-0.15.20090204svn3586
Obsoletes: tightvnc-server-module < 1.5.0-0.15.20090204svn3586
Requires: xorg-x11-server-Xorg
Requires: tigervnc-license = %{version}-%{release}
Requires: xorg-x11-server-Xorg %(xserver-sdk-abi-requires ansic) %(xserver-sdk-abi-requires videodrv)
Requires: tigervnc-license


%description server-module %description server-module
This package contains libvnc.so module to X server, allowing others This package contains libvnc.so module to X server, allowing others
to access the desktop on your machine. to access the desktop on your machine.
%endif


%package license %package license
Summary: License of TigerVNC suite Summary: License of TigerVNC suite
Group: User Interface/X
BuildArch: noarch BuildArch: noarch


%description license %description license


%package icons %package icons
Summary: Icons for TigerVNC viewer Summary: Icons for TigerVNC viewer
Group: User Interface/X
BuildArch: noarch BuildArch: noarch


%description icons %description icons
runs properly under an environment with SELinux enabled. runs properly under an environment with SELinux enabled.


%prep %prep
rm -rf $RPM_BUILD_ROOT
%setup -q -n %{name}-%{version}%{?snap:-%{snap}} %setup -q -n %{name}-%{version}%{?snap:-%{snap}}


# There is no appstream package on CentOS 7, and hence no metainfo.its # There is no appstream package on CentOS 7, and hence no metainfo.its
%else %else
export CFLAGS="$RPM_OPT_FLAGS -fpic" export CFLAGS="$RPM_OPT_FLAGS -fpic"
%endif %endif
export CXXFLAGS="$CFLAGS"
export CPPFLAGS="$CXXFLAGS"
export CXXFLAGS="$CFLAGS -std=c++11"


export CMAKE_EXE_LINKER_FLAGS=$LDFLAGS
%cmake3


%{cmake3} -G"Unix Makefiles" -DBUILD_STATIC=off -DENABLE_H264=off
make %{?_smp_mflags}
%cmake3_build


pushd unix/xserver pushd unix/xserver

autoreconf -fiv autoreconf -fiv
%configure \ %configure \
--disable-xorg --disable-xnest --disable-xvfb --disable-dmx \ --disable-xorg --disable-xnest --disable-xvfb --disable-dmx \
--disable-xwin --disable-xephyr --disable-kdrive --with-pic \
--disable-static --disable-xwayland \
--disable-xwin --disable-xephyr --disable-kdrive --disable-xwayland \
--with-pic --disable-static \
--with-default-font-path="catalogue:%{_sysconfdir}/X11/fontpath.d,built-ins" \ --with-default-font-path="catalogue:%{_sysconfdir}/X11/fontpath.d,built-ins" \
--with-fontdir=%{_datadir}/X11/fonts \ --with-fontdir=%{_datadir}/X11/fonts \
--with-xkb-output=%{_localstatedir}/lib/xkb \ --with-xkb-output=%{_localstatedir}/lib/xkb \
--enable-install-libxf86config \ --enable-install-libxf86config \
--enable-glx --disable-dri --enable-dri2 --disable-dri3 \ --enable-glx --disable-dri --enable-dri2 --disable-dri3 \
--disable-wayland \
--disable-present \
--disable-config-dbus \
--disable-unit-tests \
--disable-config-hal \ --disable-config-hal \
--disable-config-udev \ --disable-config-udev \
--with-dri-driver-path=%{_libdir}/dri \ --with-dri-driver-path=%{_libdir}/dri \
--without-dtrace \ --without-dtrace \
--disable-unit-tests \
--disable-devel-docs \ --disable-devel-docs \
--disable-selective-werror --disable-selective-werror


popd popd


%install %install
make install DESTDIR=$RPM_BUILD_ROOT
%cmake3_install


pushd unix/xserver/hw/vnc pushd unix/xserver/hw/vnc
make install DESTDIR=$RPM_BUILD_ROOT
%make_install
popd popd


# Install systemd unit file
pushd unix/vncserver/selinux pushd unix/vncserver/selinux
make install DESTDIR=$RPM_BUILD_ROOT
make install DESTDIR=%{buildroot}
popd popd


%find_lang %{name} %{name}.lang %find_lang %{name} %{name}.lang


# remove unwanted files # remove unwanted files
rm -f $RPM_BUILD_ROOT%{_libdir}/xorg/modules/extensions/libvnc.la
rm -f %{buildroot}%{_libdir}/xorg/modules/extensions/libvnc.la


%ifarch s390 s390x
rm -f $RPM_BUILD_ROOT%{_libdir}/xorg/modules/extensions/libvnc.so
%else
mkdir -p %{buildroot}%{_sysconfdir}/X11/xorg.conf.d/ mkdir -p %{buildroot}%{_sysconfdir}/X11/xorg.conf.d/
install -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/X11/xorg.conf.d/10-libvnc.conf install -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/X11/xorg.conf.d/10-libvnc.conf
%endif

%clean
rm -rf $RPM_BUILD_ROOT


%post %post
touch -c %{_datadir}/icons/hicolor touch -c %{_datadir}/icons/hicolor
%selinux_relabel_post -s %{selinuxtype} %selinux_relabel_post -s %{selinuxtype}
fi fi



%files -f %{name}.lang %files -f %{name}.lang
%defattr(-,root,root,-)
%doc %{_docdir}/%{name}/README.rst %doc %{_docdir}/%{name}/README.rst
%{_bindir}/vncviewer %{_bindir}/vncviewer
%{_datadir}/applications/* %{_datadir}/applications/*
%{_mandir}/man1/vncviewer.1* %{_mandir}/man1/vncviewer.1*


%files server %files server
%defattr(-,root,root,-)
%config(noreplace) %{_sysconfdir}/pam.d/tigervnc %config(noreplace) %{_sysconfdir}/pam.d/tigervnc
%config(noreplace) %{_sysconfdir}/tigervnc/vncserver-config-defaults %config(noreplace) %{_sysconfdir}/tigervnc/vncserver-config-defaults
%config(noreplace) %{_sysconfdir}/tigervnc/vncserver-config-mandatory %config(noreplace) %{_sysconfdir}/tigervnc/vncserver-config-mandatory
%doc %{_docdir}/%{name}/HOWTO.md %doc %{_docdir}/%{name}/HOWTO.md


%files server-minimal %files server-minimal
%defattr(-,root,root,-)
%{_bindir}/vncconfig %{_bindir}/vncconfig
%{_bindir}/vncpasswd %{_bindir}/vncpasswd
%{_bindir}/Xvnc %{_bindir}/Xvnc
%{_mandir}/man1/vncpasswd.1* %{_mandir}/man1/vncpasswd.1*
%{_mandir}/man1/vncconfig.1* %{_mandir}/man1/vncconfig.1*


%ifnarch s390 s390x
%files server-module %files server-module
%defattr(-,root,root,-)
%{_libdir}/xorg/modules/extensions/libvnc.so %{_libdir}/xorg/modules/extensions/libvnc.so
%config %{_sysconfdir}/X11/xorg.conf.d/10-libvnc.conf
%endif
%config(noreplace) %{_sysconfdir}/X11/xorg.conf.d/10-libvnc.conf


%files license %files license
%doc %{_docdir}/%{name}/LICENCE.TXT %doc %{_docdir}/%{name}/LICENCE.TXT


%files icons %files icons
%defattr(-,root,root,-)
%{_datadir}/icons/hicolor/*/apps/* %{_datadir}/icons/hicolor/*/apps/*


%files selinux %files selinux
%ghost %verify(not md5 size mtime) %{_sharedstatedir}/selinux/%{selinuxtype}/active/modules/200/%{modulename} %ghost %verify(not md5 size mtime) %{_sharedstatedir}/selinux/%{selinuxtype}/active/modules/200/%{modulename}


%changelog %changelog
* Fri Aug 19 2022 Pierre Ossman <ossman@cendio.se> 1.12.80-1
- Synced with current Fedora packaging

* Tue May 18 2021 Jan Grulich <jgrulich@redhat.com> 1.11.0-1 * Tue May 18 2021 Jan Grulich <jgrulich@redhat.com> 1.11.0-1
- SELinux package improvements - SELinux package improvements


* Sun Dec 09 2018 Mark Mielke <mmielke@ciena.com> 1.9.80-3 * Sun Dec 09 2018 Mark Mielke <mmielke@ciena.com> 1.9.80-3
- Update package dependencies to require version alignment between packages. - Update package dependencies to require version alignment between packages.


* Sun Nov 26 2018 Brian P. Hinz <bphinz@users.sourceforge.net> 1.9.80-2
* Mon Nov 26 2018 Brian P. Hinz <bphinz@users.sourceforge.net> 1.9.80-2
- Bumped Xorg version to 1.20 - Bumped Xorg version to 1.20


* Sun Jul 22 2018 Brian P. Hinz <bphinz@users.sourceforge.net> 1.9.80-1 * Sun Jul 22 2018 Brian P. Hinz <bphinz@users.sourceforge.net> 1.9.80-1

+ 49
- 96
contrib/packages/rpm/el8/SPECS/tigervnc.spec Parādīt failu


#defining macros needed by SELinux #defining macros needed by SELinux
%global selinuxtype targeted %global selinuxtype targeted
%global modulename vncsession %global modulename vncsession
Release: 1%{?snap:.%{snap}}%{?dist} Release: 1%{?snap:.%{snap}}%{?dist}
Summary: A TigerVNC remote display system Summary: A TigerVNC remote display system


Group: User Interface/Desktops
%global _hardened_build 1

License: GPLv2+ License: GPLv2+
Packager: Brian P. Hinz <bphinz@users.sourceforge.net>
URL: http://www.tigervnc.com URL: http://www.tigervnc.com


Source0: %{name}-%{version}%{?snap:-%{snap}}.tar.bz2 Source0: %{name}-%{version}%{?snap:-%{snap}}.tar.bz2
Source3: 10-libvnc.conf Source3: 10-libvnc.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)


BuildRequires: libX11-devel, automake, autoconf, libtool
BuildRequires: gettext, gettext-autopoint, appstream
BuildRequires: libXext-devel, xorg-x11-server-source, libXi-devel
BuildRequires: xorg-x11-xtrans-devel, xorg-x11-util-macros, libXtst-devel
BuildRequires: libdrm-devel, libXt-devel, pixman-devel
BuildRequires: make
BuildRequires: gcc-c++
BuildRequires: automake, autoconf, libtool, gettext, gettext-autopoint
BuildRequires: cmake, desktop-file-utils, appstream
BuildRequires: libxkbfile-devel, openssl-devel, libpciaccess-devel BuildRequires: libxkbfile-devel, openssl-devel, libpciaccess-devel
BuildRequires: mesa-libGL-devel, libXinerama-devel, ImageMagick
BuildRequires: freetype-devel, libXdmcp-devel, libXfont2-devel
BuildRequires: libXrandr-devel, fltk-devel >= 1.3.3
BuildRequires: libjpeg-turbo-devel, gnutls-devel, pam-devel
BuildRequires: systemd, cmake, selinux-policy-devel
BuildRequires: libpng-devel
BuildRequires: freetype-devel, libjpeg-turbo-devel, gnutls-devel, pam-devel
BuildRequires: zlib-devel BuildRequires: zlib-devel
BuildRequires: gcc-c++, libxshmfence-devel
# X11/graphics dependencies
BuildRequires: xorg-x11-server-source
BuildRequires: libXext-devel, libX11-devel, libXi-devel, libXfixes-devel
BuildRequires: libXdamage-devel, libXrandr-devel, libXt-devel, libXdmcp-devel
BuildRequires: libXinerama-devel, mesa-libGL-devel, libxshmfence-devel
BuildRequires: pixman-devel, libdrm-devel,
BuildRequires: xorg-x11-util-macros, xorg-x11-xtrans-devel, libXtst-devel
BuildRequires: xorg-x11-font-utils
BuildRequires: libXfont2-devel
# SELinux
BuildRequires: libselinux-devel, selinux-policy-devel, systemd


Requires(post): coreutils
Requires(postun): coreutils
# TigerVNC 1.4.x requires fltk 1.3.3 for keyboard handling support
# See https://github.com/TigerVNC/tigervnc/issues/8, also bug #1208814
BuildRequires: fltk-devel >= 1.3.3
BuildRequires: xorg-x11-server-devel


Requires: hicolor-icon-theme Requires: hicolor-icon-theme
Requires: tigervnc-license = %{version}-%{release}
Requires: tigervnc-icons = %{version}-%{release}

Provides: vnc = 4.1.3-2, vnc-libs = 4.1.3-2
Obsoletes: vnc < 4.1.3-2, vnc-libs < 4.1.3-2
Provides: tightvnc = 1.5.0-0.15.20090204svn3586
Obsoletes: tightvnc < 1.5.0-0.15.20090204svn3586
Requires: tigervnc-license
Requires: tigervnc-icons


%description %description
Virtual Network Computing (VNC) is a remote display system which Virtual Network Computing (VNC) is a remote display system which


%package server %package server
Summary: A TigerVNC server Summary: A TigerVNC server
Group: User Interface/X
Provides: vnc-server = 4.1.3-2, vnc-libs = 4.1.3-2
Obsoletes: vnc-server < 4.1.3-2, vnc-libs < 4.1.3-2
Provides: tightvnc-server = 1.5.0-0.15.20090204svn3586
Obsoletes: tightvnc-server < 1.5.0-0.15.20090204svn3586
Requires: perl-interpreter Requires: perl-interpreter
Requires: tigervnc-server-minimal = %{version}-%{release} Requires: tigervnc-server-minimal = %{version}-%{release}
Requires: (%{name}-selinux if selinux-policy-%{selinuxtype}) Requires: (%{name}-selinux if selinux-policy-%{selinuxtype})
Requires: xorg-x11-xauth Requires: xorg-x11-xauth
Requires: xorg-x11-xinit Requires: xorg-x11-xinit
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
Requires(post): systemd-sysv chkconfig


%description server %description server
The VNC system allows you to access the same desktop from a wide The VNC system allows you to access the same desktop from a wide


%package server-minimal %package server-minimal
Summary: A minimal installation of TigerVNC server Summary: A minimal installation of TigerVNC server
Group: User Interface/X
Requires(post): chkconfig
Requires(preun): chkconfig
Requires(preun): initscripts
Requires(postun): initscripts
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
Requires(post): systemd


Requires: mesa-dri-drivers, xkeyboard-config, xorg-x11-xkb-utils
Requires: tigervnc-license = %{version}-%{release}
Requires: mesa-dri-drivers, xkeyboard-config, xkbcomp
Requires: tigervnc-license, dbus-x11


%description server-minimal %description server-minimal
The VNC system allows you to access the same desktop from a wide The VNC system allows you to access the same desktop from a wide
of TigerVNC server, allowing others to access the desktop on your of TigerVNC server, allowing others to access the desktop on your
machine. machine.


%ifnarch s390 s390x
%package server-module %package server-module
Summary: TigerVNC module to Xorg Summary: TigerVNC module to Xorg
Group: User Interface/X
Provides: vnc-server = 4.1.3-2, vnc-libs = 4.1.3-2
Obsoletes: vnc-server < 4.1.3-2, vnc-libs < 4.1.3-2
Provides: tightvnc-server-module = 1.5.0-0.15.20090204svn3586
Obsoletes: tightvnc-server-module < 1.5.0-0.15.20090204svn3586
Requires: xorg-x11-server-Xorg
Requires: tigervnc-license = %{version}-%{release}
Requires: xorg-x11-server-Xorg %(xserver-sdk-abi-requires ansic) %(xserver-sdk-abi-requires videodrv)
Requires: tigervnc-license


%description server-module %description server-module
This package contains libvnc.so module to X server, allowing others This package contains libvnc.so module to X server, allowing others
to access the desktop on your machine. to access the desktop on your machine.
%endif


%package license %package license
Summary: License of TigerVNC suite Summary: License of TigerVNC suite
Group: User Interface/X
BuildArch: noarch BuildArch: noarch


%description license %description license


%package icons %package icons
Summary: Icons for TigerVNC viewer Summary: Icons for TigerVNC viewer
Group: User Interface/X
BuildArch: noarch BuildArch: noarch


%description icons %description icons
runs properly under an environment with SELinux enabled. runs properly under an environment with SELinux enabled.


%prep %prep
rm -rf $RPM_BUILD_ROOT
%setup -q -n %{name}-%{version}%{?snap:-%{snap}} %setup -q -n %{name}-%{version}%{?snap:-%{snap}}


cp -r /usr/share/xorg-x11-server-source/* unix/xserver cp -r /usr/share/xorg-x11-server-source/* unix/xserver
%else %else
export CFLAGS="$RPM_OPT_FLAGS -fpic" export CFLAGS="$RPM_OPT_FLAGS -fpic"
%endif %endif
export CXXFLAGS="$CFLAGS"
export CPPFLAGS="$CXXFLAGS"
export CXXFLAGS="$CFLAGS -std=c++11"


export CMAKE_EXE_LINKER_FLAGS=$LDFLAGS
%cmake


%{cmake} -G"Unix Makefiles" -DBUILD_STATIC=off -DENABLE_H264=off
make %{?_smp_mflags}
%cmake_build


pushd unix/xserver pushd unix/xserver

autoreconf -fiv autoreconf -fiv
%configure \ %configure \
--disable-xorg --disable-xnest --disable-xvfb --disable-dmx \ --disable-xorg --disable-xnest --disable-xvfb --disable-dmx \
--disable-xwin --disable-xephyr --disable-kdrive --with-pic \
--disable-static --disable-xwayland \
--disable-xwin --disable-xephyr --disable-kdrive --disable-xwayland \
--with-pic --disable-static \
--with-default-font-path="catalogue:%{_sysconfdir}/X11/fontpath.d,built-ins" \ --with-default-font-path="catalogue:%{_sysconfdir}/X11/fontpath.d,built-ins" \
--with-fontdir=%{_datadir}/X11/fonts \ --with-fontdir=%{_datadir}/X11/fonts \
--with-xkb-output=%{_localstatedir}/lib/xkb \ --with-xkb-output=%{_localstatedir}/lib/xkb \
--enable-install-libxf86config \ --enable-install-libxf86config \
--enable-glx --disable-dri --enable-dri2 --disable-dri3 \ --enable-glx --disable-dri --enable-dri2 --disable-dri3 \
--disable-wayland \
--disable-present \
--disable-config-dbus \
--disable-unit-tests \
--disable-config-hal \ --disable-config-hal \
--disable-config-udev \ --disable-config-udev \
--with-dri-driver-path=%{_libdir}/dri \ --with-dri-driver-path=%{_libdir}/dri \
--without-dtrace \ --without-dtrace \
--disable-unit-tests \
--disable-devel-docs \ --disable-devel-docs \
--disable-selective-werror --disable-selective-werror


popd popd


%install %install
make install DESTDIR=$RPM_BUILD_ROOT
%cmake_install


pushd unix/xserver/hw/vnc pushd unix/xserver/hw/vnc
make install DESTDIR=$RPM_BUILD_ROOT
%make_install
popd popd


# Install systemd unit file
pushd unix/vncserver/selinux pushd unix/vncserver/selinux
make install DESTDIR=$RPM_BUILD_ROOT
make install DESTDIR=%{buildroot}
popd popd


%find_lang %{name} %{name}.lang %find_lang %{name} %{name}.lang


# remove unwanted files # remove unwanted files
rm -f $RPM_BUILD_ROOT%{_libdir}/xorg/modules/extensions/libvnc.la
rm -f %{buildroot}%{_libdir}/xorg/modules/extensions/libvnc.la


%ifarch s390 s390x
rm -f $RPM_BUILD_ROOT%{_libdir}/xorg/modules/extensions/libvnc.so
%else
mkdir -p %{buildroot}%{_sysconfdir}/X11/xorg.conf.d/ mkdir -p %{buildroot}%{_sysconfdir}/X11/xorg.conf.d/
install -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/X11/xorg.conf.d/10-libvnc.conf install -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/X11/xorg.conf.d/10-libvnc.conf
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%post
touch -c %{_datadir}/icons/hicolor
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
%{_bindir}/gtk-update-icon-cache -q %{_datadir}/icons/hicolor || :
fi

%postun
touch -c %{_datadir}/icons/hicolor
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
%{_bindir}/gtk-update-icon-cache -q %{_datadir}/icons/hicolor || :
fi



%pre selinux %pre selinux
%selinux_relabel_pre -s %{selinuxtype} %selinux_relabel_pre -s %{selinuxtype}
%selinux_relabel_post -s %{selinuxtype} %selinux_relabel_post -s %{selinuxtype}
fi fi



%files -f %{name}.lang %files -f %{name}.lang
%defattr(-,root,root,-)
%doc %{_docdir}/%{name}/README.rst %doc %{_docdir}/%{name}/README.rst
%{_bindir}/vncviewer %{_bindir}/vncviewer
%{_datadir}/applications/* %{_datadir}/applications/*
%{_mandir}/man1/vncviewer.1* %{_mandir}/man1/vncviewer.1*


%files server %files server
%defattr(-,root,root,-)
%config(noreplace) %{_sysconfdir}/pam.d/tigervnc %config(noreplace) %{_sysconfdir}/pam.d/tigervnc
%config(noreplace) %{_sysconfdir}/tigervnc/vncserver-config-defaults %config(noreplace) %{_sysconfdir}/tigervnc/vncserver-config-defaults
%config(noreplace) %{_sysconfdir}/tigervnc/vncserver-config-mandatory %config(noreplace) %{_sysconfdir}/tigervnc/vncserver-config-mandatory
%doc %{_docdir}/%{name}/HOWTO.md %doc %{_docdir}/%{name}/HOWTO.md


%files server-minimal %files server-minimal
%defattr(-,root,root,-)
%{_bindir}/vncconfig %{_bindir}/vncconfig
%{_bindir}/vncpasswd %{_bindir}/vncpasswd
%{_bindir}/Xvnc %{_bindir}/Xvnc
%{_mandir}/man1/vncpasswd.1* %{_mandir}/man1/vncpasswd.1*
%{_mandir}/man1/vncconfig.1* %{_mandir}/man1/vncconfig.1*


%ifnarch s390 s390x
%files server-module %files server-module
%defattr(-,root,root,-)
%{_libdir}/xorg/modules/extensions/libvnc.so %{_libdir}/xorg/modules/extensions/libvnc.so
%config %{_sysconfdir}/X11/xorg.conf.d/10-libvnc.conf
%endif
%config(noreplace) %{_sysconfdir}/X11/xorg.conf.d/10-libvnc.conf


%files license %files license
%doc %{_docdir}/%{name}/LICENCE.TXT %doc %{_docdir}/%{name}/LICENCE.TXT


%files icons %files icons
%defattr(-,root,root,-)
%{_datadir}/icons/hicolor/*/apps/* %{_datadir}/icons/hicolor/*/apps/*


%files selinux %files selinux
%ghost %verify(not md5 size mtime) %{_sharedstatedir}/selinux/%{selinuxtype}/active/modules/200/%{modulename} %ghost %verify(not md5 size mtime) %{_sharedstatedir}/selinux/%{selinuxtype}/active/modules/200/%{modulename}


%changelog %changelog
* Fri Aug 19 2022 Pierre Ossman <ossman@cendio.se> 1.12.80-1
- Synced with current Fedora packaging

* Tue May 18 2021 Jan Grulich <jgrulich@redhat.com> 1.11.0-1 * Tue May 18 2021 Jan Grulich <jgrulich@redhat.com> 1.11.0-1
- SELinux package improvements - SELinux package improvements



Notiek ielāde…
Atcelt
Saglabāt