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

@ -17,15 +17,6 @@ URL: https://github.com/robotis/lesscpy
Source0: https://pypi.python.org/packages/source/l/%{pypi_name}/%{pypi_name}-%{version}.tar.gz Source0: https://pypi.python.org/packages/source/l/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch: noarch 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\ %global _description\
A compiler written in python 3 for the lesscss language. For those of us not\ A compiler written in python 3 for the lesscss language. For those of us not\
willing/able to have node.js installed in our environment. Not all features\ willing/able to have node.js installed in our environment. Not all features\
@ -38,6 +29,12 @@ supported (JavaScript evaluation).
%package -n python2-lesscpy %package -n python2-lesscpy
Summary: %summary Summary: %summary
Requires: python2-ply 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} %{?python_provide:%python_provide python2-lesscpy}
%description -n python2-lesscpy %_description %description -n python2-lesscpy %_description