diff --git a/osprofiler-2.3.0.tar.gz b/osprofiler-2.3.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..e8b4b50b402533243c289ac64d7c563b40cdb69f Binary files /dev/null and b/osprofiler-2.3.0.tar.gz differ diff --git a/osprofiler-3.4.0.tar.gz b/osprofiler-3.4.0.tar.gz deleted file mode 100755 index 7c52cb8fab1407c72a240f8ac2ba022776106e35..0000000000000000000000000000000000000000 Binary files a/osprofiler-3.4.0.tar.gz and /dev/null differ diff --git a/python-osprofiler.spec b/python-osprofiler.spec old mode 100755 new mode 100644 index 305d321f2763fbdfaae02483910035c8a3a58248..a8d14df8b838cd41cd108c48d5cf5450c7cfadb6 --- a/python-osprofiler.spec +++ b/python-osprofiler.spec @@ -1,63 +1,81 @@ %global _empty_manifest_terminate_build 0 -%global common_desc OSProfiler is an OpenStack cross-project profiling library. +%global __requires_exclude elasticsearch +%global __requires_exclude jaeger-client Name: python-osprofiler -Version: 3.4.0 +Version: 2.3.0 Release: 2 Summary: OpenStack Profiler Library License: Apache-2.0 URL: https://docs.openstack.org/osprofiler/latest/ -Source0: https://files.pythonhosted.org/packages/65/bf/522be8a13218cb633b9fd1a3e13292b6c676a9af22575415b9de77d78b83/osprofiler-3.4.0.tar.gz +Source0: https://files.pythonhosted.org/packages/46/85/a8178cee934562947d50a311ccb1129aaaf29aa522edd3d90cc39b080475/osprofiler-2.3.0.tar.gz BuildArch: noarch - -Requires: python3-prettytable -Requires: python3-webob -Requires: python3-netaddr -Requires: python3-requests -Requires: python3-six -Requires: python3-importlib-metadata -Requires: python3-bandit -Requires: python3-coverage -Requires: python3-ddt -Requires: python3-elasticsearch -Requires: python3-flake8-import-order -Requires: python3-hacking -Requires: python3-jaeger-client -Requires: python3-openstackdocstheme -Requires: python3-pymongo -Requires: python3-redis -Requires: python3-reno -Requires: python3-sphinx -Requires: python3-stestr -Requires: python3-testtools - %description -%{common_desc} +OSProfiler provides a tiny but powerful library that is used by +most (soon to be all) OpenStack projects and their python clients. It +provides functionality to be able to generate 1 trace per request, that goes +through all involved services. This trace can then be extracted and used +to build a tree of calls which can be quite handy for a variety of +reasons (for example in isolating cross-project performance issues). - -%package -n python3-osprofiler +%package -n python2-osprofiler Summary: OpenStack Profiler Library -Provides: python-osprofiler -BuildRequires: python3-devel -BuildRequires: python3-setuptools -BuildRequires: python3-pip -BuildRequires: python3-pbr -%description -n python3-osprofiler - +Provides: python2-osprofiler +BuildRequires: python2-devel +BuildRequires: python2-pbr +BuildRequires: python2-setuptools +Requires: python2-netaddr +Requires: python2-oslo-concurrency +Requires: python2-oslo-serialization +Requires: python2-oslo-utils +Requires: python2-prettytable +Requires: python2-requests +Requires: python2-six +Requires: python2-webob +Requires: python2-oslo-config +Requires: python2-hacking +Requires: python2-coverage +Requires: python2-ddt +Requires: python2-mock +Requires: python2-testrepository +Requires: python2-testtools +Requires: python2-openstackdocstheme +Requires: python2-sphinx +Requires: python2-bandit +Requires: python2-pymongo +# elasticsearch only required by tests running +# Requires: python2-elasticsearch +Requires: python2-redis +Requires: python2-reno +# jaeger-client only required by tests running +# Requires: python2-jaeger-client +Requires: python2-futures +%description -n python2-osprofiler +OSProfiler provides a tiny but powerful library that is used by +most (soon to be all) OpenStack projects and their python clients. It +provides functionality to be able to generate 1 trace per request, that goes +through all involved services. This trace can then be extracted and used +to build a tree of calls which can be quite handy for a variety of +reasons (for example in isolating cross-project performance issues). %package help Summary: Development documents and examples for osprofiler -Provides: python3-osprofiler-doc +Provides: python2-osprofiler-doc %description help -%{common_desc} +OSProfiler provides a tiny but powerful library that is used by +most (soon to be all) OpenStack projects and their python clients. It +provides functionality to be able to generate 1 trace per request, that goes +through all involved services. This trace can then be extracted and used +to build a tree of calls which can be quite handy for a variety of +reasons (for example in isolating cross-project performance issues). %prep -%autosetup -n osprofiler-3.4.0 +%autosetup -n osprofiler-2.3.0 %build -%py3_build +%py2_build %install -%py3_install +%py2_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi @@ -84,14 +102,18 @@ popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . -%files -n python3-osprofiler -f filelist.lst -%dir %{python3_sitelib}/* +%files -n python2-osprofiler -f filelist.lst +%dir %{python2_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog -* Sat Jan 30 2021 zhangy -- Add buildrequires -* Thu Nov 19 2020 Python_Bot +* Thu Jun 17 2021 liusheng +- Drop testing rquires jarger-client and elasticsearch +* Wed Jun 16 2021 liusheng +- Upgrade version to 2.3.0 for OpenStack Rocky support +* Sat May 29 2021 huangtianhua +- Adds BuildRequires python2-pbr to make obs success +* Fri May 07 2021 OpenStack_SIG - Package Spec generated