- Clean up the SPEC file and tighten it a bit to be less

all-accepting.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-libsass?expand=0&rev=20
This commit is contained in:
2023-03-13 16:27:55 +00:00
committed by Git OBS Bridge
parent 72fc30f520
commit cc5cedaf51
3 changed files with 18 additions and 6 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e8054359e2ef22e1b724cfc0e924f46095429a33075c61af30ed2cbb7fa20a1e
size 55774

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Mar 13 16:27:27 UTC 2023 - Matej Cepl <mcepl@suse.com>
- Clean up the SPEC file and tighten it a bit to be less
all-accepting.
-------------------------------------------------------------------
Mon Mar 13 13:15:05 UTC 2023 - pgajdos@suse.com

View File

@@ -57,7 +57,12 @@ export SYSTEM_SASS=true
export SYSTEM_SASS=true
%python_install
%python_clone -a %{buildroot}%{_bindir}/pysassc
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%{python_expand \
# We don't want to install tests
rm %{buildroot}%{$python_sitearch}/sasstests.py \
%{buildroot}%{$python_sitearch}/__pycache__/sasstests.*.pyc
%fdupes %{buildroot}%{$python_sitearch}
}
%check
%pytest_arch sasstests.py
@@ -70,7 +75,11 @@ export SYSTEM_SASS=true
%files %{python_files}
%python_alternative %{_bindir}/pysassc
%{python_sitearch}/__pycache__
%{python_sitearch}/*sass*
%{python_sitearch}/pysassc.py
%{python_sitearch}/sass.py
%{python_sitearch}/_sass*.so
%{python_sitearch}/sassutils
%pycache_only %{python_sitearch}/__pycache__/*sass*.pyc
%{python_sitearch}/libsass-%{version}*-info
%changelog