%global srcname pygments-style-solarized %global sum Solarized style plugin for Pygments Name: python-%{srcname} Version: 0.1.1 Release: 1%{?dist} Summary: %{sum} License: MIT URL: https://github.com/shkumagai/pygments-style-solarized Source0: https://files.pythonhosted.org/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python-setuptools BuildRequires: python3-devel BuildRequires: python3-setuptools %description %{sum} %package -n python2-%{srcname} Summary: %{sum} Requires: python2-pygments >= 1.5 %{?python_provide:%python_provide python2-%{srcname}} %description -n python2-%{srcname} %{sum} %package -n python3-%{srcname} Summary: %{sum} Requires: python3-pygments >= 1.5 %{?python_provide:%python_provide python3-%{srcname}} %description -n python3-%{srcname} %{sum} %prep %autosetup -n %{srcname}-%{version} # Remove bundled egg-info rm -rf %{srcname}.egg-info %build %py2_build %py3_build %install # Must do the subpackages' install first because the scripts in /usr/bin are # overwritten with every setup.py install. %py3_install %py2_install %files -n python2-%{srcname} %doc README.rst AUTHORS.rst HISTORY.rst %{python2_sitelib}/* %files -n python3-%{srcname} %doc README.rst AUTHORS.rst HISTORY.rst %{python3_sitelib}/* %changelog * Fri Mar 17 2017 Ed Marshall - 0.1.1-1 - Initial package.