Subpackage python2-lesscpy has been removed

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2018-10-17 23:12:38 +02:00
parent e2c8f42f7e
commit 42b0d375b8

View File

@ -2,14 +2,11 @@
%if 0%{?rhel} > 7 %if 0%{?rhel} > 7
# Disable python2 build by default # Disable python2 build by default
%bcond_with python2
%else
%bcond_without python2
%endif %endif
Name: python-%{pypi_name} Name: python-%{pypi_name}
Version: 0.13.0 Version: 0.13.0
Release: 7%{?dist} Release: 8%{?dist}
Summary: Lesscss compiler Summary: Lesscss compiler
License: MIT License: MIT
@ -28,21 +25,6 @@ supported (JavaScript evaluation).
%description %_description %description %_description
%if %{with python2}
%package -n python2-lesscpy
Summary: %summary
Requires: python2-ply
Requires: python2-six
BuildRequires: python2-devel
BuildRequires: python2-setuptools
BuildRequires: python2-ply
BuildRequires: python2-nose
BuildRequires: python2-coverage
BuildRequires: python2-six
%{?python_provide:%python_provide python2-lesscpy}
%description -n python2-lesscpy %_description
%endif # with python2
%package -n python3-lesscpy %package -n python3-lesscpy
Summary: %summary Summary: %summary
@ -69,18 +51,11 @@ supported (JavaScript evaluation).
%autosetup -p1 -n %{pypi_name}-%{version} %autosetup -p1 -n %{pypi_name}-%{version}
%build %build
%if %{with python2}
%py2_build
%endif # with python2
%py3_build %py3_build
%install %install
%if %{with python2}
%py2_install
rm %{buildroot}/%{_bindir}/lesscpy
%endif # with python2
%py3_install %py3_install
# link for backwards compatibility. consider removal in Fedora 30+ # link for backwards compatibility. consider removal in Fedora 30+
@ -88,17 +63,8 @@ ln -s ./lesscpy %{buildroot}/%{_bindir}/py3-lesscpy
%check %check
%if %{with python2}
%{__python2} -m nose -v
%endif # with python2
%{__python3} -m nose -v %{__python3} -m nose -v
%if %{with python2}
%files -n python2-lesscpy
%doc LICENSE
%{python2_sitelib}/%{pypi_name}
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
%endif # with python2
%files -n python3-lesscpy %files -n python3-lesscpy
%doc LICENSE %doc LICENSE
@ -109,6 +75,10 @@ ln -s ./lesscpy %{buildroot}/%{_bindir}/py3-lesscpy
%changelog %changelog
* Wed Oct 17 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.13.0-8
- Subpackage python2-lesscpy has been removed
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
* Mon Jul 16 2018 Marcel Plch <mplch@redhat.com> - 0.13.0-7 * Mon Jul 16 2018 Marcel Plch <mplch@redhat.com> - 0.13.0-7
- Remove the unused flake8 build dependency - Remove the unused flake8 build dependency