+#
# 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
%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
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.
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
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.
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
%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