add ovirt-vmconsole.yaml.

update to 1.0.9-1
This commit is contained in:
yahoohey 2021-07-02 07:15:20 +00:00 committed by chenjian
parent cde21de6a4
commit f20fdb8e0a
4 changed files with 13 additions and 14 deletions

Binary file not shown.

Binary file not shown.

View File

@ -1,10 +1,10 @@
%global package_version 1.0.7-2
%global package_version 1.0.9-1
%global selinuxtype targeted
%global moduletype contrib
%global modulename ovirt_vmconsole
%global default_python_ver %(%{__python} -c "from sys import version_info; print(version_info[0])")
%global default_python_ver 3
%if 0%{?default_python_ver} > 2
%global with_python3 1
@ -18,8 +18,8 @@
Summary: oVirt VM console
Name: ovirt-vmconsole
Version: 1.0.7
Release: 2%{?release_suffix}%{?dist}
Version: 1.0.9
Release: 1
License: GPLv3
URL: http://www.ovirt.org
Source: http://resources.ovirt.org/pub/src/%{name}/%{name}-%{package_version}.tar.gz
@ -27,6 +27,7 @@ Source: http://resources.ovirt.org/pub/src/%{name}/%{name}-%{package_version}.t
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: checkpolicy
BuildRequires: gcc
BuildRequires: gettext
BuildRequires: openssh-clients
BuildRequires: openssh-server
@ -133,25 +134,15 @@ getent passwd %{name} >/dev/null || \
%post
%selinux_modules_install -s %{selinuxtype} -p 400 %{_datadir}/selinux/packages/ovirt-vmconsole/%{modulename}.pp
# per https://fedoraproject.org/wiki/Packaging:Scriptlets#Syntax
# this happens on uninstall - recommended by
# https://fedoraproject.org/wiki/PackagingDrafts/SELinux_Independent_Policy#The_.25post_Section
%postun
if [ $1 -eq 0 ]; then
# see [policy-priority]
%selinux_modules_uninstall -s %{selinuxtype} -p 400 %{modulename}
fi
# [ordering]
# see https://fedoraproject.org/wiki/Packaging:Scriptlets#Ordering
%posttrans
%selinux_relabel_post -s %{selinuxtype}
# [ignore-errors]
# see https://fedoraproject.org/wiki/PackagingDrafts/SELinux_Independent_Policy#Port_Labeling
#
# per https://fedoraproject.org/wiki/Packaging:Scriptlets#Syntax it seems that it is preferred
# to hide and swallow non-zero exit codes in the scriptlets. Let it be.
%post host
if %{_sbindir}/selinuxenabled ; then
semanage port -a -t ovirt_vmconsole_host_port_t -p tcp 2223 &> /dev/null || :
@ -225,6 +216,7 @@ install -m 644 "src/ovirt-vmconsole-proxy/ovirt-vmconsole-proxy-sshd/ovirt-vmcon
%files
%dir %{_datadir}/%{name}
%dir %{_sysconfdir}/%{name}
%dir %{_datadir}/%{name}/empty
%if 0%{?with_python2}
%dir %{python_sitelib}/ovirt_vmconsole
%{python_sitelib}/ovirt_vmconsole/__init__.py*
@ -255,5 +247,8 @@ install -m 644 "src/ovirt-vmconsole-proxy/ovirt-vmconsole-proxy-sshd/ovirt-vmcon
%{_unitdir}/ovirt-vmconsole-proxy-sshd.service
%changelog
* Tue Jul 6 2021 chenjian <chenjian@kylinos.cn> - 1.0.9-1
- update to 1.0.9-1
* Thu Mar 5 2020 di.wang <di.wang@cs2c.com.cn> - 1.0.7-2
- Package Initialization

4
ovirt-vmconsole.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: oVirt/ovirt-vmconsole
tag_prefix: "^v"
seperator: "."