diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..83ed1c4 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/vagrantpy-0.6.0.tar.gz diff --git a/python-vagrantpy.spec b/python-vagrantpy.spec new file mode 100644 index 0000000..73282a2 --- /dev/null +++ b/python-vagrantpy.spec @@ -0,0 +1,70 @@ +# Enable the automatic Python dependency generator +%{?python_enable_dependency_generator} + +# Tests do not work without vagrant + virtualbox in the environment +%bcond_with tests + +%global pypi_name vagrantpy + +Name: python-%{pypi_name} +Version: 0.6.0 +Release: 1%{?dist} +Summary: Python bindings for interacting with Vagrant virtual machines + +License: MIT +URL: https://github.com/vagrantpy/vagrantpy +Source0: https://files.pythonhosted.org/packages/source/v/%{pypi_name}/%{pypi_name}-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3dist(setuptools) + +%if %{with tests} +BuildRequires: python3dist(nose) +BuildRequires: python3dist(rednose) +BuildRequires: vagrant +BuildRequires: virtualbox +%endif + +%description +VagrantPy is a python module that provides a _thin_ wrapper +around the vagrant command line executable, allowing programmatic control of +Vagrant virtual machines (boxes). + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +VagrantPy is a python module that provides a _thin_ wrapper +around the vagrant command line executable, allowing programmatic control of +Vagrant virtual machines (boxes). + +%prep +%autosetup -n %{pypi_name}-%{version} +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info + +%build +%py3_build + +%install +%py3_install + +%if %{with tests} +%check +nosetests --immediate --stop -vv --rednose +%endif + +%files -n python3-%{pypi_name} +%license LICENSE.txt +%doc README.md +%{python3_sitelib}/vagrant +%{python3_sitelib}/vagrantpy-%{version}-* + +%changelog +* Thu Jan 16 2020 David McCheyne - 0.6.0-1 +- Packaging for Fedora + +* Wed Jan 15 2020 Neal Gompa +- Initial packaging diff --git a/sources b/sources new file mode 100644 index 0000000..d5bad30 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (vagrantpy-0.6.0.tar.gz) = a90e050dce53001240a39d53c0c69889fda31343f72e9f66051bf907a69db91a9a256d7da6dfbe70c2d74b2cb9b7628e9654af2ee6322776f55fa7c699a81dfe