From b61c348505182284f52a167c98c744356caf73c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Matos?= Date: Sun, 22 Mar 2020 20:18:28 +0000 Subject: [PATCH] put tests on again place BildRequires in canonical form remove Requires since they are automatically provided --- rpy.spec | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/rpy.spec b/rpy.spec index 5452571..c92df3d 100644 --- a/rpy.spec +++ b/rpy.spec @@ -4,17 +4,21 @@ Name: rpy Version: 3.2.7 -Release: 1%{?dist} +Release: 2%{?dist} Summary: %{sum} License: GPLv2+ Url: https://pypi.python.org/pypi/rpy2 Source: https://files.pythonhosted.org/packages/source/r/%{srcname}2/%{srcname}2-%{version}.tar.gz + BuildRequires: gcc BuildRequires: R-devel = %{rver} -BuildRequires: python3-setuptools, python3-devel, python3-cffi -BuildRequires: python3-numpy +BuildRequires: python3-devel BuildRequires: readline-devel -BuildRequires: python3-pytest +BuildRequires: python3dist(setuptools) +BuildRequires: python3dist(cffi) +BuildRequires: python3dist(numpy) +BuildRequires: python3dist(pytest) + Requires: python3-%{srcname} = %{version}-%{release} %description @@ -25,9 +29,7 @@ converted to Python exceptions. %package -n python3-%{srcname} Summary: %{sum} -Requires: python3-numpy Requires: R-core = %{rver} -Requires: python3-six, python3-jinja2 %{?python_provide:%python_provide python3-%{srcname}} %description -n python3-%{srcname} @@ -49,10 +51,8 @@ export CFLAGS="$RPM_OPT_FLAGS -DHAVE_UINTPTR_T=1" %py3_install %check -# The test are not present in the release -# https://bitbucket.org/rpy2/rpy2/issues/528/please-ship-tests-along-with-the-release -#cd %{name} -#pytest-3 tests.py +cd %{srcname}2 +pytest tests/ %files @@ -66,6 +66,11 @@ export CFLAGS="$RPM_OPT_FLAGS -DHAVE_UINTPTR_T=1" %{python3_sitearch}/__pycache__/* %changelog +* Sun Mar 22 2020 José Matos - 3.2.7-2 +- put tests on again +- place BildRequires in canonical form +- remove Requires since they are automatically provided + * Sun Mar 22 2020 José Matos - 3.2.7-1 - update to 3.2.7