rpm-packaging/openstack/oslotest/oslotest.spec.j2

58 lines
2.0 KiB
Django/Jinja

Name: {{ py2name('oslotest') }}
Version: 2.4.0
Release: 0
Summary: OpenStack test framework
License: {{ 'Apache-2.0' | license }}
Group: Development/Languages/Python
Url: https://launchpad.net/oslotest
Source: https://pypi.io/packages/source/o/oslotest/oslotest-%{version}.tar.gz
BuildRequires: openstack-macros
BuildRequires: {{ py2pkg('debtcollector', (">=", "0.3.0")) }}
BuildRequires: {{ py2pkg('devel') }}
BuildRequires: {{ py2pkg('fixtures', (">=", "0.3.14")) }}
BuildRequires: {{ py2pkg('mock', (">=", "1.0")) }}
BuildRequires: {{ py2pkg('mox3', (">=", "0.7.0")) }}
BuildRequires: {{ py2pkg('pbr') }}
BuildRequires: {{ py2pkg('python-subunit', (">=", "0.0.18")) }}
BuildRequires: {{ py2pkg('six') }}
BuildRequires: {{ py2pkg('testrepository', (">=", "0.0.18")) }}
BuildRequires: {{ py2pkg('testscenarios', (">=", "0.4")) }}
BuildRequires: {{ py2pkg('testtools', (">=", "1.4.0")) }}
Requires: {{ py2pkg('fixtures', (">=", "1.3.1")) }}
Requires: {{ py2pkg('mock', (">=", "1.0.1")) }}
Requires: {{ py2pkg('mox3', (">=", "0.7.0")) }}
Requires: {{ py2pkg('os-client-config', (">=", "1.4.0")) }}
Requires: {{ py2pkg('python-subunit', (">=", "0.0.18")) }}
Requires: {{ py2pkg('six', (">=", "1.9.0")) }}
Requires: {{ py2pkg('testrepository', (">=", "0.0.18")) }}
Requires: {{ py2pkg('testscenarios', (">=", "0.4")) }}
Requires: {{ py2pkg('testtools', (">=", "1.4.0")) }}
BuildArch: noarch
%description
The Oslo Test framework provides common fixtures, support for debugging, and
better support for mocking results.
%prep
%setup -q -n oslotest-%{version}
%build
%{__python2} setup.py build
%install
%{__python2} setup.py install --prefix=%{_prefix} --root=%{buildroot}
%check
%{__python2} setup.py test
%files
%license LICENSE
%doc ChangeLog README.rst AUTHORS
%{_bindir}/oslo_debug_helper
%{_bindir}/oslo_run_cross_tests
%{_bindir}/oslo_run_pre_release_tests
%{python2_sitelib}/oslotest
%{python2_sitelib}/oslotest*egg-info
%changelog