revise spec
This commit is contained in:
parent
e19e30b857
commit
c1acab8ade
@ -1,38 +1,31 @@
|
||||
%{!?upstream_version: %global upstream_version %{version}%{?milestone}}
|
||||
%global pypi_name os-win
|
||||
%global pyname os_win
|
||||
|
||||
%global with_doc 1
|
||||
|
||||
%global common_desc \
|
||||
This library contains Windows / Hyper-V code commonly used in the OpenStack \
|
||||
projects: nova, cinder, networking-hyperv. The library can be used in any \
|
||||
other OpenStack projects where it is needed.
|
||||
|
||||
Name: python-%{pypi_name}
|
||||
Name: python-os-win
|
||||
Version: 5.2.0
|
||||
Release: 1%{?dist}
|
||||
Release: 2
|
||||
Summary: Windows / Hyper-V library for OpenStack projects
|
||||
License: ASL 2.0
|
||||
License: Apache-2.0
|
||||
URL: http://www.cloudbase.it/
|
||||
Source0: https://tarballs.openstack.org/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
||||
Source0: https://tarballs.openstack.org/os-win/os-win-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: git
|
||||
BuildRequires: openstack-macros
|
||||
|
||||
%description
|
||||
%{common_desc}
|
||||
This library contains Windows / Hyper-V code commonly used in the OpenStack \
|
||||
projects: nova, cinder, networking-hyperv.
|
||||
|
||||
%package -n python3-%{pypi_name}
|
||||
%package -n python3-os-win
|
||||
Summary: Windows / Hyper-V library for OpenStack projects
|
||||
%{?python_provide:%python_provide python3-%{pypi_name}}
|
||||
%{?python_provide:%python_provide python3-os-win}
|
||||
|
||||
Requires: python3-pbr >= 2.0.0
|
||||
Requires: python3-babel >= 2.3.4
|
||||
Requires: python3-eventlet >= 0.18.2
|
||||
Requires: python3-oslo-concurrency >= 3.26.0
|
||||
Requires: python3-oslo-config >= 2:5.2.0
|
||||
Requires: python3-oslo-config
|
||||
Requires: python3-oslo-log >= 3.36.0
|
||||
Requires: python3-oslo-utils >= 3.33.0
|
||||
Requires: python3-oslo-i18n >= 3.15.3
|
||||
@ -42,23 +35,24 @@ BuildRequires: python3-pbr
|
||||
BuildRequires: python3-pip
|
||||
BuildRequires: python3-eventlet >= 0.18.2
|
||||
|
||||
%description -n python3-%{pypi_name}
|
||||
%{common_desc}
|
||||
%description -n python3-os-win
|
||||
This library contains Windows / Hyper-V code commonly used in the OpenStack \
|
||||
projects: nova, cinder, networking-hyperv.
|
||||
|
||||
%if 0%{?with_doc}
|
||||
%package -n python-%{pypi_name}-doc
|
||||
%package -n python-os-win-doc
|
||||
Summary: Windows / Hyper-V library for OpenStack projects - documentation
|
||||
BuildRequires: python3-openstackdocstheme
|
||||
BuildRequires: python3-oslo-config
|
||||
BuildRequires: python3-sphinx
|
||||
|
||||
%description -n python-%{pypi_name}-doc
|
||||
%description -n python-os-win-doc
|
||||
Documentation for the Windows / Hyper-V library for OpenStack projects
|
||||
%endif
|
||||
|
||||
%prep
|
||||
|
||||
%autosetup -n %{pypi_name}-%{upstream_version} -S git
|
||||
%autosetup -n os-win-%{upstream_version} -S git
|
||||
|
||||
# let RPM handle deps
|
||||
%py_req_cleanup
|
||||
@ -76,13 +70,13 @@ rm -rf doc/build/html/.{doctrees,buildinfo}
|
||||
%install
|
||||
%{py3_install}
|
||||
|
||||
%files -n python3-%{pypi_name}
|
||||
%files -n python3-os-win
|
||||
%doc doc/source/readme.rst README.rst
|
||||
%license LICENSE
|
||||
%{python3_sitelib}/%{pyname}*
|
||||
%{python3_sitelib}/os_win*
|
||||
|
||||
%if 0%{?with_doc}
|
||||
%files -n python-%{pypi_name}-doc
|
||||
%files -n python-os-win-doc
|
||||
%doc doc/build/html
|
||||
%license LICENSE
|
||||
%endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user