Blame SPECS/python-deprecation.spec

c80263
%{!?upstream_version: %global upstream_version %{version}%{?milestone}}
c80263
%if 0%{?fedora} || 0%{?rhel} > 7
c80263
%bcond_with    python2
c80263
%bcond_without python3
c80263
%else
c80263
%bcond_without python2
c80263
%bcond_with    python3
c80263
%endif
c80263
c80263
%global pypi_name deprecation
c80263
c80263
Name:           python-%{pypi_name}
c80263
Version:        2.1.0
c80263
Release:        2%{?dist}
c80263
Summary:        A library to handle automated deprecations
c80263
License:        ASL 2.0
c80263
URL:            http://deprecation.readthedocs.io/
c80263
Source0:        https://files.pythonhosted.org/packages/source/d/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
c80263
BuildArch:      noarch
c80263
 
c80263
%description
c80263
The deprecation library provides a deprecated decorator and a
c80263
fail_if_not_removed decorator for your tests.
c80263
c80263
%if %{with python2}
c80263
%package -n     python2-%{pypi_name}
c80263
Summary:        A library to handle automated deprecations
c80263
BuildRequires:  python2-devel
c80263
BuildRequires:  python2-setuptools
c80263
%{?python_provide:%python_provide python2-%{pypi_name}}
c80263
c80263
%description -n python2-%{pypi_name}
c80263
The deprecation library provides a deprecated decorator and a
c80263
fail_if_not_removed decorator for your tests.
c80263
%endif
c80263
c80263
%if %{with python3}
c80263
%package -n     python3-%{pypi_name}
c80263
Summary:        A library to handle automated deprecations
c80263
%{?python_provide:%python_provide python3-%{pypi_name}}
c80263
BuildRequires:  python3-devel
c80263
BuildRequires:  python3-setuptools
c80263
c80263
%description -n python3-%{pypi_name}
c80263
The deprecation library provides a deprecated decorator and a
c80263
fail_if_not_removed decorator for your tests.
c80263
%endif
c80263
c80263
c80263
%prep
c80263
%autosetup -n %{pypi_name}-%{version}
c80263
# Remove bundled egg-info
c80263
rm -rf %{pypi_name}.egg-info
c80263
c80263
%build
c80263
%if %{with python2}
c80263
%py2_build
c80263
%endif
c80263
%if %{with python3}
c80263
%py3_build
c80263
%endif
c80263
c80263
%install
c80263
%if %{with python3}
c80263
%py3_install
c80263
%endif
c80263
%if %{with python2}
c80263
%py2_install
c80263
%endif
c80263
c80263
%if %{with python2}
c80263
%files -n python2-%{pypi_name}
c80263
%doc README.rst
c80263
%license LICENSE
c80263
%{python2_sitelib}/%{pypi_name}.py*
c80263
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
c80263
%endif
c80263
c80263
%if %{with python3}
c80263
%files -n python3-%{pypi_name}
c80263
%doc README.rst
c80263
%license LICENSE
c80263
%{python3_sitelib}/__pycache__/*
c80263
%{python3_sitelib}/%{pypi_name}.py
c80263
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
c80263
%endif
c80263
c80263
%changelog
c80263
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-2
c80263
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
c80263
c80263
* Tue Sep 08 2020 Yatin Karel <ykarel@redhat.com> - 2.1.0-1
c80263
- Update to 2.1.0
c80263
c80263
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.6-8
c80263
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
c80263
c80263
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.0.6-7
c80263
- Rebuilt for Python 3.9
c80263
c80263
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.6-6
c80263
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
c80263
c80263
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.0.6-5
c80263
- Rebuilt for Python 3.8.0rc1 (#1748018)
c80263
c80263
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.0.6-4
c80263
- Rebuilt for Python 3.8
c80263
c80263
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.6-3
c80263
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
c80263
c80263
* Mon Apr 01 2019 Javier Peña <jpena@redhat.com> - 2.0.6-2
c80263
- Removed python2 subpackage from Fedora (rhbz#1694620)
c80263
c80263
* Wed Feb 06 2019 Alfredo Moralejo <amoralej@redhat.com> - 2.0.6-1
c80263
- Update to 2.0.6.
c80263
c80263
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-10
c80263
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
c80263
c80263
* Sun Nov 18 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.0-9
c80263
- Drop explicit locale setting
c80263
  See https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot
c80263
c80263
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-8
c80263
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
c80263
c80263
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.0-7
c80263
- Rebuilt for Python 3.7
c80263
c80263
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-6
c80263
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
c80263
c80263
* Tue Jan 16 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.0-5
c80263
- Update Python 2 dependency declarations to new packaging standards
c80263
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
c80263
c80263
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-4
c80263
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
c80263
c80263
* Tue Feb 28 2017 Javier Peña <jpena@redhat.com> - 1.0-3
c80263
- Fix description for subpackages
c80263
c80263
* Tue Feb 28 2017 Javier Peña <jpena@redhat.com> - 1.0-2
c80263
- Added license file from git repo
c80263
c80263
* Wed Feb 15 2017 Javier Peña <jpena@redhat.com> - 1.0-1
c80263
- Initial package.