Blame SPECS/python-sniffio.spec

da755f
# what it's called on pypi
da755f
%global srcname sniffio
da755f
# what it's imported as
da755f
%global libname sniffio
da755f
# name of egg info directory
da755f
%global eggname sniffio
da755f
# package name fragment
da755f
%global pkgname sniffio
da755f
da755f
%global common_description %{expand:
da755f
You're writing a library.  You've decided to be ambitious, and support multiple
da755f
async I/O packages, like Trio, and asyncio, and ... You've written a bunch of
da755f
clever code to handle all the differences.  But... how do you know which piece
da755f
of clever code to run?  This is a tiny package whose only purpose is to let you
da755f
detect which async library your code is running under.}
da755f
da755f
%bcond_without  tests
da755f
da755f
da755f
Name:           python-%{pkgname}
da755f
Version:        1.2.0
da755f
Release:        2%{?dist}
da755f
Summary:        Sniff out which async library your code is running under
da755f
License:        MIT or ASL 2.0
da755f
URL:            https://github.com/python-trio/sniffio
da755f
Source0:        %pypi_source
da755f
BuildArch:      noarch
da755f
da755f
da755f
%description %{common_description}
da755f
da755f
da755f
%package -n python3-%{pkgname}
da755f
Summary:        %{summary}
da755f
BuildRequires:  python3-devel
da755f
BuildRequires:  python3-setuptools
da755f
%if %{with tests}
da755f
BuildRequires:  python3-pytest
da755f
BuildRequires:  python3-curio
da755f
%if 0%{?rhel} && 0%{?rhel} < 9
da755f
BuildRequires:  python3-contextvars
da755f
%endif
da755f
%endif
da755f
da755f
da755f
%description -n python3-%{pkgname} %{common_description}
da755f
da755f
da755f
%prep
da755f
%autosetup -n %{srcname}-%{version}
da755f
rm -rf %{eggname}.egg-info
da755f
da755f
da755f
%build
da755f
%py3_build
da755f
da755f
da755f
%install
da755f
%py3_install
da755f
da755f
da755f
%if %{with tests}
da755f
%check
da755f
%pytest --verbose
da755f
%endif
da755f
da755f
da755f
%files -n python3-%{pkgname}
da755f
%license LICENSE LICENSE.MIT LICENSE.APACHE2
da755f
%doc README.rst
da755f
%{python3_sitelib}/%{libname}
da755f
%{python3_sitelib}/%{eggname}-%{version}-py%{python3_version}.egg-info
da755f
da755f
da755f
%changelog
da755f
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-2
da755f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
da755f
da755f
* Fri Nov 20 2020 Joel Capitao <jcapitao@redhat.com> - 1.2.0-1
da755f
- Update to 1.2.0 (#1887203)
da755f
da755f
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-7
da755f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
da755f
da755f
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.1.0-6
da755f
- Rebuilt for Python 3.9
da755f
da755f
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-5
da755f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
da755f
da755f
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.1.0-4
da755f
- Rebuilt for Python 3.8.0rc1 (#1748018)
da755f
da755f
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.1.0-3
da755f
- Rebuilt for Python 3.8
da755f
da755f
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2
da755f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
da755f
da755f
* Tue May 14 2019 Carl George <carl@george.computer> - 1.1.0-1
da755f
- Latest upstream
da755f
da755f
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-2
da755f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
da755f
da755f
* Wed Sep 12 2018 Carl George <carl@george.computer> - 1.0.0-1
da755f
- Initial package