75 lines
2.1 KiB
Django/Jinja
75 lines
2.1 KiB
Django/Jinja
%global sname os-testr
|
|
Name: {{ py2name('os-testr') }}
|
|
Version: 0.7.0
|
|
Release: 0
|
|
Summary: A testr wrapper to provide functionality for OpenStack projects
|
|
License: {{ license('Apache-2.0') }}
|
|
Group: Development/Languages/Python
|
|
Url: http://www.openstack.org/
|
|
Source: https://pypi.io/packages/source/o/%{sname}/%{sname}-%{version}.tar.gz
|
|
BuildRequires: openstack-macros
|
|
BuildRequires: {{ py2pkg('ddt') }}
|
|
BuildRequires: {{ py2pkg('devel') }}
|
|
BuildRequires: {{ py2pkg('oslotest') }}
|
|
BuildRequires: {{ py2pkg('pbr') }}
|
|
BuildRequires: {{ py2pkg('testrepository') }}
|
|
BuildRequires: {{ py2pkg('testscenarios') }}
|
|
Requires: {{ py2pkg('Babel') }}
|
|
Requires: {{ py2pkg('pbr') }}
|
|
Requires: {{ py2pkg('python-subunit') }}
|
|
Requires: {{ py2pkg('testrepository') }}
|
|
Requires: {{ py2pkg('testtools') }}
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
A testr wrapper to provide functionality for OpenStack projects
|
|
* Documentation: http://docs.openstack.org/developer/os-testr
|
|
* Source: http://git.openstack.org/cgit/openstack/os-testr
|
|
* Bugs: http://bugs.launchpad.net/os-testr
|
|
|
|
%package doc
|
|
Summary: Documentation for the testr
|
|
Group: Documentation
|
|
BuildRequires: {{ py2pkg('Sphinx') }}
|
|
BuildRequires: {{ py2pkg('oslosphinx') }}
|
|
|
|
%description doc
|
|
Documentation for the testr wrapper.
|
|
|
|
%prep
|
|
%setup -q -n %{sname}-%{version}
|
|
|
|
%build
|
|
%{__python2} setup.py build
|
|
|
|
# generate html docs
|
|
%{__python2} setup.py build_sphinx
|
|
# remove the sphinx-build leftovers
|
|
rm -rf doc/build/html/.{doctrees,buildinfo}
|
|
|
|
%install
|
|
%{__python2} setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
|
|
|
|
%check
|
|
export PATH="$PATH:%{buildroot}/%{_bindir}"
|
|
export PYTHONPATH="%{python2_sitearch}:%{python2_sitelib}:%{buildroot}%{python2_sitelib}"
|
|
%{__python2} setup.py testr
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%license LICENSE
|
|
%doc README.rst ChangeLog
|
|
%{_bindir}/generate-subunit
|
|
%{_bindir}/ostestr
|
|
%{_bindir}/subunit-trace
|
|
%{_bindir}/subunit2html
|
|
%{python2_sitelib}/os_testr
|
|
%{python2_sitelib}/os_testr*egg-info
|
|
|
|
%files doc
|
|
%license LICENSE
|
|
%doc doc/build/html
|
|
|
|
%changelog
|