forked from pool/python-jsonref
- Format with spec-cleaner
- Remove devel dependency that is not needed OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonref?expand=0&rev=2
This commit is contained in:
committed by
Git OBS Bridge
parent
22981710b0
commit
d2ff264d41
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-jsonref
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -12,7 +12,7 @@
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
@@ -23,12 +23,12 @@ Release: 0
|
||||
Summary: An implementation of JSON Reference for Python
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
URL: http://github.com/gazpachoking/jsonref
|
||||
URL: https://github.com/gazpachoking/jsonref
|
||||
Source: https://files.pythonhosted.org/packages/source/j/jsonref/jsonref-%{version}.tar.gz
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module pytest-mock}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: dos2unix
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildArch: noarch
|
||||
@@ -51,8 +51,7 @@ Complete docs can be found at http://jsonref.readthedocs.org/
|
||||
|
||||
%prep
|
||||
%setup -q -n jsonref-%{version}
|
||||
#fix eol
|
||||
sed -i 's/\r//g' README.rst
|
||||
dos2unix README.rst
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -62,7 +61,7 @@ sed -i 's/\r//g' README.rst
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} pytest tests.py
|
||||
%pytest tests.py
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
|
||||
Reference in New Issue
Block a user