forked from pool/python-libsass
Accepting request 1071138 from home:pgajdos:python
- version update to 0.22.0 - Remove python 2.x support [:issue:`373` by anthony sottile]. - Remove deprecated ``sassc`` cli [:issue:`379` by anthony sottile]. - python-six is not required - do not conflict with sassc package OBS-URL: https://build.opensuse.org/request/show/1071138 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-libsass?expand=0&rev=19
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-libsass
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -17,9 +17,8 @@
|
||||
|
||||
|
||||
%define _name libsass-python
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-libsass
|
||||
Version: 0.21.0
|
||||
Version: 0.22.0
|
||||
Release: 0
|
||||
Summary: Python binding for libsass
|
||||
License: MIT
|
||||
@@ -29,17 +28,13 @@ Source: https://github.com/sass/libsass-python/archive/%{version}.tar.gz
|
||||
BuildRequires: %{python_module Cython}
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module six}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: libsass-devel >= 3.6.4
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-setuptools
|
||||
Requires: python-six
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
# Both are providing sassc binary with different parameters
|
||||
Conflicts: sassc
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module Werkzeug}
|
||||
BuildRequires: %{python_module pytest}
|
||||
@@ -54,13 +49,13 @@ with no Ruby stack at all!
|
||||
%setup -q -n libsass-python-%{version}
|
||||
|
||||
%build
|
||||
sed -i -e '/^#!\//, 1d' *.py
|
||||
export SYSTEM_SASS=true
|
||||
%python_build
|
||||
|
||||
%install
|
||||
export SYSTEM_SASS=true
|
||||
%python_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/sassc
|
||||
%python_clone -a %{buildroot}%{_bindir}/pysassc
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||
|
||||
@@ -68,16 +63,14 @@ export SYSTEM_SASS=true
|
||||
%pytest_arch sasstests.py
|
||||
|
||||
%post
|
||||
%python_install_alternative sassc
|
||||
%python_install_alternative pysassc
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative sassc
|
||||
%python_uninstall_alternative pysassc
|
||||
|
||||
%files %{python_files}
|
||||
%python_alternative %{_bindir}/pysassc
|
||||
%python_alternative %{_bindir}/sassc
|
||||
%{python_sitearch}/*
|
||||
%{python_sitearch}/__pycache__
|
||||
%{python_sitearch}/*sass*
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user