Merge "Add initial spec file for os-brick"
This commit is contained in:
94
openstack/os-brick/os-brick.spec.j2
Normal file
94
openstack/os-brick/os-brick.spec.j2
Normal file
@@ -0,0 +1,94 @@
|
||||
%global sname os-brick
|
||||
Name: {{ py2name('os-brick') }}
|
||||
Version: 1.3.0
|
||||
Release: 0
|
||||
Summary: OpenStack Cinder brick library for managing local volume attaches
|
||||
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
|
||||
BuildRequires: openstack-macros
|
||||
BuildRequires: {{ py2pkg('Babel') }}
|
||||
BuildRequires: {{ py2pkg('devel') }}
|
||||
BuildRequires: {{ py2pkg('eventlet') }}
|
||||
BuildRequires: {{ py2pkg('os-testr') }}
|
||||
BuildRequires: {{ py2pkg('oslo.concurrency') }}
|
||||
BuildRequires: {{ py2pkg('oslo.i18n') }}
|
||||
BuildRequires: {{ py2pkg('oslo.log') }}
|
||||
BuildRequires: {{ py2pkg('oslo.serialization') }}
|
||||
BuildRequires: {{ py2pkg('oslo.service') }}
|
||||
BuildRequires: {{ py2pkg('oslo.utils') }}
|
||||
BuildRequires: {{ py2pkg('oslotest') }}
|
||||
BuildRequires: {{ py2pkg('pbr') }}
|
||||
BuildRequires: {{ py2pkg('python-subunit') }}
|
||||
BuildRequires: {{ py2pkg('reno') }}
|
||||
BuildRequires: {{ py2pkg('requests') }}
|
||||
BuildRequires: {{ py2pkg('retrying') }}
|
||||
BuildRequires: {{ py2pkg('six') }}
|
||||
BuildRequires: {{ py2pkg('testrepository') }}
|
||||
BuildRequires: {{ py2pkg('testscenarios') }}
|
||||
BuildRequires: {{ py2pkg('testtools') }}
|
||||
Requires: {{ py2pkg('Babel') }}
|
||||
Requires: {{ py2pkg('eventlet') }}
|
||||
Requires: {{ py2pkg('oslo.concurrency') }}
|
||||
Requires: {{ py2pkg('oslo.i18n') }}
|
||||
Requires: {{ py2pkg('oslo.log') }}
|
||||
Requires: {{ py2pkg('oslo.serialization') }}
|
||||
Requires: {{ py2pkg('oslo.service') }}
|
||||
Requires: {{ py2pkg('oslo.utils') }}
|
||||
Requires: {{ py2pkg('requests') }}
|
||||
Requires: {{ py2pkg('retrying') }}
|
||||
Requires: {{ py2pkg('six') }}
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
OpenStack Cinder brick library for managing local volume attaches.
|
||||
Features:
|
||||
- Discovery of volumes being attached to a host for many transport protocols.
|
||||
- Removal of volumes from a host.
|
||||
|
||||
%package doc
|
||||
Summary: Documentation for OpenStack os-brick library
|
||||
BuildRequires: {{ py2pkg('oslosphinx') }}
|
||||
BuildRequires: {{ py2pkg('Sphinx') }}
|
||||
|
||||
%description doc
|
||||
OpenStack Cinder brick library for managing local volume attaches.
|
||||
Features:
|
||||
- Discovery of volumes being attached to a host for many transport protocols.
|
||||
- Removal of volumes from a host.
|
||||
This package contains the documentation.
|
||||
|
||||
%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}
|
||||
|
||||
# move usr/etc to etc
|
||||
mv %{buildroot}/usr/etc/* %{buildroot}/%{_sysconfdir}/
|
||||
|
||||
%check
|
||||
%{__python2} setup.py testr
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%doc README.rst ChangeLog
|
||||
%{python2_sitelib}/os_brick
|
||||
%{python2_sitelib}/*.egg-info
|
||||
%dir %{_sysconfdir}/rootwrap.d
|
||||
%{_sysconfdir}/rootwrap.d/os-brick.filters
|
||||
|
||||
%files doc
|
||||
%license LICENSE
|
||||
%doc doc/build/html
|
||||
|
||||
%changelog
|
Reference in New Issue
Block a user