[packages/python3-smmap] - python-smmap.spec updated to 5.0.1 for python 3.7+
qboosh
qboosh at pld-linux.org
Wed Sep 27 18:18:26 CEST 2023
commit d9edfd0b9b2e351de207faa403d67cfbaef14dfe
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Wed Sep 27 17:50:31 2023 +0200
- python-smmap.spec updated to 5.0.1 for python 3.7+
python-smmap.spec | 109 -----------------------------------------------------
python3-smmap.spec | 87 ++++++++++++++++++++++++++++++++++++++++++
2 files changed, 87 insertions(+), 109 deletions(-)
---
diff --git a/python-smmap.spec b/python-smmap.spec
deleted file mode 100644
index baa92af..0000000
--- a/python-smmap.spec
+++ /dev/null
@@ -1,109 +0,0 @@
-#
-# Conditional build:
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
-%bcond_without tests # unit tests
-
-%define module smmap
-Summary: A pure Python implementation of a sliding window memory map manager
-Summary(pl.UTF-8): Czysto pythonowa implementacja zarządcy odwzorowania w pamięci z przesuwnym oknem
-Name: python-%{module}
-# keep 3.x here for python2 support
-Version: 3.0.5
-Release: 3
-License: BSD
-Group: Development/Languages/Python
-#Source0Download: https://github.com/gitpython-developers/smmap/tags
-Source0: https://github.com/gitpython-developers/smmap/archive/v%{version}/%{module}-%{version}.tar.gz
-# Source0-md5: d57faa25108519e16650ec228c1b7bd1
-URL: https://github.com/gitpython-developers/smmap
-%if %{with python2}
-BuildRequires: python-modules >= 1:2.7
-BuildRequires: python-setuptools
-%if %{with tests}
-BuildRequires: python-nose
-BuildRequires: python-nosexcover
-%endif
-%endif
-%if %{with python3}
-BuildRequires: python3-modules >= 1:3.4
-BuildRequires: python3-setuptools
-%if %{with tests}
-BuildRequires: python3-nose
-BuildRequires: python3-nosexcover
-%endif
-%endif
-BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.714
-Requires: python-modules
-BuildArch: noarch
-BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-A pure Python implementation of a sliding window memory map manager.
-
-%description -l pl.UTF-8
-Czysto pythonowa implementacja zarządcy odwzorowania w pamięci z
-przesuwnym oknem.
-
-%package -n python3-%{module}
-Summary: A pure Python implementation of a sliding window memory map manager
-Summary(pl.UTF-8): Czysto pythonowa implementacja zarządcy odwzorowania w pamięci z przesuwnym oknem
-Group: Development/Languages/Python
-Requires: python3-modules >= 1:3.4
-
-%description -n python3-%{module}
-A pure Python implementation of a sliding window memory map manager.
-
-%description -n python3-%{module} -l pl.UTF-8
-Czysto pythonowa implementacja zarządcy odwzorowania w pamięci z
-przesuwnym oknem.
-
-%prep
-%setup -q -n %{module}-%{version}
-
-%build
-%if %{with python2}
-%py_build %{?with_tests:test}
-%endif
-
-%if %{with python3}
-%py3_build %{?with_tests:test}
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%py_install
-
-%{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/smmap/test
-
-%py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-
-%{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/smmap/test
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%dir %{py_sitescriptdir}/smmap
-%{py_sitescriptdir}/smmap/*.py[co]
-%{py_sitescriptdir}/smmap-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-%{module}
-%defattr(644,root,root,755)
-%dir %{py3_sitescriptdir}/smmap
-%{py3_sitescriptdir}/smmap/*.py
-%{py3_sitescriptdir}/smmap/__pycache__
-%{py3_sitescriptdir}/smmap-%{version}-py*.egg-info
-%endif
diff --git a/python3-smmap.spec b/python3-smmap.spec
new file mode 100644
index 0000000..d2d283d
--- /dev/null
+++ b/python3-smmap.spec
@@ -0,0 +1,87 @@
+#
+# Conditional build:
+%bcond_without doc # Sphinx documentation
+%bcond_without tests # unit tests
+
+%define module smmap
+Summary: A pure Python implementation of a sliding window memory map manager
+Summary(pl.UTF-8): Czysto pythonowa implementacja zarządcy odwzorowania w pamięci z przesuwnym oknem
+Name: python3-%{module}
+Version: 5.0.1
+Release: 1
+License: BSD
+Group: Development/Languages/Python
+#Source0Download: https://github.com/gitpython-developers/smmap/tags
+Source0: https://github.com/gitpython-developers/smmap/archive/v%{version}/%{module}-%{version}.tar.gz
+# Source0-md5: caa2f7b1b9ed70834d3e9459780201a7
+URL: https://github.com/gitpython-developers/smmap
+BuildRequires: python3-modules >= 1:3.7
+BuildRequires: python3-setuptools
+%if %{with tests}
+BuildRequires: python3-pytest
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+%if %{with doc}
+BuildRequires: sphinx-pdg-3
+%endif
+Requires: python3-modules >= 1:3.7
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+A pure Python implementation of a sliding window memory map manager.
+
+%description -l pl.UTF-8
+Czysto pythonowa implementacja zarządcy odwzorowania w pamięci z
+przesuwnym oknem.
+
+%package apidocs
+Summary: API documentation for Python smmap module
+Summary(pl.UTF-8): Dokumentacja API modułu Pythona smmap
+Group: Documentation
+
+%description apidocs
+API documentation for Python smmap module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu Pythona smmap.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%py3_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+%{__python3} -m pytest smmap/test
+%endif
+
+%if %{with doc}
+%{__make} -C doc html \
+ SPHINXBUILD=sphinx-build-3
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/smmap/test
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%dir %{py3_sitescriptdir}/smmap
+%{py3_sitescriptdir}/smmap/*.py
+%{py3_sitescriptdir}/smmap/__pycache__
+%{py3_sitescriptdir}/smmap-%{version}-py*.egg-info
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc doc/build/html/{_static,*.html,*.js}
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-smmap.git/commitdiff/d9edfd0b9b2e351de207faa403d67cfbaef14dfe
More information about the pld-cvs-commit
mailing list