|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
# Macros for py2/py3 compatibility
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
%if 0%{?fedora} || 0%{?rhel} > 7
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
%global pyver %{python3_pkgversion}
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
%else
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
%global pyver 2
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
%endif
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
%global pyver_bin python%{pyver}
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
9af91de |
%global pyver_sitelib %{expand:%{python%{pyver}_sitelib}}
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
9af91de |
%global pyver_install %{expand:%{py%{pyver}_install}}
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
9af91de |
%global pyver_build %{expand:%{py%{pyver}_build}}
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
# End of macros for py2/py3 compatibility
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
2527827 |
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
1e675e1 |
%{!?upstream_version: %global upstream_version %{version}%{?milestone}}
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
4195ac5 |
%global with_doc 1
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
214fb1d |
%global pypi_name oslo.log
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
1e675e1 |
%global pkg_name oslo-log
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
4195ac5 |
%global common_desc \
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
4195ac5 |
OpenStack logging configuration library provides standardized configuration \
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
4195ac5 |
for all openstack projects. It also provides custom formatters, handlers and \
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
4195ac5 |
support for context specific logging (like resource id’s etc).
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
4195ac5 |
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
4195ac5 |
%global common_desc1 \
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
4195ac5 |
Tests for the Oslo Log handling library.
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
214fb1d |
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
214fb1d |
Name: python-oslo-log
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
Version: 3.44.1
|
|
![](https://seccdn.libravatar.org/avatar/66cca4ddfe914918eb13788577f8ad64d709ccf9f83b384b49228bb9a83a1533?s=16&d=retro) |
63ecfd0 |
Release: 3%{?dist}
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
214fb1d |
Summary: OpenStack Oslo Log library
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
214fb1d |
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
214fb1d |
License: ASL 2.0
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
214fb1d |
URL: http://launchpad.net/oslo
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
a78f962 |
Source0: https://tarballs.openstack.org/%{pypi_name}/%{pypi_name}-%{upstream_version}.tar.gz
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
214fb1d |
BuildArch: noarch
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
214fb1d |
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
%package -n python%{pyver}-%{pkg_name}
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
Summary: OpenStack Oslo Log library
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
%{?python_provide:%python_provide python%{pyver}-%{pkg_name}}
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
%if %{pyver} == 3
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
Obsoletes: python2-%{pkg_name} < %{version}-%{release}
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
%endif
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
BuildRequires: python%{pyver}-devel
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
BuildRequires: python%{pyver}-pbr
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
BuildRequires: git
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
# Required for tests
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
BuildRequires: python%{pyver}-dateutil
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
BuildRequires: python%{pyver}-mock
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
BuildRequires: python%{pyver}-oslotest
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
BuildRequires: python%{pyver}-oslo-context
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
BuildRequires: python%{pyver}-oslo-config
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
BuildRequires: python%{pyver}-oslo-serialization
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
BuildRequires: python%{pyver}-subunit
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
BuildRequires: python%{pyver}-testtools
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
BuildRequires: python%{pyver}-testrepository
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
BuildRequires: python%{pyver}-testscenarios
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
# Required to compile translation files
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
BuildRequires: python%{pyver}-babel
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
# Handle python2 exception
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
%if %{pyver} == 2
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
BuildRequires: python-inotify
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
%else
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
BuildRequires: python%{pyver}-inotify
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
%endif
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
Requires: python%{pyver}-pbr
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
Requires: python%{pyver}-dateutil
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
Requires: python%{pyver}-six >= 1.11.0
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
Requires: python%{pyver}-oslo-config >= 2:5.2.0
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
Requires: python%{pyver}-oslo-context >= 2.20.0
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
Requires: python%{pyver}-oslo-i18n >= 3.20.0
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
Requires: python%{pyver}-oslo-utils >= 3.36.0
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
Requires: python%{pyver}-oslo-serialization >= 2.25.0
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
Requires: python%{pyver}-debtcollector >= 1.19.0
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
# Handle python2 exception
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
%if %{pyver} == 2
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
Requires: python-inotify
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
Requires: python%{pyver}-monotonic >= 1.4
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
%else
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
Requires: python%{pyver}-inotify
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
%endif
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
Requires: python-%{pkg_name}-lang = %{version}-%{release}
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
%description -n python%{pyver}-%{pkg_name}
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
%{common_desc}
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
4195ac5 |
%if 0%{?with_doc}
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
1e675e1 |
%package -n python-%{pkg_name}-doc
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
214fb1d |
Summary: Documentation for the Oslo Log handling library
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
214fb1d |
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
BuildRequires: python%{pyver}-sphinx
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
BuildRequires: python%{pyver}-openstackdocstheme
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
BuildRequires: python%{pyver}-oslo-config
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
BuildRequires: python%{pyver}-oslo-utils
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
214fb1d |
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
1e675e1 |
%description -n python-%{pkg_name}-doc
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
214fb1d |
Documentation for the Oslo Log handling library.
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
4195ac5 |
%endif
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
214fb1d |
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
%package -n python%{pyver}-%{pkg_name}-tests
|
|
![](https://seccdn.libravatar.org/avatar/da3993ad9cc468876a3870c7acb6152e9f41e03b5593d3714f9c291cf99ce8c4?s=16&d=retro) |
2a41025 |
Summary: Tests for the Oslo Log handling library
|
|
![](https://seccdn.libravatar.org/avatar/da3993ad9cc468876a3870c7acb6152e9f41e03b5593d3714f9c291cf99ce8c4?s=16&d=retro) |
2a41025 |
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
Requires: python%{pyver}-%{pkg_name} = %{version}-%{release}
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
Requires: python%{pyver}-mock
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
Requires: python%{pyver}-oslotest
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
Requires: python%{pyver}-oslo-config >= 2:5.2.0
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
Requires: python%{pyver}-subunit
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
Requires: python%{pyver}-testtools
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
Requires: python%{pyver}-testrepository
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
Requires: python%{pyver}-testscenarios
|
|
![](https://seccdn.libravatar.org/avatar/da3993ad9cc468876a3870c7acb6152e9f41e03b5593d3714f9c291cf99ce8c4?s=16&d=retro) |
2a41025 |
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
%description -n python%{pyver}-%{pkg_name}-tests
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
4195ac5 |
%{common_desc1}
|
|
![](https://seccdn.libravatar.org/avatar/da3993ad9cc468876a3870c7acb6152e9f41e03b5593d3714f9c291cf99ce8c4?s=16&d=retro) |
2a41025 |
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
1e675e1 |
%description
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
4195ac5 |
%{common_desc}
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
214fb1d |
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
124d7f8 |
%package -n python-%{pkg_name}-lang
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
124d7f8 |
Summary: Translation files for Oslo log library
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
124d7f8 |
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
124d7f8 |
%description -n python-%{pkg_name}-lang
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
124d7f8 |
Translation files for Oslo log library
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
124d7f8 |
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
214fb1d |
%prep
|
|
![](https://seccdn.libravatar.org/avatar/19ae54c3db90ca20f104962806c7c0c8d45b979c0a13e4eb8c8eff57c7b5ccc4?s=16&d=retro) |
feccee0 |
%autosetup -n %{pypi_name}-%{upstream_version} -S git
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
214fb1d |
# Let RPM handle the dependencies
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
1e675e1 |
rm -rf {test-,}requirements.txt
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
214fb1d |
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
214fb1d |
%build
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
%{pyver_build}
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
214fb1d |
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
4195ac5 |
%if 0%{?with_doc}
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
214fb1d |
# generate html docs
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
PYTHONPATH=. sphinx-build-%{pyver} -W -b html doc/source doc/build/html
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
# remove the sphinx-build-%{pyver} leftovers
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
4195ac5 |
rm -rf doc/build/html/.{doctrees,buildinfo}
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
4195ac5 |
%endif
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
124d7f8 |
# Generate i18n files
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
%{pyver_bin} setup.py compile_catalog -d build/lib/oslo_log/locale
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
214fb1d |
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
214fb1d |
%install
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
%{pyver_install}
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
ln -s ./convert-json %{buildroot}%{_bindir}/convert-json-%{pyver}
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
2527827 |
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
124d7f8 |
# Install i18n .mo files (.po and .pot are not required)
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
124d7f8 |
install -d -m 755 %{buildroot}%{_datadir}
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
rm -f %{buildroot}%{pyver_sitelib}/oslo_log/locale/*/LC_*/oslo_log*po
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
rm -f %{buildroot}%{pyver_sitelib}/oslo_log/locale/*pot
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
mv %{buildroot}%{pyver_sitelib}/oslo_log/locale %{buildroot}%{_datadir}/locale
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
124d7f8 |
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
124d7f8 |
# Find language files
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
124d7f8 |
%find_lang oslo_log --all-name
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
124d7f8 |
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
1e675e1 |
%check
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
%{pyver_bin} setup.py test
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
%files -n python%{pyver}-%{pkg_name}
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
%doc README.rst ChangeLog AUTHORS
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
%license LICENSE
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
%{pyver_sitelib}/oslo_log
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
%{pyver_sitelib}/*.egg-info
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
%{_bindir}/convert-json
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
%{_bindir}/convert-json-%{pyver}
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
%exclude %{pyver_sitelib}/oslo_log/tests
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
214fb1d |
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
4195ac5 |
%if 0%{?with_doc}
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
1e675e1 |
%files -n python-%{pkg_name}-doc
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
4195ac5 |
%doc doc/build/html
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
214fb1d |
%license LICENSE
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
4195ac5 |
%endif
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
214fb1d |
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
%files -n python%{pyver}-%{pkg_name}-tests
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
%{pyver_sitelib}/oslo_log/tests
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
124d7f8 |
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
%files -n python-%{pkg_name}-lang -f oslo_log.lang
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
1e675e1 |
%license LICENSE
|
|
![](https://seccdn.libravatar.org/avatar/da3993ad9cc468876a3870c7acb6152e9f41e03b5593d3714f9c291cf99ce8c4?s=16&d=retro) |
2a41025 |
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
1e675e1 |
%changelog
|
|
![](https://seccdn.libravatar.org/avatar/66cca4ddfe914918eb13788577f8ad64d709ccf9f83b384b49228bb9a83a1533?s=16&d=retro) |
63ecfd0 |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.44.1-3
|
|
![](https://seccdn.libravatar.org/avatar/66cca4ddfe914918eb13788577f8ad64d709ccf9f83b384b49228bb9a83a1533?s=16&d=retro) |
63ecfd0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
![](https://seccdn.libravatar.org/avatar/66cca4ddfe914918eb13788577f8ad64d709ccf9f83b384b49228bb9a83a1533?s=16&d=retro) |
63ecfd0 |
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
* Wed Nov 06 2019 Alfredo Moralejo <amoralej@redhat.com> 3.44.1-2
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
- Update to upstream version 3.44.1
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
a7eb79d |
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
4ad38e3 |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 3.42.3-4
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
4ad38e3 |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
4ad38e3 |
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
45be505 |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 3.42.3-3
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
45be505 |
- Rebuilt for Python 3.8
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
45be505 |
|
|
![](https://seccdn.libravatar.org/avatar/66cca4ddfe914918eb13788577f8ad64d709ccf9f83b384b49228bb9a83a1533?s=16&d=retro) |
54c8c28 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.42.3-2
|
|
![](https://seccdn.libravatar.org/avatar/66cca4ddfe914918eb13788577f8ad64d709ccf9f83b384b49228bb9a83a1533?s=16&d=retro) |
54c8c28 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
![](https://seccdn.libravatar.org/avatar/66cca4ddfe914918eb13788577f8ad64d709ccf9f83b384b49228bb9a83a1533?s=16&d=retro) |
54c8c28 |
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
2527827 |
* Fri Mar 08 2019 RDO <dev@lists.rdoproject.org> 3.42.3-1
|
|
![](https://seccdn.libravatar.org/avatar/2dd42315ad87567178b59979b4d0c96e4716b86a3efa909ff8bb40c870b36dfc?s=16&d=retro) |
2527827 |
- Update to 3.42.3
|
|
![](https://seccdn.libravatar.org/avatar/31d094c442f8266b190734471d2a474f27c4a00ee8a9899e5fe5f008da41319c?s=16&d=retro) |
214fb1d |
|