pyScss/pyScss.spec
kang_xiao_qiang d083963293 package init
2020-10-29 21:02:31 +08:00

50 lines
1.4 KiB
RPMSpec

%global __provides_exclude_from ^(%{python3_sitearch}/.*\\.so)$
%global pypi_name pyScss
%global sname pyscss
%global pname scss
Name: pyScss
Version: 1.3.5
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
* Tue Oct 27 2020 shaoqiang kang <kangshaoqiang1@huawei.com> - 1.3.5-1
- Package init