From 27b80e950a5782068df082aeb21115a7a1302108 Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Thu, 2 Jun 2016 14:53:28 +0200 Subject: [PATCH] Add initial spec file for os-brick Change-Id: I22562a01f7003eeea0a7b1b77e8db2d50d07adf4 --- openstack/os-brick/os-brick.spec.j2 | 94 +++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 openstack/os-brick/os-brick.spec.j2 diff --git a/openstack/os-brick/os-brick.spec.j2 b/openstack/os-brick/os-brick.spec.j2 new file mode 100644 index 000000000..edb94deef --- /dev/null +++ b/openstack/os-brick/os-brick.spec.j2 @@ -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