forked from pool/python-libsass
- 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user