Package python-module-os-api-ref: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 | %define oname os-api-ref Name: python-module-%oname Version: 1.6.0 Release: alt0.M80C.1 Summary: Sphinx Extensions to support API reference sites in OpenStack Group: Development/Python License: ASL 2.0 Url: http://docs.openstack.org/developer/%oname Source: https://tarballs.openstack.org/%oname/%oname-%version.tar.gz BuildArch: noarch BuildRequires: python-devel BuildRequires: python-module-setuptools BuildRequires: python-module-pbr >= 2.0.0 BuildRequires: python-module-yaml >= 3.12 BuildRequires: python-module-six >= 1.10.0 BuildRequires: python-module-sphinx BuildRequires: python-module-openstackdocstheme >= 1.18.1 BuildRequires(pre): rpm-build-python3 BuildRequires: python3-devel BuildRequires: python3-module-setuptools BuildRequires: python3-module-pbr >= 2.0.0 BuildRequires: python3-module-yaml >= 3.12 BuildRequires: python3-module-six >= 1.10.0 BuildRequires: python3-module-sphinx BuildRequires: python3-module-openstackdocstheme >= 1.18.1 %description This project is a collection of sphinx stanzas that assist in building an API Reference site for an OpenStack project in RST. RST is great for unstructured English, but displaying semi structured (and repetitive) data in tables is not its strength. This provides tooling to insert semi-structured data describing request and response parameters and status or error messages, and turn those into nice tables. The project also includes a set of styling (and javascript) that is expected to layer on top of a Sphinx theme base. This addition provides a nice set of collapsing sections for REST methods and javascript controls to expand / collapse all sections. %package tests Summary: Tests for %oname Group: Development/Python Requires: %name = %EVR %description tests This package contains tests for %oname. %package doc Summary: Documentation for OpenStack os-api-ref library Group: Development/Documentation %description doc Documentation for the os-api-ref library. %package -n python3-module-%oname Summary: Sphinx Extensions to support API reference sites in OpenStack Group: Development/Python3 %description -n python3-module-%oname This project is a collection of sphinx stanzas that assist in building an API Reference site for an OpenStack project in RST. RST is great for unstructured English, but displaying semi structured (and repetitive) data in tables is not its strength. This provides tooling to insert semi-structured data describing request and response parameters and status or error messages, and turn those into nice tables. The project also includes a set of styling (and javascript) that is expected to layer on top of a Sphinx theme base. This addition provides a nice set of collapsing sections for REST methods and javascript controls to expand / collapse all sections. %package -n python3-module-%oname-tests Summary: Tests for %oname Group: Development/Python3 Requires: python3-module-%oname = %EVR %description -n python3-module-%oname-tests This package contains tests for %oname. %prep %setup -n %oname-%version # Let RPM handle the dependencies rm -f test-requirements.txt requirements.txt # Prevent doc build warnings from causing a build failure sed -i '/warning-is-error/d' setup.cfg rm -rf ../python3 cp -a . ../python3 %build %python_build pushd ../python3 %python3_build popd python3 setup.py build_sphinx # Fix hidden-file-or-dir warnings rm -fr doc/build/html/.buildinfo %install %python_install pushd ../python3 %python3_install popd #%check #python setup.py test #%if_with python3 #pushd ../python3 #python3 setup.py test #popd #%endif %files %doc ChangeLog CONTRIBUTING.rst PKG-INFO README.rst %python_sitelibdir/* %exclude %python_sitelibdir/*/tests #%files tests #%python_sitelibdir/*/tests %files doc %doc doc/build/html %files -n python3-module-%oname %doc ChangeLog CONTRIBUTING.rst PKG-INFO README.rst %python3_sitelibdir/* %exclude %python3_sitelibdir/*/tests # need sphinx_testing module #%files -n python3-module-%oname-tests #%python3_sitelibdir/*/tests %changelog * Tue Mar 05 2019 Lenar Shakirov <snejok@altlinux.ru> 1.6.0-alt0.M80C.1 - Backport to C8.1 * Wed Dec 12 2018 Alexey Shabalin <shaba@altlinux.org> 1.6.0-alt1 - Initial packaging |