put tests on again

place BildRequires in canonical form
remove Requires since they are automatically provided
This commit is contained in:
José Matos 2020-03-22 20:18:28 +00:00
parent bd1be0a8e5
commit b61c348505

View File

@ -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 <jamatos@fedoraproject.org> - 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 <jamatos@fedoraproject.org> - 3.2.7-1
- update to 3.2.7