Пакет openstack-neutron-vpnaas: 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 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 | %define oname neutron-vpnaas Name: openstack-%oname Version: 13.0.1 Release: alt1 Epoch: 1 Summary: OpenStack Networking VPNaaS Group: System/Servers License: ASL 2.0 Url: http://docs.openstack.org/developer/%oname Source: https://tarballs.openstack.org/%oname/%oname-%version.tar.gz Source1: neutron-vpn-agent.init Source2: neutron-vpn-agent.service BuildArch: noarch Requires: openstack-neutron >= 1:13.0.0-alt1 Requires: python3-module-%oname = %EVR BuildRequires: python-devel BuildRequires: python-module-setuptools BuildRequires: python-module-pbr >= 2.0.0 BuildRequires: python-module-six >= 1.10.0 BuildRequires: python-module-requests >= 2.14.2 BuildRequires: python-module-jinja2 >= 2.10 BuildRequires: python-module-netaddr >= 0.7.18 BuildRequires: python-module-SQLAlchemy >= 1.2.0 BuildRequires: python-module-alembic >= 0.8.10 BuildRequires: python-module-neutron-lib >= 1.18.0 BuildRequires: python-module-oslo.concurrency >= 3.26.0 BuildRequires: python-module-oslo.config >= 5.2.0 BuildRequires: python-module-oslo.db >= 4.27.0 BuildRequires: python-module-oslo.log >= 3.36.0 BuildRequires: python-module-oslo.messaging >= 5.29.0 BuildRequires: python-module-oslo.reports >= 1.18.0 BuildRequires: python-module-oslo.serialization >= 2.18.0 BuildRequires: python-module-oslo.service >= 1.24.0 BuildRequires: python-module-oslo.utils >= 3.33.0 BuildRequires: python-module-neutron >= 1:13.0.0 BuildRequires(pre): rpm-build-python3 BuildRequires: python3-devel BuildRequires: python3-module-setuptools BuildRequires: python3-module-pbr >= 2.0.0 BuildRequires: python3-module-six >= 1.10.0 BuildRequires: python3-module-requests >= 2.14.2 BuildRequires: python3-module-jinja2 >= 2.10 BuildRequires: python3-module-netaddr >= 0.7.18 BuildRequires: python3-module-SQLAlchemy >= 1.2.0 BuildRequires: python3-module-alembic >= 0.8.10 BuildRequires: python3-module-neutron-lib >= 1.18.0 BuildRequires: python3-module-oslo.concurrency >= 3.26.0 BuildRequires: python3-module-oslo.config >= 5.2.0 BuildRequires: python3-module-oslo.db >= 4.27.0 BuildRequires: python3-module-oslo.log >= 3.36.0 BuildRequires: python3-module-oslo.messaging >= 5.29.0 BuildRequires: python3-module-oslo.reports >= 1.18.0 BuildRequires: python3-module-oslo.serialization >= 2.18.0 BuildRequires: python3-module-oslo.service >= 1.24.0 BuildRequires: python3-module-oslo.utils >= 3.33.0 BuildRequires: python3-module-neutron >= 1:13.0.0 %description This package contains the code for the Neutron VPN as a Service (VPNaaS) service. This includes third-party drivers. This package requires Neutron to run. %package -n python-module-%oname Summary: Neutron VPNaaS Python libraries Group: Development/Python Requires: python-module-neutron >= 1:10.0.0-alt1 %add_python_req_skip networking_brocade %description -n python-module-%oname This package contains the code for the Neutron VPN as a Service (VPNaaS) service. This includes third-party drivers. This package requires Neutron to run. This package contains the neutron Python library. %package -n python-module-%oname-tests Summary: Tests for %oname Group: Development/Python %add_python_req_skip neutron_tempest_plugin %description -n python-module-%oname-tests This package contains tests for %oname. %package -n python3-module-%oname Summary: Neutron VPNaaS Python3 libraries Group: Development/Python3 Requires: python3-module-neutron %add_python3_req_skip networking_brocade %description -n python3-module-%oname This package contains the code for the Neutron VPN as a Service (VPNaaS) service. This includes third-party drivers. This package requires Neutron to run. This package contains the neutron Python3 library. %package -n python3-module-%oname-tests Summary: Tests for %oname Group: Development/Python3 %add_python3_req_skip neutron_tempest_plugin %add_python3_req_skip neutron_tempest_plugin.api %add_python3_req_skip neutron_tempest_plugin.scenario %add_python3_req_skip neutron_tempest_plugin.services.network.json %description -n python3-module-%oname-tests This package contains tests for %oname. %prep %setup -n %oname-%version # Let's handle dependencies ourseleves #rm -f requirements.txt rm -rf ../python3 cp -a . ../python3 %build %python_build pushd ../python3 %python3_build PYTHONPATH=. tools/generate_config_file_samples.sh popd %install %python_install --install-data=/ for f in $(ls -1 %buildroot%_bindir) do mv %buildroot%_bindir/$f %buildroot%_bindir/$f.py2 done pushd ../python3 %python3_install --install-data=/ # configuration files install -p -D -m 644 etc/neutron_vpnaas.conf.sample %buildroot%_sysconfdir/neutron/neutron_vpnaas.conf install -p -D -m 644 etc/vpn_agent.ini.sample %buildroot%_sysconfdir/neutron/vpn_agent.ini popd # Install sysV init scripts install -p -D -m 755 %SOURCE1 %buildroot%_initdir/neutron-vpn-agent # Install systemd units install -p -D -m 644 %SOURCE2 %buildroot%_unitdir/neutron-vpn-agent.service # Remove unused files %files %doc LICENSE %doc README.rst %config(noreplace) %attr(0640, root, neutron) %_sysconfdir/neutron/*.ini %config(noreplace) %attr(0640, root, neutron) %_sysconfdir/neutron/*.conf %config(noreplace) %attr(0640, root, neutron) %_sysconfdir/neutron/rootwrap.d/*.filters %_initdir/neutron-vpn-agent %_unitdir/neutron-vpn-agent.service %files -n python-module-%oname %doc LICENSE %_bindir/*.py2 %python_sitelibdir/* %exclude %python_sitelibdir/*/tests %files -n python-module-%oname-tests %python_sitelibdir/*/tests %files -n python3-module-%oname %doc LICENSE %_bindir/* %exclude %_bindir/*.py2 %python3_sitelibdir/* %exclude %python3_sitelibdir/*/tests %files -n python3-module-%oname-tests %python3_sitelibdir/*/tests %changelog * Wed Jan 16 2019 Alexey Shabalin <shaba@altlinux.org> 1:13.0.1-alt1 - 13.0.1 - switch to python3 * Fri Jun 22 2018 Grigory Ustinov <grenka@altlinux.org> 1:10.0.0-alt2 - Fixed FTBFS (remove python-module-setuptools-tests from BR). * Wed Jun 07 2017 Alexey Shabalin <shaba@altlinux.ru> 1:10.0.0-alt1 - 10.0.0 - add tests package * Mon Oct 24 2016 Alexey Shabalin <shaba@altlinux.ru> 1:9.0.0-alt1 - 9.0.0 * Tue Apr 19 2016 Alexey Shabalin <shaba@altlinux.ru> 1:8.0.0-alt1 - 8.0.0 * Mon Mar 28 2016 Alexey Shabalin <shaba@altlinux.ru> 1:7.0.3-alt1 - 7.0.3 * Wed Dec 30 2015 Alexey Shabalin <shaba@altlinux.ru> 1:7.0.1-alt1 - 7.0.1 * Mon Nov 02 2015 Alexey Shabalin <shaba@altlinux.ru> 1:7.0.0-alt1 - 7.0.0 * Thu Oct 15 2015 Alexey Shabalin <shaba@altlinux.ru> 2015.1.2-alt1 - 2015.1.2 * Tue Aug 25 2015 Alexey Shabalin <shaba@altlinux.ru> 2015.1.1-alt1 - 2015.1.1 * Fri May 29 2015 Alexey Shabalin <shaba@altlinux.ru> 2015.1.0-alt1 - initial build for Kilo |