ef6f3a7
%global pypi_name incremental
ef6f3a7
a999ae5
%if 0%{?fedora} || 0%{?rhel} >= 8
ef6f3a7
%global with_python3 1
ef6f3a7
%endif
ef6f3a7
ef6f3a7
Name:           python-%{pypi_name}
ef6f3a7
Version:        17.5.0
baee868
Release:        6%{?dist}
ef6f3a7
Summary:        It versions your Python projects
ef6f3a7
ef6f3a7
License:        MIT
ef6f3a7
URL:            https://github.com/twisted/incremental
ef6f3a7
Source0:        https://files.pythonhosted.org/packages/source/i/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
ef6f3a7
BuildArch:      noarch
ef6f3a7
 
ef6f3a7
BuildRequires:  python2-devel
ef6f3a7
BuildRequires:  python2-setuptools
ef6f3a7
 
ef6f3a7
%if 0%{?with_python3}
ef6f3a7
BuildRequires:  python3-devel
ef6f3a7
BuildRequires:  python3-setuptools
ef6f3a7
%endif
ef6f3a7
ef6f3a7
%description
ef6f3a7
Incremental is a small library that versions your Python projects.
ef6f3a7
ef6f3a7
%package -n     python2-%{pypi_name}
ef6f3a7
Summary:        %{summary}
ef6f3a7
%{?python_provide:%python_provide python2-%{pypi_name}}
ef6f3a7
ef6f3a7
%description -n python2-%{pypi_name}
ef6f3a7
Incremental is a small library that versions your Python projects.
ef6f3a7
ef6f3a7
%if 0%{?with_python3}
ef6f3a7
%package -n     python3-%{pypi_name}
ef6f3a7
Summary:        %{summary}
ef6f3a7
%{?python_provide:%python_provide python3-%{pypi_name}}
ef6f3a7
ef6f3a7
%description -n python3-%{pypi_name}
ef6f3a7
Incremental is a small library that versions your Python projects.
ef6f3a7
%endif
ef6f3a7
ef6f3a7
%prep
ef6f3a7
%autosetup -n %{pypi_name}-%{version}
ef6f3a7
# Remove bundled egg-info
ef6f3a7
rm -rf %{pypi_name}.egg-info
ef6f3a7
ef6f3a7
%build
ef6f3a7
%py2_build
ef6f3a7
%if 0%{?with_python3}
ef6f3a7
%py3_build
ef6f3a7
%endif
ef6f3a7
ef6f3a7
%install
ef6f3a7
%if 0%{?with_python3}
ef6f3a7
%py3_install
ef6f3a7
%endif
ef6f3a7
ef6f3a7
%py2_install
ef6f3a7
ef6f3a7
ef6f3a7
%files -n python2-%{pypi_name}
ef6f3a7
%license LICENSE
ef6f3a7
%doc README.rst
ef6f3a7
%{python2_sitelib}/%{pypi_name}
ef6f3a7
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
ef6f3a7
ef6f3a7
%if 0%{?with_python3}
ef6f3a7
%files -n python3-%{pypi_name}
ef6f3a7
%license LICENSE
ef6f3a7
%doc README.rst
ef6f3a7
%{python3_sitelib}/%{pypi_name}
ef6f3a7
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
ef6f3a7
%endif
ef6f3a7
ef6f3a7
%changelog
baee868
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 17.5.0-6
baee868
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
baee868
6ff9ee3
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 17.5.0-5
6ff9ee3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
6ff9ee3
bfeaeed
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 17.5.0-4
bfeaeed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
bfeaeed
57fc593
* Tue Jun 19 2018 Miro HronĨok <mhroncok@redhat.com> - 17.5.0-3
57fc593
- Rebuilt for Python 3.7
57fc593
b48d26f
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 17.5.0-2
b48d26f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
b48d26f
ef6f3a7
* Fri Aug 11 2017 Yatin Karel <ykarel@redhat.com> - 17.5.0-1
ef6f3a7
- Initial package.