Compare commits

..

18 Commits

Author SHA1 Message Date
Kamil Páral 01b758f170 Merge branch 'master' into f24 2017-02-22 04:39:27 +01:00
Kamil Páral e4ab9b9dd2 don't install py[co] files into /etc 2017-02-22 04:35:52 +01:00
Kamil Páral 4b5a9b217e add python-pytest-cov builddep to run test suite during building 2017-02-20 11:31:11 +01:00
Kamil Páral 5780203ad4 Merge branch 'master' into f24 2017-02-20 11:17:45 +01:00
Kamil Páral 1f61f9856c upstream 0.1.11 release 2017-02-20 11:06:27 +01:00
Fedora Release Engineering f43c3d1335 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild 2017-02-11 15:47:46 +00:00
Martin Krizek 6161046cb5 upstream 0.1.10 release 2016-08-17 12:49:21 +02:00
Martin Krizek b7aaeb539c upstream 0.1.10 release 2016-08-17 12:43:30 +02:00
Fedora Release Engineering f201912536 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages 2016-07-19 12:50:44 +00:00
Kamil Páral f0f108a0e8 upstream 0.1.9 release 2016-07-19 14:09:44 +02:00
Kamil Páral 5f6d1c43af upstream 0.1.9 release 2016-07-19 14:05:33 +02:00
Martin Krizek 639ed82af3 libguestfs on arm should be fixed now, removing exclude arm 2016-07-18 12:35:22 +02:00
Martin Krizek e1bc0f86a7 Exclude arm until libguestfs dep is resolved there 2016-06-22 14:19:16 +02:00
Tim Flink 399bdc665e it's not 2015 any more 2016-02-05 05:33:41 -07:00
Tim Flink 075d8dc4f3 updating to upstream 0.1.8 2016-02-05 05:29:35 -07:00
Fedora Release Engineering 87efa39d59 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild 2016-02-05 01:28:49 +00:00
Tim Flink c29777656f updating to upstream's 0.1.7 2015-12-08 12:44:08 -07:00
Tim Flink 5901daa779 initial 0.1.6 build of testcloud after review 2015-12-08 09:33:27 -07:00
4 changed files with 192 additions and 1 deletions
+6
View File
@@ -0,0 +1,6 @@
/0.1.6.tar.gz
/0.1.7.tar.gz
/0.1.8.tar.gz
/0.1.9.tar.gz
/0.1.10.tar.gz
/0.1.11.tar.gz
-1
View File
@@ -1 +0,0 @@
epel8-playground decommissioned : https://pagure.io/epel/issue/136
+1
View File
@@ -0,0 +1 @@
SHA512 (0.1.11.tar.gz) = 93c8afaf50c711a79c782ef872ab0bc6c182fb52a7e0a0acea13a19fc1efb5c0f759646cc6f3996c11624614c108389a828952cb5fcde53ec2e49583efefeaf5
+185
View File
@@ -0,0 +1,185 @@
# 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
Version: 0.1.11
Release: 3%{?dist}
Summary: Tool for running cloud images locally
License: GPLv2+
URL: https://github.com/Rorosha/testCloud
Source0: https://github.com/Rorosha/%{name}/archive/%{version}.tar.gz
BuildArch: noarch
# Ensure we can create the testcloud group
Requires(pre): shadow-utils
# testcloud integrates with libvirt
Requires: libvirt
Requires: libvirt-python
# This is used to manipulate images on disk
Requires: libguestfs
Requires: libguestfs-tools
# Used to download images from valid URLs
Requires: python-requests
Requires: polkit
Requires: python-jinja2
Requires: net-tools
BuildRequires: python2-devel
BuildRequires: python2-pytest
BuildRequires: python-pytest-cov
BuildRequires: python-setuptools
# Provides: python2-testcloud
%description
testcloud is a relatively simple system which is capable of booting images
designed for cloud systems on a local system with minimal configuration.
testcloud is designed to be (and remain) somewhat simple, trading fancy cloud
system features for ease of use and sanity in development.
# Create the testcloud group
%pre
getent group testcloud >/dev/null || groupadd testcloud
%prep
%setup -q -n %{name}-%{version}
%check
%{__python2} setup.py test
# Remove compiled .py files from /etc after running unittests
rm -f %{buildroot}%{_sysconfdir}/testcloud/*.py{c,o}
%build
%{__python2} setup.py build
%install
%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
# configuration files
mkdir -p %{buildroot}%{_sysconfdir}/testcloud/
install conf/settings-example.py %{buildroot}%{_sysconfdir}/testcloud/settings.py
# Create running directory for testcloud
install -d %{buildroot}%{_sharedstatedir}/testcloud/
# Install domain jinja template for libvirt to import
install conf/domain-template.jinja %{buildroot}/%{_sharedstatedir}/testcloud/domain-template.jinja
# backingstores dir
install -d %{buildroot}/%{_sharedstatedir}/testcloud/backingstores
# instance dir
install -d %{buildroot}/%{_sharedstatedir}/testcloud/instances
# create polkit rules dir and install polkit rule
mkdir -p %{buildroot}%{_sysconfdir}/polkit-1/rules.d
install conf/99-testcloud-nonroot-libvirt-access.rules %{buildroot}%{_sysconfdir}/polkit-1/rules.d/99-testcloud-nonroot-libvirt-access.rules
%files
%doc README.rst
%license LICENSE
%{python2_sitelib}/testcloud
%{python2_sitelib}/*.egg-info
%dir %{_sysconfdir}/testcloud
%dir %attr(0775, qemu, testcloud) %{_sharedstatedir}/testcloud
%dir %attr(0775, qemu, testcloud) %{_sharedstatedir}/testcloud/backingstores
%dir %attr(0775, qemu, testcloud) %{_sharedstatedir}/testcloud/instances
%attr(0764, qemu, testcloud) %{_sharedstatedir}/testcloud/domain-template.jinja
%attr(0644, root, root) %{_sysconfdir}/polkit-1/rules.d/99-testcloud-nonroot-libvirt-access.rules
%config(noreplace) %{_sysconfdir}/testcloud/settings.py
%{_bindir}/testcloud
%changelog
* Wed Feb 22 2017 Kamil Páral <kparal@redhat.com> - 0.1.11-3
- don't install py[co] files into /etc
* Mon Feb 20 2017 Kamil Páral <kparal@redhat.com> - 0.1.11-2
- add python-pytest-cov builddep to run test suite during building
* Mon Feb 20 2017 Kamil Páral <kparal@redhat.com> - 0.1.11-1
- make libvirt url configurable
- avoid race condition during listing domains
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.10-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Wed Aug 17 2016 Martin Krizek <mkrizek@redhat.com> - 0.1.10-1
- use symlinks for file:// urls
- look for the jinja template in the conf/ dir first
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.9-2
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
* Tue Jul 19 2016 Kamil Páral <kparal@redhat.com> - 0.1.9-1
- upstream 0.1.9 release
- "destroy" commands renamed to "remove"
- "instance remove" now supports "--force"
- new "instance reboot" command
- no more crashes when stopping an already stopped instance
- option to automatically stop an instance during remove (API)
* Mon Jul 18 2016 Martin Krizek <mkrizek@redhat.com> - 0.1.8-3
- libguestfs on arm should be fixed now, removing exclude arm
* Wed Jun 22 2016 Martin Krizek <mkrizek@redhat.com> - 0.1.8-2
- exclude arm until libguestfs dep is resolved there
* Fri Feb 05 2016 Tim Flink <tflink@fedoraproject.org> - 0.1.8-1
- Explicitly fail when IP address is not found
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.7-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Tue Dec 8 2015 Tim Flink <tflink@fedoraproject.org> - 0.1.7-1
- Enabling configurable instance memory and disk size (T420, T659)
- Improved handling of images with larger disks (T657)
- Changed "cache" to "backingstores" to reduce confusion (T521)
* Tue Dec 1 2015 Tim Flink <tflink@fedoraproject.org> - 0.1.6-1
- fixing python2 macros
- other small fixes as per review
* Wed Nov 18 2015 Tim Flink <tflink@fedoraproject.org> - 0.1.5-4
- adding net-tools as a dependency
* Wed Nov 11 2015 Martin Krizek <mkrizek@redhat.com> - 0.1.5-3
- adding python-jinja2 as a dependency
* Thu Nov 05 2015 Tim Flink <tflink@fedoraproject.org> - 0.1.5-2
- rework setup to work with github sources, proper file declarations
* Wed Nov 04 2015 Mike Ruckman <roshi@fedoraproject.org> - 0.1.5-1
- Multiple bugfixes (mainly use libvirt, not virt-install)
* Tue Sep 29 2015 Mike Ruckman <roshi@fedoraproject.org> - 0.1.4-2
- Fix permissions issues and no long overwrite stored configs.
* Tue Sep 29 2015 Mike Ruckman <roshi@fedoraproject.org> - 0.1.4-1
- Multiple bug fixes.
* Tue Sep 01 2015 Mike Ruckman <roshi@fedoraproject.org> - 0.1.3-2
- Unkludge the last release.
* Sun Aug 30 2015 Mike Ruckman <roshi@fedoraproject.org> - 0.1.3-1
- Multiple bugfixes and general clean up.
* Tue Jul 14 2015 Mike Ruckman <roshi@fedoraproject.org> - 0.1.1-2
- Added polkit rule for headless machine (or passwordless) execution.
* Thu Jul 09 2015 Mike Ruckman <roshi@fedoraproject.org> - 0.1.1-1
- Fixed packaging issues. Removed uneeded code.
* Thu Jul 09 2015 Mike Ruckman <roshi@fedoraproject.org> - 0.1.0-2
- Fixed packaging issues. Removed uneeded code.
* Tue Jun 23 2015 Mike Ruckman <roshi@fedoraproject.org> - 0.1.0-1
- Initial packaging of testcloud