Have py2 BRs in the subpackage block

This commit is contained in:
Miro Hrončok 2018-06-12 13:07:46 +02:00
parent f574d4eb0a
commit de6aa501a8

View File

@ -16,15 +16,6 @@ License: MIT
URL: https://github.com/robotis/lesscpy
Source0: https://pypi.python.org/packages/source/l/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch: noarch
%if %{with python2}
BuildRequires: python2-devel
BuildRequires: python2-setuptools
BuildRequires: python2-ply
BuildRequires: python2-nose
BuildRequires: python2-coverage
BuildRequires: python2-flake8
%endif # with python2
%global _description\
A compiler written in python 3 for the lesscss language. For those of us not\
@ -38,6 +29,12 @@ supported (JavaScript evaluation).
%package -n python2-lesscpy
Summary: %summary
Requires: python2-ply
BuildRequires: python2-devel
BuildRequires: python2-setuptools
BuildRequires: python2-ply
BuildRequires: python2-nose
BuildRequires: python2-coverage
BuildRequires: python2-flake8
%{?python_provide:%python_provide python2-lesscpy}
%description -n python2-lesscpy %_description