%global __provides_exclude_from ^(%{python3_sitearch}/.*\\.so)$ %global pypi_name pyScss %global sname pyscss %global pname scss Name: pyScss Version: 1.3.7 Release: 1 Summary: A Scss compiler for Python License: MIT URL: https://github.com/Kronuz/pyScss Source0: https://github.com/Kronuz/pyScss/archive/v%{version}.tar.gz#/python-scss-%{version}.tar.gz BuildRequires: pcre-devel gcc %description A Scss compiler for Python %package -n python3-%{pname} Summary: A Scss compiler for Python BuildRequires: python3-devel python3-setuptools python3-six python3-sphinx Requires: python3-six python3-setuptools %{?python_provide:%python_provide python3-%{pname}} %description -n python3-%{pname} A Scss compiler for Python %prep %autosetup -n %{pypi_name}-%{version} pathfix.py -pni "%{__python3} %{py3_shbang_opts}" . %build %py3_build cd docs make SPHINXBUILD=sphinx-build-3 man %install %py3_install chmod +x %{buildroot}%{python3_sitearch}/scss/tool.py mkdir -p %{buildroot}%{_mandir}/man1/ cp -ar docs/_build/man/pyscss.1 %{buildroot}%{_mandir}/man1/pyscss.1 %files -n python3-%{pname} %doc DESCRIPTION README.rst %license LICENSE %{python3_sitearch}/* %{_bindir}/pyscss %{_bindir}/less2scss %{_mandir}/man1/pyscss.1.gz %changelog * Fri Jan 29 2021 wangxiyuan - Bump version to 1.3.7 * Tue Oct 27 2020 shaoqiang kang - 1.3.5-1 - Package init