commit ec1f3cbf301ed974026e8372b0ac0217d8ee942d
Author: Jan RÄ™korajski <[email protected]>
Date:   Sun Mar 7 23:54:31 2021 +0100

    - fix examples shebangs and remove dead symlink

 python-notify2.spec | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/python-notify2.spec b/python-notify2.spec
index daaace2..a0ce6a4 100644
--- a/python-notify2.spec
+++ b/python-notify2.spec
@@ -4,8 +4,8 @@
 %bcond_without python2 # CPython 2.x module
 %bcond_without python3 # CPython 3.x module
 
-%define        module          notify2
-%define        egg_name        notify2
+%define                module          notify2
+%define                egg_name        notify2
 %define                pypi_name       notify2
 Summary:       Python 2 interface to DBus notifications
 Name:          python-%{pypi_name}
@@ -82,12 +82,18 @@ rm -rf $RPM_BUILD_ROOT
 %py_postclean
 install -d $RPM_BUILD_ROOT%{_examplesdir}/python-%{module}-%{version}
 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/python-%{module}-%{version}
+%{__rm} 
$RPM_BUILD_ROOT%{_examplesdir}/python-%{pypi_name}-%{version}/notify2.py
+%{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+python(\s|$),#!%{__python}\1,' \
+       $RPM_BUILD_ROOT%{_examplesdir}/python-%{module}-%{version}/*.py
 %endif
 
 %if %{with python3}
 %py3_install
 install -d $RPM_BUILD_ROOT%{_examplesdir}/python3-%{pypi_name}-%{version}
 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/python3-%{pypi_name}-%{version}
+%{__rm} 
$RPM_BUILD_ROOT%{_examplesdir}/python3-%{pypi_name}-%{version}/notify2.py
+%{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+python(\s|$),#!%{__python3}\1,' \
+       $RPM_BUILD_ROOT%{_examplesdir}/python3-%{module}-%{version}/*.py
 %endif
 
 %clean
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-notify2.git/commitdiff/ec1f3cbf301ed974026e8372b0ac0217d8ee942d

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to