[packages/python-wget] - new
qboosh
qboosh at pld-linux.org
Sun Nov 30 12:16:27 CET 2025
commit c33836f92120da391739c76914e40429d5e19b19
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Nov 30 12:16:26 2025 +0100
- new
python-wget.spec | 93 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 93 insertions(+)
---
diff --git a/python-wget.spec b/python-wget.spec
new file mode 100644
index 0000000..d00693a
--- /dev/null
+++ b/python-wget.spec
@@ -0,0 +1,93 @@
+#
+# Conditional build:
+%bcond_without python2 # CPython 2.x module
+%bcond_without python3 # CPython 3.x module
+
+Summary: Pure Python download utility
+Summary(pl.UTF-8): Narzędzie do pobierania w czystym Pythonie
+Name: python-wget
+Version: 3.2
+Release: 1
+License: Public Domain
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/wget/
+Source0: https://files.pythonhosted.org/packages/source/w/wget/wget-%{version}.zip
+# Source0-md5: fb7a04ee59a56bd8db974146df1d7a8b
+URL: https://pypi.org/project/wget/
+%if %{with python2}
+BuildRequires: python-modules >= 1:2.5
+%endif
+%if %{with python3}
+BuildRequires: python3-modules >= 1:3.2
+# distutils
+BuildRequires: python3-setuptools
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+BuildRequires: unzip
+Requires: python-modules >= 1:2.5
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Pure Python download utility.
+
+%description -l pl.UTF-8
+Narzędzie do pobierania w czystym Pythonie.
+
+%package -n python3-wget
+Summary: Pure Python download utility
+Summary(pl.UTF-8): Narzędzie do pobierania w czystym Pythonie
+Group: Libraries/Python
+Requires: python3-modules >= 1:3.2
+
+%description -n python3-wget
+Pure Python download utility.
+
+%description -n python3-wget -l pl.UTF-8
+Narzędzie do pobierania w czystym Pythonie.
+
+%prep
+%setup -q -n wget-%{version}
+
+%build
+%if %{with python2}
+%py_build
+%endif
+
+%if %{with python3}
+%py3_build
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%py_install
+
+%py_postclean
+%endif
+
+%if %{with python3}
+%py3_install
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%files
+%defattr(644,root,root,755)
+%doc README.txt
+%{py_sitescriptdir}/wget.py[co]
+%{py_sitescriptdir}/wget-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-wget
+%defattr(644,root,root,755)
+%doc README.txt
+%{py3_sitescriptdir}/wget.py
+%{py3_sitescriptdir}/__pycache__/wget.cpython-*.py[co]
+%{py3_sitescriptdir}/wget-%{version}-py*.egg-info
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-wget.git/commitdiff/c33836f92120da391739c76914e40429d5e19b19
More information about the pld-cvs-commit
mailing list