Blame python-colorful.spec

d41d1c9
# what it's called on pypi
d41d1c9
%global srcname colorful
d41d1c9
# what it's imported as
d41d1c9
%global libname %{srcname}
d41d1c9
# name of egg info directory
d41d1c9
%global eggname %{srcname}
d41d1c9
# package name fragment
d41d1c9
%global pkgname %{srcname}
d41d1c9
d41d1c9
d41d1c9
Name:           python-%{pkgname}
d41d1c9
Version:        0.5.0
9d45520
Release:        14%{?dist}
d41d1c9
Summary:        Terminal string styling done right
d41d1c9
License:        MIT
d41d1c9
URL:            https://github.com/timofurrer/colorful
d41d1c9
# pypi tarball missing tests and license
d41d1c9
Source0:        %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz
d41d1c9
# downstream only patch to permit the use of older setuptools
d41d1c9
Patch0:         remove-setuptools-environment-marker.patch
d41d1c9
# https://github.com/timofurrer/colorful/pull/20
d41d1c9
Patch1:         add-skipif-for-tests-that-fail-without-a-tty.patch
d41d1c9
BuildArch:      noarch
d41d1c9
d41d1c9
d41d1c9
%description
d41d1c9
%{summary}.
d41d1c9
d41d1c9
d41d1c9
%package -n python%{python3_pkgversion}-%{pkgname}
d41d1c9
Summary:        %{summary}
d41d1c9
BuildRequires:  python%{python3_pkgversion}-devel
d41d1c9
BuildRequires:  python%{python3_pkgversion}-setuptools
d41d1c9
BuildRequires:  python%{python3_pkgversion}-pytest
d41d1c9
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pkgname}}
d41d1c9
d41d1c9
d41d1c9
%description -n python%{python3_pkgversion}-%{pkgname}
d41d1c9
%{summary}.
d41d1c9
d41d1c9
d41d1c9
%prep
d41d1c9
%autosetup -n %{srcname}-%{version} -p 1
d41d1c9
d41d1c9
d41d1c9
%build
d41d1c9
%py3_build
d41d1c9
d41d1c9
d41d1c9
%install
d41d1c9
%py3_install
d41d1c9
d41d1c9
d41d1c9
%check
d41d1c9
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} --verbose tests
d41d1c9
d41d1c9
d41d1c9
%files -n python%{python3_pkgversion}-%{pkgname}
d41d1c9
%license LICENSE
d41d1c9
%doc README.md
d41d1c9
%{python3_sitelib}/%{libname}
d41d1c9
%{python3_sitelib}/%{eggname}-%{version}-py%{python3_version}.egg-info
d41d1c9
d41d1c9
d41d1c9
%changelog
9d45520
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-14
9d45520
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
9d45520
af05135
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-13
af05135
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
af05135
62ca991
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.5.0-12
62ca991
- Rebuilt for Python 3.11
62ca991
ede55c0
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-11
ede55c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
ede55c0
8c44807
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-10
8c44807
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
8c44807
04dcff2
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.5.0-9
04dcff2
- Rebuilt for Python 3.10
04dcff2
e7eb05a
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-8
e7eb05a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
e7eb05a
30a1c77
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-7
30a1c77
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
30a1c77
0acd998
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.5.0-6
0acd998
- Rebuilt for Python 3.9
0acd998
1299175
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-5
1299175
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
1299175
af6d0d4
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.5.0-4
af6d0d4
- Rebuilt for Python 3.8.0rc1 (#1748018)
af6d0d4
5c98753
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.5.0-3
5c98753
- Rebuilt for Python 3.8
5c98753
3a61248
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-2
3a61248
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
3a61248
d41d1c9
* Wed Feb 13 2019 Carl George <carl@george.computer> - 0.5.0-1
d41d1c9
- Initial package