# Created by pyp2rpm-3.3.2 %global pypi_name css-parser Name: python-%{pypi_name} Version: 1.0.4 Release: 1%{?dist} Summary: A CSS Cascading Style Sheets library for Python License: LGPL 2.1 or later URL: https://github.com/ebook-utils/css-parser Source0: https://files.pythonhosted.org/packages/source/c/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python2dist(setuptools) BuildRequires: python3-devel BuildRequires: python3dist(setuptools) %description css-parser [![Build Status]( [![Build Status]( fork of the cssutils project based on version 1.0.2. This fork includes general bug fixes and extensions specific to editing and working with ebooks.The main python source code has been modified so that it will run without further conversion on both Python > 2.7 and Python 3.X without any further modules required. All required modifications %package -n python2-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python2-%{pypi_name}} %description -n python2-%{pypi_name} css-parser [![Build Status]( [![Build Status]( fork of the cssutils project based on version 1.0.2. This fork includes general bug fixes and extensions specific to editing and working with ebooks.The main python source code has been modified so that it will run without further conversion on both Python > 2.7 and Python 3.X without any further modules required. All required modifications %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} css-parser [![Build Status]( [![Build Status]( fork of the cssutils project based on version 1.0.2. This fork includes general bug fixes and extensions specific to editing and working with ebooks.The main python source code has been modified so that it will run without further conversion on both Python > 2.7 and Python 3.X without any further modules required. All required modifications %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %py2_build %py3_build %install # Must do the default python version install last because # the scripts in /usr/bin are overwritten with every setup.py install. %py2_install %py3_install %files -n python2-%{pypi_name} %doc README.md %{python2_sitelib}/css_parser %{python2_sitelib}/css_parser-%{version}-py?.?.egg-info %files -n python3-%{pypi_name} %doc README.md %{python3_sitelib}/css_parser %{python3_sitelib}/css_parser-%{version}-py?.?.egg-info %changelog * Sat Jan 05 2019 mockbuilder - 1.0.4-1 - Initial package.