[packages/python-msgpack] - updated dependencies, actually run tests

qboosh qboosh at pld-linux.org
Mon Sep 14 21:17:30 CEST 2020


commit 919dc77f4cc56831a00d49ec44b4b08668431bfc
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Sep 14 21:20:09 2020 +0200

    - updated dependencies, actually run tests

 python-msgpack.spec | 74 ++++++++++++++++++++++-------------------------------
 1 file changed, 31 insertions(+), 43 deletions(-)
---
diff --git a/python-msgpack.spec b/python-msgpack.spec
index 78c63da..6f42c6b 100644
--- a/python-msgpack.spec
+++ b/python-msgpack.spec
@@ -1,35 +1,34 @@
 #
 # Conditional build:
-%bcond_with	doc		# don't build doc
-%bcond_without	tests	# do not perform "make test"
+%bcond_without	tests	# unit tests
 %bcond_without	python2 # CPython 2.x module
 %bcond_without	python3 # CPython 3.x module
 
-%define		module	msgpack
+%define		module		msgpack
 %define		pypi_name	msgpack-python
 Summary:	Binary-based efficient data interchange format
-Summary(pl.UTF-8):	Binarny efektywny format wymiany danych.
+Summary(pl.UTF-8):	Binarny, efektywny format wymiany danych
 Name:		python-%{module}
 Version:	1.0.0
 Release:	1
-License:	ASL
+License:	Apache v2.0
 Group:		Development/Languages/Python
 Source0:	https://pypi.debian.net/msgpack/%{module}-%{version}.tar.gz
 # Source0-md5:	c35ee8f991dad3969884e9585e56ebba
 URL:		http://msgpack.org/
 BuildRequires:	libstdc++-devel
 BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.710
+BuildRequires:	rpmbuild(macros) >= 1.714
 %if %{with python2}
-BuildRequires:	python-devel
-BuildRequires:	python-distribute
+BuildRequires:	python-modules >= 1:2.7
+BuildRequires:	python-setuptools
 %endif
 %if %{with python3}
-BuildRequires:	python3-devel
-BuildRequires:	python3-distribute
+BuildRequires:	python3-devel >= 1:3.5
 BuildRequires:	python3-modules
+BuildRequires:	python3-setuptools
 %endif
-Requires:	python-modules
+Requires:	python-modules >= 1:2.7
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -38,15 +37,16 @@ It enables to exchange structured objects between many languages like
 JSON. But unlike JSON, it is very fast and small.
 
 %description -l pl.UTF-8
-MessagePack jest binarną, efektywną biblioteką serializacji obiektów.
-Pozwala wymieniać strukturalne obiekty pomiędzy wieloma językami
-podobnie jak JSON. W odróżnieniu jest bardzo szybka i mała.
+MessagePack to biblioteka do binarnej, efektywnej serializacji
+obiektów. Pozwala wymieniać strukturalne obiekty pomiędzy wieloma
+językami, podobnie jak JSON. W odróżnieniu od JSON-a jest bardzo
+szybka i mała.
 
 %package -n python3-%{module}
 Summary:	Binary-based efficient data interchange format
-Summary(pl.UTF-8):	Binarny efektywny format wymiany danych.
+Summary(pl.UTF-8):	Binarny, efektywny format wymiany danych
 Group:		Libraries/Python
-Requires:	python3-modules
+Requires:	python3-modules >= 1:3.5
 
 %description -n python3-%{module}
 MessagePack is a binary-based efficient object serialization library.
@@ -54,43 +54,37 @@ It enables to exchange structured objects between many languages like
 JSON. But unlike JSON, it is very fast and small.
 
 %description -n python3-%{module} -l pl.UTF-8
-MessagePack jest binarną, efektywną biblioteką serializacji obiektów.
-Pozwala wymieniać strukturalne obiekty pomiędzy wieloma językami
-podobnie jak JSON. W odróżnieniu jest bardzo szybka i mała.
-
-%package apidocs
-Summary:	%{module} API documentation
-Summary(pl.UTF-8):	Dokumentacja API %{module}
-Group:		Documentation
-
-%description apidocs
-API documentation for %{module}.
-
-%description apidocs -l pl.UTF-8
-Dokumentacja API %{module}.
+MessagePack to biblioteka do binarnej, efektywnej serializacji
+obiektów. Pozwala wymieniać strukturalne obiekty pomiędzy wieloma
+językami, podobnie jak JSON. W odróżnieniu od JSON-a jest bardzo
+szybka i mała.
 
 %prep
 %setup -q -n %{module}-%{version}
 
 %build
 %if %{with python2}
-%py_build %{?with_tests:test}
+%py_build
+
+%if %{with tests}
+%{__python} -m pytest test
+%endif
 %endif
 
 %if %{with python3}
-%py3_build %{?with_tests:test}
-%endif
+%py3_build
 
-%if %{with doc}
-cd docs
-%{__make} -j1 html
-rm -rf _build/html/_sources
+%if %{with tests}
+%{__python3} -m pytest test
+%endif
 %endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
+
 %if %{with python2}
 %py_install
+
 %py_postclean
 %endif
 
@@ -120,9 +114,3 @@ rm -rf $RPM_BUILD_ROOT
 %{py3_sitedir}/%{module}/__pycache__
 %{py3_sitedir}/msgpack-%{version}-py*.egg-info
 %endif
-
-%if %{with doc}
-%files apidocs
-%defattr(644,root,root,755)
-%doc docs/_build/html/*
-%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-msgpack.git/commitdiff/919dc77f4cc56831a00d49ec44b4b08668431bfc



More information about the pld-cvs-commit mailing list