Пакет python-module-os-vif: 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 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 | %define oname os-vif %def_with docs Name: python-module-%oname Version: 1.9.1 Release: alt1 Summary: A library for plugging and unplugging virtual interfaces in OpenStack Group: Development/Python License: ASL 2.0 Url: http://docs.openstack.org/developer/%oname Source: https://tarballs.openstack.org/%oname/os_vif-%version.tar.gz BuildArch: noarch BuildRequires: python-devel git-core BuildRequires: python-module-setuptools BuildRequires: python-module-pbr >= 2.0.0 BuildRequires: python-module-netaddr >= 0.7.18 BuildRequires: python-module-oslo.concurrency >= 3.20.0 BuildRequires: python-module-oslo.config >= 5.1.0 BuildRequires: python-module-oslo.log >= 3.30.0 BuildRequires: python-module-oslo.i18n >= 3.15.3 BuildRequires: python-module-oslo.privsep >= 1.23.0 BuildRequires: python-module-oslo.versionedobjects >= 1.28.0 BuildRequires: python-module-pyroute2 >= 0.4.21 BuildRequires: python-module-six >= 1.10.0 BuildRequires: python-module-stevedore >= 1.20.0 BuildRequires: python-module-sphinx BuildRequires: python-module-reno >= 1.8.0 BuildRequires: python-module-openstackdocstheme BuildRequires: python-module-os-testr BuildRequires(pre): rpm-build-python3 BuildRequires: python3-devel BuildRequires: python3-module-setuptools BuildRequires: python3-module-pbr >= 2.0.0 BuildRequires: python3-module-netaddr >= 0.7.18 BuildRequires: python3-module-oslo.concurrency >= 3.20.0 BuildRequires: python3-module-oslo.config >= 5.1.0 BuildRequires: python3-module-oslo.log >= 3.30.0 BuildRequires: python3-module-oslo.i18n >= 3.15.3 BuildRequires: python3-module-oslo.privsep >= 1.23.0 BuildRequires: python3-module-oslo.versionedobjects >= 1.28.0 BuildRequires: python3-module-pyroute2 >= 0.4.21 BuildRequires: python3-module-six >= 1.10.0 BuildRequires: python3-module-stevedore >= 1.20.0 BuildRequires: python3-module-sphinx BuildRequires: python3-module-reno >= 1.8.0 BuildRequires: python3-module-openstackdocstheme BuildRequires: python3-module-os-testr %description A library for plugging and unplugging virtual interfaces in OpenStack. Features: - A base VIF plugin class that supplies a plug() and unplug() interface - Versioned objects that represent a virtual interface and its components %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 %oname library Group: Development/Documentation %description doc Documentation for OpenStack %oname library %package -n python3-module-%oname Summary: A library for plugging and unplugging virtual interfaces in OpenStack Group: Development/Python3 %description -n python3-module-%oname A library for plugging and unplugging virtual interfaces in OpenStack. Features: - A base VIF plugin class that supplies a plug() and unplug() interface - Versioned objects that represent a virtual interface and its components %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 os_vif-%version git init-db git config user.email "real at altlinux.org" git config user.name "REAL" git add . -A git commit -a -m "commit" git tag %version # Let RPM handle the dependencies rm -f test-requirements.txt requirements.txt rm -rf ../python3 cp -a . ../python3 %build %python_build pushd ../python3 %python3_build popd %if_with docs # generate html docs %__python setup.py build_sphinx -b html # remove the sphinx-build leftovers rm -rf doc/build/html/.{doctrees,buildinfo} %endif %install %python_install pushd ../python3 %python3_install popd %check export OS_TEST_PATH='./os_vif/tests/unit' export PATH=$PATH:$RPM_BUILD_ROOT/usr/bin export PYTHONPATH=$PWD stestr --test-path $OS_TEST_PATH run pushd ../python3 rm -rf .stestr stestr.py3 --test-path $OS_TEST_PATH run popd %files %python_sitelibdir/* %exclude %python_sitelibdir/*/tests %files tests %python_sitelibdir/*/tests %if_with docs %files doc %doc README.rst doc/build/html %endif %files -n python3-module-%oname %python3_sitelibdir/* %exclude %python3_sitelibdir/*/tests %files -n python3-module-%oname-tests %python3_sitelibdir/*/tests %changelog * Fri Mar 15 2019 Lenar Shakirov <snejok@altlinux.ru> 1.9.1-alt1 - 1.9.1 * Tue Dec 18 2018 Alexey Shabalin <shaba@altlinux.org> 1.11.1-alt1 - 1.11.1 * Fri Feb 02 2018 Stanislav Levin <slev@altlinux.org> 1.4.1-alt1.1 - (NMU) Fix Requires and BuildRequires to python-setuptools * Mon May 29 2017 Alexey Shabalin <shaba@altlinux.ru> 1.4.1-alt1 - 1.4.1 - add test packages * Tue Oct 18 2016 Alexey Shabalin <shaba@altlinux.ru> 1.2.1-alt1 - Initial packaging |