835a2bb
%global srcname colorlog
835a2bb
835a2bb
Name:           python-%{srcname}
Fabian Affolter 44d4995
Version:        3.1.2
5efa30d
Release:        2%{?dist}
0812bc0
Summary:        A colored formatter for the Python logging module
835a2bb
835a2bb
License:        MIT
835a2bb
URL:            https://github.com/borntyping/python-colorlog
835a2bb
Source0:        https://github.com/borntyping/python-colorlog/archive/v%{version}.tar.gz#/%{srcname}-%{version}.tar.gz
835a2bb
BuildArch:      noarch
835a2bb
835a2bb
BuildRequires:  python2-devel
835a2bb
BuildRequires:  python3-devel
835a2bb
835a2bb
%description
835a2bb
colorlog.ColoredFormatter is a formatter for use with Python's logging
835a2bb
module that outputs records using terminal colors.
835a2bb
835a2bb
%package -n python2-%{srcname}
0812bc0
Summary:        %{summary}
835a2bb
%{?python_provide:%python_provide python2-%{srcname}}
835a2bb
835a2bb
%description -n python2-%{srcname}
835a2bb
colorlog.ColoredFormatter is a formatter for use with Python's logging
835a2bb
module that outputs records using terminal colors.
835a2bb
835a2bb
%package -n python3-%{srcname}
0812bc0
Summary:        %{summary}
835a2bb
%{?python_provide:%python_provide python3-%{srcname}}
835a2bb
835a2bb
%description -n python3-%{srcname}
835a2bb
colorlog.ColoredFormatter is a formatter for use with Python's logging
835a2bb
module that outputs records using terminal colors.
835a2bb
835a2bb
%prep
835a2bb
%autosetup -n %{name}-%{version}
835a2bb
835a2bb
%build
835a2bb
%py2_build
835a2bb
%py3_build
835a2bb
835a2bb
%install
835a2bb
%py2_install
835a2bb
%py3_install
835a2bb
835a2bb
%files -n python2-%{srcname}
835a2bb
%doc README.md
0812bc0
%license LICENSE
835a2bb
%{python2_sitelib}/%{srcname}/
835a2bb
%{python2_sitelib}/%{srcname}*.egg-info/
835a2bb
%exclude %{python2_sitelib}/%{srcname}/tests/
835a2bb
835a2bb
%files -n python3-%{srcname}
835a2bb
%doc README.md
0812bc0
%license LICENSE
835a2bb
%{python3_sitelib}/%{srcname}/
835a2bb
%{python3_sitelib}/%{srcname}*.egg-info/
835a2bb
%exclude %{python3_sitelib}/%{srcname}/tests/
835a2bb
835a2bb
%changelog
5efa30d
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.2-2
5efa30d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
5efa30d
Fabian Affolter 44d4995
* Sun Jan 28 2018 Fabian Affolter <mail@fabian-affolter.ch> - 3.1.2-1
Fabian Affolter 44d4995
- Update to latest upstream release 3.1.2 (rhbz#1539019)
Fabian Affolter 44d4995
8457458
* Sat Jul 29 2017 Fabian Affolter <mail@fabian-affolter.ch> - 3.1.0-1
3b8cf84
- Update to latest upstream release 3.1.0 (rhbz#1476423)
3b8cf84
ccec944
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.0-4
ccec944
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
ccec944
f500c99
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.0-3
f500c99
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
f500c99
58a12b6
* Mon Dec 19 2016 Miro HronĨok <mhroncok@redhat.com> - 2.9.0-2
58a12b6
- Rebuild for Python 3.6
58a12b6
0812bc0
* Tue Nov 22 2016 Fabian Affolter <mail@fabian-affolter.ch> - 2.9.0-1
0812bc0
- Add license file
0812bc0
- Update to latest upstream release 2.9.0
0812bc0
835a2bb
* Tue Nov 15 2016 Fabian Affolter <mail@fabian-affolter.ch> - 2.7.0-2
835a2bb
- Fix ownership
835a2bb
835a2bb
* Mon Nov 14 2016 Fabian Affolter <mail@fabian-affolter.ch> - 2.7.0-1
835a2bb
- Initial version