Blob Blame History Raw
%global srcname coreschema

Name:           python-%{srcname}
Version:        0.0.4
Release:        3%{?dist}
Summary:        Core Schema

# License file is missing on github and there is no way to open issue there
# since project is archived
License:        BSD
URL:            https://github.com/core-api/python-coreschema
Source:         %{pypi_source}

BuildArch:      noarch

%global _description %{expand:
%{summary}.}

%description %{_description}

%package     -n python3-%{srcname}
Summary:        %{summary}
%{?python_provide:%python_provide python3-%{srcname}}
BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)

%description -n python3-%{srcname} %{_description}

Python 3 version.

%prep
%autosetup -n %{srcname}-%{version} -p1
rm -vr *.egg-info

%build
%py3_build

%install
%py3_install

# Tests are not on PyPI
#%%check
#%%python3 -m pytest -v

%files -n python3-%{srcname}
%{python3_sitelib}/coreschema/
%{python3_sitelib}/coreschema-*.egg-info/

%changelog
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

* Tue May 26 2020 Miro HronĨok <mhroncok@redhat.com> - 0.0.4-2
- Rebuilt for Python 3.9

* Fri Jan 31 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.0.4-1
- Initial package