Blame python-vagrantpy.spec

David McCheyne 13f0470
# Enable the automatic Python dependency generator
David McCheyne 13f0470
%{?python_enable_dependency_generator}
David McCheyne 13f0470
David McCheyne 13f0470
# Tests do not work without vagrant + virtualbox in the environment
David McCheyne 13f0470
%bcond_with tests
David McCheyne 13f0470
David McCheyne 13f0470
%global pypi_name vagrantpy
David McCheyne 13f0470
David McCheyne 13f0470
Name:           python-%{pypi_name}
David McCheyne 13f0470
Version:        0.6.0
0b4a523
Release:        7%{?dist}
David McCheyne 13f0470
Summary:        Python bindings for interacting with Vagrant virtual machines
David McCheyne 13f0470
David McCheyne 13f0470
License:        MIT
David McCheyne 13f0470
URL:            https://github.com/vagrantpy/vagrantpy
David McCheyne 13f0470
Source0:        https://files.pythonhosted.org/packages/source/v/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
David McCheyne 13f0470
BuildArch:      noarch
David McCheyne 13f0470
David McCheyne 13f0470
BuildRequires:  python3-devel
David McCheyne 13f0470
BuildRequires:  python3dist(setuptools)
David McCheyne 13f0470
David McCheyne 13f0470
%if %{with tests}
David McCheyne 13f0470
BuildRequires:  python3dist(nose)
David McCheyne 13f0470
BuildRequires:  python3dist(rednose)
David McCheyne 13f0470
BuildRequires:  vagrant
David McCheyne 13f0470
BuildRequires:  virtualbox
David McCheyne 13f0470
%endif
David McCheyne 13f0470
David McCheyne 13f0470
%description
David McCheyne 13f0470
VagrantPy is a python module that provides a _thin_ wrapper
David McCheyne 13f0470
around the vagrant command line executable, allowing programmatic control of
David McCheyne 13f0470
Vagrant virtual machines (boxes).
David McCheyne 13f0470
David McCheyne 13f0470
%package -n     python3-%{pypi_name}
David McCheyne 13f0470
Summary:        %{summary}
David McCheyne 13f0470
%{?python_provide:%python_provide python3-%{pypi_name}}
David McCheyne 13f0470
David McCheyne 13f0470
%description -n python3-%{pypi_name}
David McCheyne 13f0470
VagrantPy is a python module that provides a _thin_ wrapper
David McCheyne 13f0470
around the vagrant command line executable, allowing programmatic control of
David McCheyne 13f0470
Vagrant virtual machines (boxes).
David McCheyne 13f0470
David McCheyne 13f0470
%prep
David McCheyne 13f0470
%autosetup -n %{pypi_name}-%{version}
David McCheyne 13f0470
# Remove bundled egg-info
David McCheyne 13f0470
rm -rf %{pypi_name}.egg-info
David McCheyne 13f0470
David McCheyne 13f0470
%build
David McCheyne 13f0470
%py3_build
David McCheyne 13f0470
David McCheyne 13f0470
%install
David McCheyne 13f0470
%py3_install
David McCheyne 13f0470
David McCheyne 13f0470
%if %{with tests}
David McCheyne 13f0470
%check
David McCheyne 13f0470
nosetests --immediate --stop -vv --rednose
David McCheyne 13f0470
%endif
David McCheyne 13f0470
David McCheyne 13f0470
%files -n python3-%{pypi_name}
David McCheyne 13f0470
%license LICENSE.txt
David McCheyne 13f0470
%doc README.md
David McCheyne 13f0470
%{python3_sitelib}/vagrant
David McCheyne 13f0470
%{python3_sitelib}/vagrantpy-%{version}-*
David McCheyne 13f0470
David McCheyne 13f0470
%changelog
0b4a523
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-7
0b4a523
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
0b4a523
3b415b4
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.6.0-6
3b415b4
- Rebuilt for Python 3.10
3b415b4
18fc8b4
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-5
18fc8b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
18fc8b4
1c82891
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-4
1c82891
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
1c82891
ad07e9e
* Tue May 26 2020 Miro HronĨok <mhroncok@redhat.com> - 0.6.0-3
ad07e9e
- Rebuilt for Python 3.9
ad07e9e
4cd73a9
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-2
4cd73a9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
4cd73a9
David McCheyne 13f0470
* Thu Jan 16 2020 David McCheyne <davidmccheyne@gmail.com> - 0.6.0-1
David McCheyne 13f0470
- Packaging for Fedora
David McCheyne 13f0470
David McCheyne 13f0470
* Wed Jan 15 2020 Neal Gompa <ngompa13@gmail.com>
David McCheyne 13f0470
- Initial packaging