diff --git a/ovirt-vmconsole-1.0.7-2.tar.gz b/ovirt-vmconsole-1.0.7-2.tar.gz deleted file mode 100644 index 6045fbf..0000000 Binary files a/ovirt-vmconsole-1.0.7-2.tar.gz and /dev/null differ diff --git a/ovirt-vmconsole-1.0.9-1.tar.gz b/ovirt-vmconsole-1.0.9-1.tar.gz new file mode 100644 index 0000000..fc29fd0 Binary files /dev/null and b/ovirt-vmconsole-1.0.9-1.tar.gz differ diff --git a/ovirt-vmconsole.spec b/ovirt-vmconsole.spec index 3c5158c..6586d06 100644 --- a/ovirt-vmconsole.spec +++ b/ovirt-vmconsole.spec @@ -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 - 1.0.9-1 +- update to 1.0.9-1 + * Thu Mar 5 2020 di.wang - 1.0.7-2 - Package Initialization diff --git a/ovirt-vmconsole.yaml b/ovirt-vmconsole.yaml new file mode 100644 index 0000000..82faab9 --- /dev/null +++ b/ovirt-vmconsole.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: oVirt/ovirt-vmconsole +tag_prefix: "^v" +seperator: "." \ No newline at end of file