[packages/python-sphinx-gallery] - install process cleanup - rel 4

baggins baggins at pld-linux.org
Sun Nov 3 10:25:18 CET 2019


commit e61c608d52fcee7802c824560a84b5692b815c90
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun Nov 3 10:23:47 2019 +0100

    - install process cleanup
    - rel 4

 python-sphinx-gallery.spec | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/python-sphinx-gallery.spec b/python-sphinx-gallery.spec
index 309e20b..ad6c443 100644
--- a/python-sphinx-gallery.spec
+++ b/python-sphinx-gallery.spec
@@ -8,7 +8,7 @@ Summary:	Sphinx extension to automatically generate an examples gallery
 Summary(pl.UTF-8):	Rozszerzenie Sphinksa do automatycznego generowania galerii przykładów
 Name:		python-sphinx-gallery
 Version:	0.4.0
-Release:	3
+Release:	4
 License:	BSD
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/sphinx-gallery/
@@ -95,12 +95,11 @@ rm -rf $RPM_BUILD_ROOT
 
 %py_postclean
 %{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/sphinx_gallery/tests
-
-# ensure tools come from python3 package
-%{__rm} $RPM_BUILD_ROOT%{_bindir}/*
 %endif
 
 %if %{with python3}
+# ensure tools come from python3 package
+%{__rm} -r $RPM_BUILD_ROOT%{_bindir}
 %py3_install
 
 %{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/sphinx_gallery/tests
@@ -113,6 +112,10 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc CHANGES.rst LICENSE README.rst
+%if %{without python3}
+%attr(755,root,root) %{_bindir}/copy_sphinxgallery.sh
+%attr(755,root,root) %{_bindir}/sphx_glr_python_to_jupyter.py
+%endif
 %{py_sitescriptdir}/sphinx_gallery
 %{py_sitescriptdir}/sphinx_gallery-%{version}-py*.egg-info
 %endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-sphinx-gallery.git/commitdiff/e61c608d52fcee7802c824560a84b5692b815c90



More information about the pld-cvs-commit mailing list