|
|
|
@@ -1,13 +1,6 @@
|
|
|
|
|
# Avoid warnings when bytecompiling settings.py in /etc
|
|
|
|
|
%global __python %{__python3}
|
|
|
|
|
|
|
|
|
|
# sitelib for noarch packages, sitearch for others (remove the unneeded one)
|
|
|
|
|
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: testcloud
|
|
|
|
|
# Update also version in testcloud/__init__.py and docs/source/conf.py when changing this!
|
|
|
|
|
Version: 0.3.6
|
|
|
|
|
Version: 0.5.0
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Tool for running cloud images locally
|
|
|
|
|
|
|
|
|
@@ -15,6 +8,9 @@ License: GPLv2+
|
|
|
|
|
URL: https://pagure.io/testcloud
|
|
|
|
|
Source0: https://releases.pagure.org/testcloud/%{name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
# ExclusiveArch: kernel_arches is not possible on F32... Let's exclude i686 as it doesn't have the kernel
|
|
|
|
|
ExcludeArch: i686
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
# Ensure we can create the testcloud group
|
|
|
|
@@ -68,6 +64,10 @@ getent group testcloud >/dev/null || groupadd testcloud
|
|
|
|
|
%install
|
|
|
|
|
%py3_install
|
|
|
|
|
|
|
|
|
|
# Docs
|
|
|
|
|
install -d %{buildroot}%{_mandir}/man1
|
|
|
|
|
install -p -m 0644 manpages/testcloud.1 %{buildroot}%{_mandir}/man1
|
|
|
|
|
|
|
|
|
|
# configuration files
|
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/testcloud/
|
|
|
|
|
install conf/settings-example.py %{buildroot}%{_sysconfdir}/testcloud/settings.py
|
|
|
|
@@ -95,7 +95,8 @@ rm -f %{buildroot}%{_sysconfdir}/testcloud/*.py{c,o}
|
|
|
|
|
rm -rf %{buildroot}%{_sysconfdir}/testcloud/__pycache__
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc README.rst
|
|
|
|
|
%doc README.md
|
|
|
|
|
%{_mandir}/man1/testcloud.1*
|
|
|
|
|
%license LICENSE
|
|
|
|
|
|
|
|
|
|
%dir %{_sysconfdir}/testcloud
|
|
|
|
@@ -114,6 +115,29 @@ rm -rf %{buildroot}%{_sysconfdir}/testcloud/__pycache__
|
|
|
|
|
%{python3_sitelib}/*.egg-info
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Mar 22 2021 Frantisek Zatloukal <fzatlouk@redhat.com> - 0.5.0-1
|
|
|
|
|
- Fix crash in _handle_connection_tip
|
|
|
|
|
- Allow to create an instance without specifying a name
|
|
|
|
|
- Fix instance.image_path
|
|
|
|
|
- Make network working in qemu:///session
|
|
|
|
|
|
|
|
|
|
* Wed Dec 16 2020 Frantisek Zatloukal <fzatlouk@redhat.com> - 0.4.0-1
|
|
|
|
|
- Support creating instances by fedora:XX, fedora:latest and fedora:qa-matrix strings
|
|
|
|
|
- Implement auto cleaning of backingstore
|
|
|
|
|
- Make testcloud compatible with future Python 3.10
|
|
|
|
|
- Adapt to requests defaulting to simplejson if present
|
|
|
|
|
- Don't throw out exception when trying to create instance already existing in libvirt
|
|
|
|
|
- --all is now the default in testcloud instance list
|
|
|
|
|
- Show some hints to the users on instance create/start
|
|
|
|
|
- cleanup the instance bits when instance create fails
|
|
|
|
|
|
|
|
|
|
* Mon Nov 16 2020 Frantisek Zatloukal <fzatlouk@redhat.com> - 0.3.7-1
|
|
|
|
|
- Do not throw out ugly tracebacks if user uses cli (#1887815)
|
|
|
|
|
- Parse CMD_LINE_ARGS and add CMD_LINE_ENVS (https://pagure.io/testcloud/issue/49)
|
|
|
|
|
- Add try/except check to instance.prepare() as permissions error can occur there too
|
|
|
|
|
- Update documentation
|
|
|
|
|
- Add manpage
|
|
|
|
|
|
|
|
|
|
* Fri Oct 09 2020 Frantisek Zatloukal <fzatlouk@redhat.com> - 0.3.6-1
|
|
|
|
|
- Improve user experience when testcloud fails because of missing group
|
|
|
|
|
|
|
|
|
|