add ovirt-vmconsole.yaml.
update to 1.0.9-1
This commit is contained in:
parent
cde21de6a4
commit
f20fdb8e0a
Binary file not shown.
BIN
ovirt-vmconsole-1.0.9-1.tar.gz
Normal file
BIN
ovirt-vmconsole-1.0.9-1.tar.gz
Normal file
Binary file not shown.
@ -1,10 +1,10 @@
|
|||||||
%global package_version 1.0.7-2
|
%global package_version 1.0.9-1
|
||||||
|
|
||||||
%global selinuxtype targeted
|
%global selinuxtype targeted
|
||||||
%global moduletype contrib
|
%global moduletype contrib
|
||||||
%global modulename ovirt_vmconsole
|
%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
|
%if 0%{?default_python_ver} > 2
|
||||||
%global with_python3 1
|
%global with_python3 1
|
||||||
@ -18,8 +18,8 @@
|
|||||||
|
|
||||||
Summary: oVirt VM console
|
Summary: oVirt VM console
|
||||||
Name: ovirt-vmconsole
|
Name: ovirt-vmconsole
|
||||||
Version: 1.0.7
|
Version: 1.0.9
|
||||||
Release: 2%{?release_suffix}%{?dist}
|
Release: 1
|
||||||
License: GPLv3
|
License: GPLv3
|
||||||
URL: http://www.ovirt.org
|
URL: http://www.ovirt.org
|
||||||
Source: http://resources.ovirt.org/pub/src/%{name}/%{name}-%{package_version}.tar.gz
|
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)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
BuildRequires: checkpolicy
|
BuildRequires: checkpolicy
|
||||||
|
BuildRequires: gcc
|
||||||
BuildRequires: gettext
|
BuildRequires: gettext
|
||||||
BuildRequires: openssh-clients
|
BuildRequires: openssh-clients
|
||||||
BuildRequires: openssh-server
|
BuildRequires: openssh-server
|
||||||
@ -133,25 +134,15 @@ getent passwd %{name} >/dev/null || \
|
|||||||
%post
|
%post
|
||||||
%selinux_modules_install -s %{selinuxtype} -p 400 %{_datadir}/selinux/packages/ovirt-vmconsole/%{modulename}.pp
|
%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
|
%postun
|
||||||
if [ $1 -eq 0 ]; then
|
if [ $1 -eq 0 ]; then
|
||||||
# see [policy-priority]
|
# see [policy-priority]
|
||||||
%selinux_modules_uninstall -s %{selinuxtype} -p 400 %{modulename}
|
%selinux_modules_uninstall -s %{selinuxtype} -p 400 %{modulename}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# [ordering]
|
|
||||||
# see https://fedoraproject.org/wiki/Packaging:Scriptlets#Ordering
|
|
||||||
%posttrans
|
%posttrans
|
||||||
%selinux_relabel_post -s %{selinuxtype}
|
%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
|
%post host
|
||||||
if %{_sbindir}/selinuxenabled ; then
|
if %{_sbindir}/selinuxenabled ; then
|
||||||
semanage port -a -t ovirt_vmconsole_host_port_t -p tcp 2223 &> /dev/null || :
|
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
|
%files
|
||||||
%dir %{_datadir}/%{name}
|
%dir %{_datadir}/%{name}
|
||||||
%dir %{_sysconfdir}/%{name}
|
%dir %{_sysconfdir}/%{name}
|
||||||
|
%dir %{_datadir}/%{name}/empty
|
||||||
%if 0%{?with_python2}
|
%if 0%{?with_python2}
|
||||||
%dir %{python_sitelib}/ovirt_vmconsole
|
%dir %{python_sitelib}/ovirt_vmconsole
|
||||||
%{python_sitelib}/ovirt_vmconsole/__init__.py*
|
%{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
|
%{_unitdir}/ovirt-vmconsole-proxy-sshd.service
|
||||||
|
|
||||||
%changelog
|
%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
|
* Thu Mar 5 2020 di.wang <di.wang@cs2c.com.cn> - 1.0.7-2
|
||||||
- Package Initialization
|
- Package Initialization
|
||||||
|
|||||||
4
ovirt-vmconsole.yaml
Normal file
4
ovirt-vmconsole.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: oVirt/ovirt-vmconsole
|
||||||
|
tag_prefix: "^v"
|
||||||
|
seperator: "."
|
||||||
Loading…
x
Reference in New Issue
Block a user