[packages/python-PyYAML] - fix examples shebangs; release 2

qboosh qboosh at pld-linux.org
Tue Dec 31 22:50:08 CET 2019


commit a6da519e92ba579212767805114c113f7fc28b84
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Dec 31 22:51:01 2019 +0100

    - fix examples shebangs; release 2

 python-PyYAML.spec | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/python-PyYAML.spec b/python-PyYAML.spec
index 3d19c3b..851c4ac 100644
--- a/python-PyYAML.spec
+++ b/python-PyYAML.spec
@@ -10,7 +10,7 @@ Summary:	YAML parser and emitter module for Python 2
 Summary(pl.UTF-8):	Analizator i generator formatu YAML dla języka Python 2
 Name:		python-%{module}
 Version:	5.2
-Release:	1
+Release:	2
 License:	MIT
 Group:		Libraries/Python
 #Source0Download: https://github.com/yaml/pyyaml/releases
@@ -19,6 +19,7 @@ Source0:	https://github.com/yaml/pyyaml/archive/%{version}/pyyaml-%{version}.tar
 URL:		https://github.com/yaml/pyyaml
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
+BuildRequires:	sed >= 4.0
 BuildRequires:	yaml-devel >= 0.2.2
 %if %{with python2}
 BuildRequires:	python-Cython
@@ -108,6 +109,7 @@ rm -rf $RPM_BUILD_ROOT
 
 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 cp -p examples/yaml-highlight/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+%{__sed} -i -e '1s,/usr/bin/python,%{__python},' $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/yaml_hl.py
 %endif
 
 %if %{with python3}
@@ -115,6 +117,7 @@ cp -p examples/yaml-highlight/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version
 
 install -d $RPM_BUILD_ROOT%{_examplesdir}/python3-PyYAML-%{version}
 cp -p examples/yaml-highlight/* $RPM_BUILD_ROOT%{_examplesdir}/python3-PyYAML-%{version}
+%{__sed} -i -e '1s,/usr/bin/python,%{__python3},' $RPM_BUILD_ROOT%{_examplesdir}/python3-PyYAML-%{version}/yaml_hl.py
 %endif
 
 %clean
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-PyYAML.git/commitdiff/a6da519e92ba579212767805114c113f7fc28b84



More information about the pld-cvs-commit mailing list