[packages/python-pushover] Rel 10; use fissix instead of 2to3
arekm
arekm at pld-linux.org
Sat May 24 16:30:01 CEST 2025
commit 228314eace9836678b2b6c895f042a90b1a1122f
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sat May 24 15:55:02 2025 +0200
Rel 10; use fissix instead of 2to3
python-pushover.spec | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
---
diff --git a/python-pushover.spec b/python-pushover.spec
index 604045b..d900b49 100644
--- a/python-pushover.spec
+++ b/python-pushover.spec
@@ -8,7 +8,7 @@
Summary: Bindings for the Pushover notification service
Name: python-%{module}
Version: 0.4
-Release: 9
+Release: 10
License: GPL v3+
Group: Libraries/Python
Source0: https://github.com/Thibauth/python-pushover/archive/v%{version}.tar.gz
@@ -21,6 +21,7 @@ BuildRequires: python-modules
BuildRequires: python-setuptools
%endif
%if %{with python3}
+BuildRequires: python3-fissix
BuildRequires: python3-modules
BuildRequires: python3-setuptools
%endif
@@ -43,13 +44,22 @@ service.
%prep
%setup -q
+%if %{with python3}
+sed -i -e 's#use_2to3=True,##g' setup.py
+install -d bsrc-3
+cp -a [^b]* bsrc-3
+%{__python3} -m fissix --write --nobackups bsrc-3
+%endif
+
%build
%if %{with python2}
%py_build %{?with_tests:test}
%endif
%if %{with python3}
+cd bsrc-3
%py3_build %{?with_tests:test}
+cd ..
%endif
%install
@@ -60,7 +70,9 @@ rm -rf $RPM_BUILD_ROOT
%endif
%if %{with python3}
+cd bsrc-3
%py3_install
+cd ..
%endif
%clean
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-pushover.git/commitdiff/228314eace9836678b2b6c895f042a90b1a1122f
More information about the pld-cvs-commit
mailing list