[packages/python-requests] - description cosmetics, python3 epoch

qboosh qboosh at pld-linux.org
Fri Oct 3 18:49:39 CEST 2014


commit ef9212cea1e9d7b17cda1d639d96c82dd64e65bc
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Oct 3 18:49:46 2014 +0200

    - description cosmetics, python3 epoch

 python-requests.spec | 27 +++++++++++++++++----------
 1 file changed, 17 insertions(+), 10 deletions(-)
---
diff --git a/python-requests.spec b/python-requests.spec
index 315ffe6..4152f71 100644
--- a/python-requests.spec
+++ b/python-requests.spec
@@ -1,10 +1,11 @@
+#
 # Conditional build:
-%bcond_without  python2         # build python 2 module
-%bcond_without  python3         # build python 3 module
+%bcond_without	python2	# CPython 2.x module
+%bcond_without	python3	# CPython 3.x module
 #
 %define 	module	requests
-Summary:	HTTP library for Python
-Summary(pl.UTF-8):	Biblioteka HTTP dla Pythona
+Summary:	HTTP library for Python 2
+Summary(pl.UTF-8):	Biblioteka HTTP dla Pythona 2
 Name:		python-%{module}
 Version:	2.4.1
 Release:	1
@@ -22,7 +23,7 @@ BuildRequires:	python-urllib3 >= 1.9.1
 %endif
 %if %{with python3}
 BuildRequires:	python3-charade
-BuildRequires:	python3-modules >= 3.2
+BuildRequires:	python3-modules >= 1:3.2
 BuildRequires:	python3-urllib3 >= 1.9.1
 %endif
 BuildRequires:	rpm-pythonprov
@@ -44,6 +45,8 @@ broken. It requires an enormous amount of work (even method overrides)
 to perform the simplest of tasks. Things shouldn't be this way. Not in
 Python.
 
+This package contains Python 2.x module.
+
 %description -l pl.UTF-8
 Requests to napisana w Pythonie biblioteka HTTP dla ludzi.
 
@@ -53,13 +56,15 @@ zapewnia większość wymaganych możliwości HTTP, ale API jest kiepskie -
 wymaga dużych nakładów pracy (nawet nadpisań metod) do wykonania
 najprostszych zadań. Nie powinno tak być. Nie w Pythonie.
 
+Ten pakiet zawiera moduł dla Pythona 2.x.
+
 %package -n python3-requests
-Summary:	HTTP library, written in Python, for human beings
-Summary(pl.UTF-8):	Biblioteka HTTP library napisana w Pythonie dla ludzi
+Summary:	HTTP library for Python 3
+Summary(pl.UTF-8):	Biblioteka HTTP dla Pythona 3
 Group:		Development/Languages/Python
 Requires:	ca-certificates
 Requires:	python3-charade
-Requires:	python3-modules >= 3.2
+Requires:	python3-modules >= 1:3.2
 Requires:	python3-urllib3 >= 1.9.1
 
 %description -n python3-requests
@@ -72,6 +77,8 @@ broken. It requires an enormous amount of work (even method overrides)
 to perform the simplest of tasks. Things shouldn't be this way. Not in
 Python.
 
+This package contains Python 3.x module.
+
 %description -n python3-requests -l pl.UTF-8
 Requests to napisana w Pythonie biblioteka HTTP dla ludzi.
 
@@ -81,6 +88,8 @@ zapewnia większość wymaganych możliwości HTTP, ale API jest kiepskie -
 wymaga dużych nakładów pracy (nawet nadpisań metod) do wykonania
 najprostszych zadań. Nie powinno tak być. Nie w Pythonie.
 
+Ten pakiet zawiera moduł dla Pythona 3.x.
+
 %prep
 %setup -q -n %{module}-%{version}
 %patch0 -p1
@@ -129,10 +138,8 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc HISTORY.rst README.rst
 %{py_sitescriptdir}/%{module}
-%if "%{py_ver}" > "2.4"
 %{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
 %endif
-%endif
 
 %if %{with python3}
 %files -n python3-requests
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-requests.git/commitdiff/ef9212cea1e9d7b17cda1d639d96c82dd64e65bc



More information about the pld-cvs-commit mailing list