|
|
cc6c35 |
%global srcname setuptools_scm_git_archive
|
|
|
cc6c35 |
|
|
|
cc6c35 |
Name: python-%{srcname}
|
|
|
cc6c35 |
Version: 1.1
|
|
|
cc6c35 |
Release: 8%{?dist}
|
|
|
cc6c35 |
Summary: A setuptools_scm plugin that adds support for git archives
|
|
|
cc6c35 |
|
|
|
cc6c35 |
License: MIT
|
|
|
cc6c35 |
URL: https://pypi.python.org/pypi/%{srcname}
|
|
|
cc6c35 |
Source0: https://github.com/Changaco/%{srcname}/archive/%{version}/%{srcname}-%{version}.tar.gz
|
|
|
cc6c35 |
|
|
|
cc6c35 |
BuildArch: noarch
|
|
|
cc6c35 |
|
|
|
cc6c35 |
%description
|
|
|
cc6c35 |
This is a setuptools_scm plugin that adds support for git archives (for example
|
|
|
cc6c35 |
the ones GitHub automatically generates).
|
|
|
cc6c35 |
|
|
|
cc6c35 |
%package -n python3-%{srcname}
|
|
|
cc6c35 |
Summary: %{summary}
|
|
|
cc6c35 |
%{?python_provide:%python_provide python3-%{srcname}}
|
|
|
cc6c35 |
|
|
|
cc6c35 |
BuildRequires: python3-devel
|
|
|
cc6c35 |
BuildRequires: python3-setuptools
|
|
|
cc6c35 |
BuildRequires: python3-setuptools_scm
|
|
|
cc6c35 |
BuildRequires: python3-pytest
|
|
|
cc6c35 |
Requires: python3-setuptools_scm
|
|
|
cc6c35 |
|
|
|
cc6c35 |
%description -n python3-%{srcname}
|
|
|
cc6c35 |
This is a setuptools_scm plugin that adds support for git archives (for example
|
|
|
cc6c35 |
the ones GitHub automatically generates).
|
|
|
cc6c35 |
|
|
|
cc6c35 |
|
|
|
cc6c35 |
%prep
|
|
|
cc6c35 |
%autosetup -n %{srcname}-%{version}
|
|
|
cc6c35 |
|
|
|
cc6c35 |
%build
|
|
|
cc6c35 |
# Here we set upstream version based on setuptools_scm documentation
|
|
|
cc6c35 |
# this is done to avoid the following error:
|
|
|
cc6c35 |
# LookupError: setuptools-scm was unable to detect version
|
|
|
cc6c35 |
# since we are not importing a .git repository in the tarball
|
|
|
cc6c35 |
export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
|
|
|
cc6c35 |
%py3_build
|
|
|
cc6c35 |
|
|
|
cc6c35 |
%install
|
|
|
cc6c35 |
# Here we set upstream version based on setuptools_scm documentation
|
|
|
cc6c35 |
# this is done to avoid the following error:
|
|
|
cc6c35 |
# LookupError: setuptools-scm was unable to detect version
|
|
|
cc6c35 |
# since we are not importing a .git repository in the tarball
|
|
|
cc6c35 |
export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
|
|
|
cc6c35 |
%py3_install
|
|
|
cc6c35 |
# Removing egg-info duplicated files
|
|
|
cc6c35 |
rm -rf %{buildroot}/%{python3_sitelib}/%{srcname}-0-*.egg-info
|
|
|
cc6c35 |
|
|
|
cc6c35 |
%check
|
|
|
cc6c35 |
pytest-3 tests.py
|
|
|
cc6c35 |
|
|
|
cc6c35 |
%files -n python3-%{srcname}
|
|
|
cc6c35 |
%license LICENSE
|
|
|
cc6c35 |
%doc README.rst
|
|
|
cc6c35 |
%{python3_sitelib}/%{srcname}-*.egg-info
|
|
|
cc6c35 |
%{python3_sitelib}/%{srcname}
|
|
|
cc6c35 |
|
|
|
cc6c35 |
%changelog
|
|
|
cc6c35 |
* Mon Oct 25 2021 Kaleb S. KEITHLEY <kkeithle [at] redhat.com> - 1.1-8
|
|
|
cc6c35 |
- Rebuild from lookaside
|
|
|
cc6c35 |
|
|
|
cc6c35 |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-7
|
|
|
cc6c35 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
cc6c35 |
|
|
|
cc6c35 |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.1-6
|
|
|
cc6c35 |
- Rebuilt for Python 3.10
|
|
|
cc6c35 |
|
|
|
cc6c35 |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.1-5
|
|
|
cc6c35 |
- Rebuilt for Python 3.10
|
|
|
cc6c35 |
|
|
|
cc6c35 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-4
|
|
|
cc6c35 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
cc6c35 |
|
|
|
cc6c35 |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-3
|
|
|
cc6c35 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
cc6c35 |
|
|
|
cc6c35 |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.1-2
|
|
|
cc6c35 |
- Rebuilt for Python 3.9
|
|
|
cc6c35 |
|
|
|
cc6c35 |
* Sat Feb 29 2020 Athos Ribeiro <athoscr@fedoraproject.org> - 1.1-1
|
|
|
cc6c35 |
- Update version
|
|
|
cc6c35 |
|
|
|
cc6c35 |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-11
|
|
|
cc6c35 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
cc6c35 |
|
|
|
cc6c35 |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0-10
|
|
|
cc6c35 |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
cc6c35 |
|
|
|
cc6c35 |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0-9
|
|
|
cc6c35 |
- Rebuilt for Python 3.8
|
|
|
cc6c35 |
|
|
|
cc6c35 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-8
|
|
|
cc6c35 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
cc6c35 |
|
|
|
cc6c35 |
* Mon Feb 25 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0-7
|
|
|
cc6c35 |
- Subpackage python2-setuptools_scm_git_archive has been removed
|
|
|
cc6c35 |
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
|
|
cc6c35 |
|
|
|
cc6c35 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-6
|
|
|
cc6c35 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
cc6c35 |
|
|
|
cc6c35 |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-5
|
|
|
cc6c35 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
cc6c35 |
|
|
|
cc6c35 |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.0-4
|
|
|
cc6c35 |
- Rebuilt for Python 3.7
|
|
|
cc6c35 |
|
|
|
cc6c35 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-3
|
|
|
cc6c35 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
cc6c35 |
|
|
|
cc6c35 |
* Wed Sep 06 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 1.0-2
|
|
|
cc6c35 |
- Add missing Requires on pythonX-setuptools_scm
|
|
|
cc6c35 |
|
|
|
cc6c35 |
* Mon Apr 10 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 1.0-1
|
|
|
cc6c35 |
- Initial package
|