package init
This commit is contained in:
parent
04ff401af7
commit
d083963293
49
pyScss.spec
Normal file
49
pyScss.spec
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
%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
|
||||||
4
pyScss.yaml
Normal file
4
pyScss.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: Kronuz/pyScss
|
||||||
|
tag_prefix: "v"
|
||||||
|
seperator: "."
|
||||||
BIN
python-scss-1.3.5.tar.gz
Normal file
BIN
python-scss-1.3.5.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user