Add initial spec for os-win

Change-Id: I6d5b7a475fa8183b97203845100304f446cb0e99
This commit is contained in:
Ivan Udovichenko
2016-06-10 02:45:08 +03:00
parent d4bca51c76
commit 38d921ab0f

View File

@@ -0,0 +1,80 @@
%global sname os-win
Name: {{ py2name('os-win') }}
Epoch: {{ epoch('os-win') }}
Version: 0.3.2
Release: 0
Summary: Hyper-V library for OpenStack projects
License: {{ license('Apache-2.0') }}
Group: Development/Languages/Python
URL: https://launchpad.net/%{sname}
Source0: https://pypi.io/packages/source/o/%{sname}/%{sname}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: openstack-macros
BuildRequires: {{ py2pkg('devel') }}
BuildRequires: {{ py2pkg('eventlet') }}
BuildRequires: {{ py2pkg('mock') }}
BuildRequires: {{ py2pkg('oslo.concurrency') }}
BuildRequires: {{ py2pkg('oslo.i18n') }}
BuildRequires: {{ py2pkg('oslo.log') }}
BuildRequires: {{ py2pkg('oslosphinx') }}
BuildRequires: {{ py2pkg('oslotest') }}
BuildRequires: {{ py2pkg('pbr') }}
BuildRequires: {{ py2pkg('python-subunit') }}
BuildRequires: {{ py2pkg('sphinx') }}
BuildRequires: {{ py2pkg('testrepository') }}
BuildRequires: {{ py2pkg('testscenarios') }}
BuildRequires: {{ py2pkg('testtools') }}
Requires: {{ py2pkg('Babel') }}
Requires: {{ py2pkg('eventlet') }}
Requires: {{ py2pkg('netaddr') }}
Requires: {{ py2pkg('oslo.concurrency') }}
Requires: {{ py2pkg('oslo.config') }}
Requires: {{ py2pkg('oslo.i18n') }}
Requires: {{ py2pkg('oslo.log') }}
Requires: {{ py2pkg('oslo.service') }}
Requires: {{ py2pkg('oslo.utils') }}
Requires: {{ py2pkg('pbr') }}
%description
Library contains Windows / Hyper-V code commonly used in the OpenStack projects:
nova, cinder, networking-hyperv.
%package doc
Summary: Documentation for OpenStack Identity API Client
Group: Documentation
BuildRequires: {{ py2pkg('Sphinx') }}
BuildRequires: {{ py2pkg('oslosphinx') }}
%description doc
Documentation for the Hyper-V library.
%prep
%setup -q -n %{sname}-%{version}
%build
%{__python2} setup.py build
%{__python2} setup.py build_sphinx
rm -rf html/.{doctrees,buildinfo}
%install
%{__python2} setup.py install --prefix=%{_prefix} --root=%{buildroot}
install -p -D -m 644 doc/build/man/os-win.1 %{buildroot}/%{_mandir}/man1/os-win.1
%check
%{__python2} setup.py test
%files
%doc AUTHORS README.rst ChangeLog
%license LICENSE
%{python2_sitelib}/os_win*
%{python2_sitelib}/*.egg-info
%{_mandir}/man1/os-win.1*
%files doc
%doc doc/build/html
%license LICENSE
%changelog