From cc5cedaf51b394a888e555e45cc9eb12c53ee3f2eb50abcac6399f64698b295a Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 13 Mar 2023 16:27:55 +0000 Subject: [PATCH] - 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 --- 0.21.0.tar.gz | 3 --- python-libsass.changes | 6 ++++++ python-libsass.spec | 15 ++++++++++++--- 3 files changed, 18 insertions(+), 6 deletions(-) delete mode 100644 0.21.0.tar.gz diff --git a/0.21.0.tar.gz b/0.21.0.tar.gz deleted file mode 100644 index d093db1..0000000 --- a/0.21.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e8054359e2ef22e1b724cfc0e924f46095429a33075c61af30ed2cbb7fa20a1e -size 55774 diff --git a/python-libsass.changes b/python-libsass.changes index b0a3c2d..b1c70ff 100644 --- a/python-libsass.changes +++ b/python-libsass.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Mar 13 16:27:27 UTC 2023 - Matej Cepl + +- 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 diff --git a/python-libsass.spec b/python-libsass.spec index 44a8ebc..bd167b4 100644 --- a/python-libsass.spec +++ b/python-libsass.spec @@ -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