[packages/python-makefun] - new

qboosh qboosh at pld-linux.org
Sun Feb 4 09:24:31 CET 2024


commit e96738f3cf2eea135dc475d14ddb62df21edfc5d
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Feb 4 08:08:57 2024 +0100

    - new

 python-makefun.spec | 116 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 116 insertions(+)
---
diff --git a/python-makefun.spec b/python-makefun.spec
new file mode 100644
index 0000000..b46d8e3
--- /dev/null
+++ b/python-makefun.spec
@@ -0,0 +1,116 @@
+#
+# Conditional build:
+%bcond_without	doc	# Sphinx documentation
+%bcond_without	tests	# unit tests
+%bcond_without	python2 # CPython 2.x module
+%bcond_without	python3 # CPython 3.x module
+
+Summary:	Small library to dynamically create Python functions
+Summary(pl.UTF-8):	Mała biblioteka do dynamicznego tworzenia funkcji w Pythonie
+Name:		python-makefun
+Version:	1.15.2
+Release:	1
+License:	BSD
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/makefun/
+Source0:	https://files.pythonhosted.org/packages/source/m/makefun/makefun-%{version}.tar.gz
+# Source0-md5:	26953447e7542866b5e6e46d75ce4837
+URL:		https://pypi.org/project/makefun/
+%if %{with python2}
+BuildRequires:	python-modules >= 1:2.7
+BuildRequires:	python-pytest-runner
+BuildRequires:	python-setuptools >= 1:39.2
+BuildRequires:	python-setuptools_scm
+%if %{with tests}
+BuildRequires:	python-funcsigs
+BuildRequires:	python-pytest
+%endif
+%endif
+%if %{with python3}
+BuildRequires:	python3-modules >= 1:3.5
+BuildRequires:	python3-pytest-runner
+BuildRequires:	python3-setuptools >= 1:39.2
+BuildRequires:	python3-setuptools_scm
+%if %{with tests}
+BuildRequires:	python3-pytest
+%endif
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Requires:	python-modules >= 1:2.7
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Small library to dynamically create Python functions.
+
+%description -l pl.UTF-8
+Mała biblioteka do dynamicznego tworzenia funkcji w Pythonie.
+
+%package -n python3-makefun
+Summary:	Small library to dynamically create Python functions
+Summary(pl.UTF-8):	Mała biblioteka do dynamicznego tworzenia funkcji w Pythonie
+Group:		Libraries/Python
+Requires:	python3-modules >= 1:3.5
+
+%description -n python3-makefun
+Small library to dynamically create Python functions.
+
+%description -n python3-makefun -l pl.UTF-8
+Mała biblioteka do dynamicznego tworzenia funkcji w Pythonie.
+
+%prep
+%setup -q -n makefun-%{version}
+
+%build
+%if %{with python2}
+%py_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTHONPATH=$(pwd)/src \
+%{__python} -m pytest tests
+%endif
+%endif
+
+%if %{with python3}
+%py3_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTHONPATH=$(pwd)/src \
+%{__python3} -m pytest tests
+%endif
+%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 LICENSE README.md docs/*.md
+%{py_sitescriptdir}/makefun
+%{py_sitescriptdir}/makefun-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-makefun
+%defattr(644,root,root,755)
+%doc LICENSE README.md docs/*.md
+%{py3_sitescriptdir}/makefun
+%{py3_sitescriptdir}/makefun-%{version}-py*.egg-info
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-makefun.git/commitdiff/e96738f3cf2eea135dc475d14ddb62df21edfc5d



More information about the pld-cvs-commit mailing list