diff --git a/pyScss.spec b/pyScss.spec new file mode 100644 index 0000000..69e3d09 --- /dev/null +++ b/pyScss.spec @@ -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 - 1.3.5-1 +- Package init diff --git a/pyScss.yaml b/pyScss.yaml new file mode 100644 index 0000000..2260f95 --- /dev/null +++ b/pyScss.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: Kronuz/pyScss +tag_prefix: "v" +seperator: "." diff --git a/python-scss-1.3.5.tar.gz b/python-scss-1.3.5.tar.gz new file mode 100644 index 0000000..8662524 Binary files /dev/null and b/python-scss-1.3.5.tar.gz differ