[packages/python] noarch doc and examples

atler atler at pld-linux.org
Mon Jan 15 20:25:41 CET 2024


commit 12a75a7adf29e7a509a5fc8e47082fa0391af3c8
Author: Jan Palus <atler at pld-linux.org>
Date:   Mon Jan 15 20:08:20 2024 +0100

    noarch doc and examples

 python.spec | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/python.spec b/python.spec
index 75b6c99..749bcbb 100644
--- a/python.spec
+++ b/python.spec
@@ -84,6 +84,7 @@ BuildRequires:	openssl-devel >= 0.9.8
 %endif
 BuildRequires:	pkgconfig
 BuildRequires:	readline-devel >= 5.0
+BuildRequires:	rpm-build >= 4.6
 BuildRequires:	rpm-pythonprov
 BuildRequires:	sed >= 4.0
 BuildRequires:	sqlite3-devel >= 3.3.5
@@ -442,6 +443,7 @@ Summary(tr.UTF-8):	Python belgeleri
 Summary(uk.UTF-8):	Документація по мові Python
 Group:		Documentation
 Obsoletes:	python-docs < 1.5.2-18
+BuildArch:	noarch
 
 %description doc
 This package contains documentation on the Python language and
@@ -547,6 +549,7 @@ Summary:	Example programs in Python
 Summary(pl.UTF-8):	Przykładowe programy w Pythonie
 Group:		Development/Languages/Python
 Obsoletes:	python-tools < 2.2
+BuildArch:	noarch
 
 %description examples
 Example programs in Python.
@@ -688,7 +691,7 @@ cp -a Tools Demo $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
 # for python devel tools
 for script in timeit profile pdb pstats; do
-    echo alias $script.py=\"python -m ${script}\"
+	echo alias $script.py=\"python -m ${script}\"
 done > $RPM_BUILD_ROOT/etc/shrc.d/python-devel.sh
 
 sed 's/=/ /' \
@@ -697,7 +700,7 @@ sed 's/=/ /' \
 
 # for python modules
 for script in smtpd webbrowser; do
-    echo alias $script.py=\"python -m ${script}\"
+	echo alias $script.py=\"python -m ${script}\"
 done > $RPM_BUILD_ROOT/etc/shrc.d/python-modules.sh
 %{__rm} $RPM_BUILD_ROOT%{_bindir}/smtpd.py
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python.git/commitdiff/12a75a7adf29e7a509a5fc8e47082fa0391af3c8



More information about the pld-cvs-commit mailing list