[packages/python-incremental] - new

qboosh qboosh at pld-linux.org
Sat Mar 21 14:51:33 CET 2020


commit 2fd097895513c9697a67aaeae49bd65576b82139
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Mar 21 14:52:34 2020 +0100

    - new

 python-incremental.spec | 135 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 135 insertions(+)
---
diff --git a/python-incremental.spec b/python-incremental.spec
new file mode 100644
index 0000000..776f86a
--- /dev/null
+++ b/python-incremental.spec
@@ -0,0 +1,135 @@
+# TODO: apidocs (BR: pydoctor), tests (BR: twisted.trial >= 16.4.0, click >= 6.0)
+#
+# Conditional build:
+%bcond_with	doc	# API documentation (pydoctor based)
+%bcond_with	tests	# unit tests (require Twisted)
+%bcond_without	python2 # CPython 2.x module
+%bcond_without	python3 # CPython 3.x module
+
+Summary:	Library that versions Python projects
+Summary(pl.UTF-8):	Biblioteka wersjonująca projekty w Pythonie
+Name:		python-incremental
+Version:	17.5.0
+Release:	1
+License:	MIT
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/incremental/
+Source0:	https://files.pythonhosted.org/packages/source/i/incremental/incremental-%{version}.tar.gz
+# Source0-md5:	602746e0d438e075a5a9e0678140bba2
+URL:		https://pypi.org/project/incremental/
+%if %{with python2}
+BuildRequires:	python-modules >= 1:2.6
+BuildRequires:	python-setuptools
+%if %{with tests}
+BuildRequires:	python-click >= 6.0
+BuildRequires:	python-twisted >= 16.4.0
+%endif
+%endif
+%if %{with python3}
+BuildRequires:	python3-modules >= 1:3.3
+BuildRequires:	python3-setuptools
+%if %{with tests}
+BuildRequires:	python3-click >= 6.0
+BuildRequires:	python3-twisted >= 16.4.0
+%endif
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+%if %{with doc}
+BuildRequires:	pydoctor
+%endif
+# replace with other requires if defined in setup.py
+Requires:	python-modules >= 1:2.6
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Incremental is a small library that versions your Python projects.
+
+%description -l pl.UTF-8
+Incremental to mała biblioteka do wersjonowania projektów w Pythonie.
+
+%package -n python3-incremental
+Summary:	Library that versions Python projects
+Summary(pl.UTF-8):	Biblioteka wersjonująca projekty w Pythonie
+Group:		Libraries/Python
+Requires:	python3-modules >= 1:3.3
+
+%description -n python3-incremental
+Incremental is a small library that versions your Python projects.
+
+%description -n python3-incremental -l pl.UTF-8
+Incremental to mała biblioteka do wersjonowania projektów w Pythonie.
+
+%package apidocs
+Summary:	API documentation for Python incremental module
+Summary(pl.UTF-8):	Dokumentacja API modułu Pythona incremental
+Group:		Documentation
+
+%description apidocs
+API documentation for Python incremental module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu Pythona incremental.
+
+%prep
+%setup -q -n incremental-%{version}
+
+%build
+%if %{with python2}
+%py_build
+
+%if %{with tests}
+trial-2 incremental
+%endif
+%endif
+
+%if %{with python3}
+%py3_build
+
+%if %{with tests}
+trial-3 incremental
+%endif
+%endif
+
+%if %{with doc}
+pydoctor -q --project-name incremental src/incremental
+%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 NEWS.rst README.rst
+%{py_sitescriptdir}/incremental
+%{py_sitescriptdir}/incremental-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-incremental
+%defattr(644,root,root,755)
+%doc LICENSE NEWS.rst README.rst
+%{py3_sitescriptdir}/incremental
+%{py3_sitescriptdir}/incremental-%{version}-py*.egg-info
+%endif
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc # TODO
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-incremental.git/commitdiff/2fd097895513c9697a67aaeae49bd65576b82139



More information about the pld-cvs-commit mailing list