2018-01-20 09:00:57 +00:00
|
|
|
# Tests are not included in PyPI tarball
|
|
|
|
%bcond_with tests
|
2017-08-15 16:29:32 +00:00
|
|
|
|
2015-10-21 15:13:26 +00:00
|
|
|
%global srcname setuptools_scm
|
|
|
|
|
|
|
|
Name: python-%{srcname}
|
2018-01-20 09:00:57 +00:00
|
|
|
Version: 1.15.7
|
|
|
|
Release: 1%{?dist}
|
2018-01-20 08:58:24 +00:00
|
|
|
Summary: Blessed package to manage your versions by scm tags
|
2015-10-21 15:13:26 +00:00
|
|
|
|
2018-01-20 09:00:57 +00:00
|
|
|
# https://github.com/pypa/setuptools_scm/issues/211
|
2015-10-21 15:13:26 +00:00
|
|
|
License: MIT
|
2018-01-20 09:00:48 +00:00
|
|
|
URL: https://pypi.python.org/pypi/setuptools_scm
|
|
|
|
Source0: https://files.pythonhosted.org/packages/source/%(n=%{srcname}; echo ${n:0:1})/%{srcname}/%{srcname}-%{version}.tar.gz
|
2015-10-21 15:13:26 +00:00
|
|
|
|
|
|
|
BuildArch: noarch
|
2017-08-15 16:29:32 +00:00
|
|
|
|
|
|
|
%if %{with tests}
|
2015-10-21 15:13:26 +00:00
|
|
|
BuildRequires: git-core
|
|
|
|
BuildRequires: mercurial
|
2017-08-15 16:29:32 +00:00
|
|
|
%endif
|
2015-10-21 15:13:26 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Setuptools_scm handles managing your python package versions in scm metadata.
|
|
|
|
It also handles file finders for the suppertes scms.
|
|
|
|
|
|
|
|
%package -n python2-%{srcname}
|
2018-01-20 08:58:24 +00:00
|
|
|
Summary: %{summary}
|
2017-11-03 21:46:33 +00:00
|
|
|
BuildRequires: python2-devel
|
|
|
|
BuildRequires: python2-setuptools
|
|
|
|
%if %{with tests}
|
2018-01-20 08:58:57 +00:00
|
|
|
BuildRequires: python2-pytest
|
2017-11-03 21:46:33 +00:00
|
|
|
%endif
|
2015-10-21 15:13:26 +00:00
|
|
|
%{?python_provide:%python_provide python2-%{srcname}}
|
|
|
|
|
|
|
|
%description -n python2-%{srcname}
|
|
|
|
Setuptools_scm handles managing your python package versions in scm metadata.
|
|
|
|
It also handles file finders for the suppertes scms.
|
|
|
|
|
2018-01-20 08:59:38 +00:00
|
|
|
%package -n python3-%{srcname}
|
2018-01-20 08:58:24 +00:00
|
|
|
Summary: %{summary}
|
2018-01-20 08:59:38 +00:00
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-setuptools
|
2017-11-03 21:46:33 +00:00
|
|
|
%if %{with tests}
|
2018-01-20 08:59:38 +00:00
|
|
|
BuildRequires: python3-pytest
|
2017-11-03 21:46:33 +00:00
|
|
|
%endif
|
2018-01-20 08:59:38 +00:00
|
|
|
%{?python_provide:%python_provide python3-%{srcname}}
|
2017-11-07 11:07:00 +00:00
|
|
|
Obsoletes: platform-python-%{srcname} < %{version}-%{release}
|
2015-10-21 15:13:26 +00:00
|
|
|
|
2018-01-20 08:59:38 +00:00
|
|
|
%description -n python3-%{srcname}
|
2015-10-21 15:13:26 +00:00
|
|
|
Setuptools_scm handles managing your python package versions in scm metadata.
|
|
|
|
It also handles file finders for the suppertes scms.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{srcname}-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%py2_build
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%py2_install
|
|
|
|
%py3_install
|
|
|
|
|
2017-08-15 16:29:32 +00:00
|
|
|
%if %{with tests}
|
2015-10-21 15:13:26 +00:00
|
|
|
%check
|
|
|
|
PYTHONPATH=%{buildroot}%{python2_sitelib} py.test-%{python2_version} -vv
|
|
|
|
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -vv
|
2017-08-15 16:29:32 +00:00
|
|
|
%endif
|
2015-10-21 15:13:26 +00:00
|
|
|
|
|
|
|
%files -n python2-%{srcname}
|
2018-01-20 09:00:57 +00:00
|
|
|
#license LICENSE
|
|
|
|
%doc README.rst
|
2018-01-20 08:58:39 +00:00
|
|
|
%{python2_sitelib}/%{srcname}/
|
|
|
|
%{python2_sitelib}/%{srcname}-*.egg-info/
|
2015-10-21 15:13:26 +00:00
|
|
|
|
2018-01-20 08:59:38 +00:00
|
|
|
%files -n python3-%{srcname}
|
2018-01-20 09:00:57 +00:00
|
|
|
#license LICENSE
|
|
|
|
%doc README.rst
|
2017-04-10 15:35:04 +00:00
|
|
|
%{python3_sitelib}/%{srcname}/
|
|
|
|
%{python3_sitelib}/%{srcname}-*.egg-info
|
|
|
|
|
2015-10-21 15:13:26 +00:00
|
|
|
%changelog
|
2018-01-20 09:00:57 +00:00
|
|
|
* Sat Jan 20 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.15.7-1
|
|
|
|
- Update to 1.15.7
|
|
|
|
|
2017-11-07 11:07:00 +00:00
|
|
|
* Tue Nov 07 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.15.6-7
|
|
|
|
- Use better Obsoletes for platform-python
|
|
|
|
|
2017-11-03 21:50:18 +00:00
|
|
|
* Fri Nov 03 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.15.6-6
|
|
|
|
- Remove platform-python subpackage
|
|
|
|
|
2017-08-24 12:37:34 +00:00
|
|
|
* Thu Aug 24 2017 Miro Hrončok <mhroncok@redhat.com> - 1.15.6-5
|
|
|
|
- Rebuilt for rhbz#1484607
|
|
|
|
|
2017-08-20 08:01:54 +00:00
|
|
|
* Sun Aug 20 2017 Tomas Orsava <torsava@redhat.com> - 1.15.6-4
|
|
|
|
- Re-enable tests to finish bootstrapping the platform-python stack
|
|
|
|
(https://fedoraproject.org/wiki/Changes/Platform_Python_Stack)
|
|
|
|
|
2017-08-15 16:29:32 +00:00
|
|
|
* Thu Aug 10 2017 Lumír Balhar <lbalhar@redhat.com> - 1.15.6-3
|
|
|
|
- Add subpackage for platform-python
|
|
|
|
- Disable tests so platform-python stack can be bootstrapped
|
|
|
|
(https://fedoraproject.org/wiki/Changes/Platform_Python_Stack)
|
|
|
|
|
2017-07-27 11:48:33 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.15.6-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-06-16 02:17:38 +00:00
|
|
|
* Thu Jun 15 2017 Orion Poplawski <orion@cora.nwra.com> - 1.15.6-1
|
|
|
|
- Update to 1.15.6
|
|
|
|
|
2017-04-10 15:35:04 +00:00
|
|
|
* Mon Apr 10 2017 Orion Poplawski <orion@cora.nwra.com> - 1.15.5-1
|
|
|
|
- Update to 1.15.5
|
|
|
|
|
2017-02-11 10:27:43 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.15.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2017-02-04 21:51:20 +00:00
|
|
|
* Sat Feb 04 2017 Kevin Fenzi <kevin@scrye.com> - 1.15.0-1
|
|
|
|
- Update to 1.15.0
|
|
|
|
|
2016-12-13 14:23:31 +00:00
|
|
|
* Tue Dec 13 2016 Stratakis Charalampos <cstratak@redhat.com> - 1.13.0-2
|
|
|
|
- Rebuild for Python 3.6
|
|
|
|
|
2016-10-10 15:55:18 +00:00
|
|
|
* Mon Oct 10 2016 Parag Nemade <pnemade AT redhat DOT com> - 1.13.0-1
|
|
|
|
- Update to 1.13.0
|
|
|
|
|
2016-07-19 11:38:56 +00:00
|
|
|
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.1-4
|
|
|
|
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
|
|
2016-02-04 20:55:22 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2016-01-04 21:22:05 +00:00
|
|
|
* Mon Jan 4 2016 Orion Poplawski <orion@cora.nwra.com> - 1.10.1-2
|
|
|
|
- No python2 package on EPEL (setuptools too old)
|
|
|
|
|
2015-12-17 17:29:04 +00:00
|
|
|
* Thu Dec 17 2015 Orion Poplawski <orion@cora.nwra.com> - 1.10.1-1
|
|
|
|
- Update to 1.10.1
|
|
|
|
|
2015-12-02 16:46:25 +00:00
|
|
|
* Wed Dec 2 2015 Orion Poplawski <orion@cora.nwra.com> - 1.9.0-1
|
|
|
|
- Update to 1.9.0
|
|
|
|
|
2015-11-10 17:22:58 +00:00
|
|
|
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
|
|
2015-10-21 15:13:26 +00:00
|
|
|
* Mon Oct 19 2015 Orion Poplawski <orion@cora.nwra.com> - 1.8.0-2
|
|
|
|
- Cleanup stray .pyc files from tests
|
|
|
|
|
|
|
|
* Sat Sep 19 2015 Orion Poplawski <orion@cora.nwra.com> - 1.8.0-1
|
|
|
|
- Update to 1.8.0
|
|
|
|
- Fix license tag
|
|
|
|
|
|
|
|
* Mon Sep 14 2015 Orion Poplawski <orion@cora.nwra.com> - 1.7.0-1
|
|
|
|
- Initial package
|