14
0

Accepting request 731074 from home:jayvdb:py3only

- Replace PyPI URL with GitHub URL
- Drop errant skip-failing-tests.patch caused by missing
  test dependency procps
- Add use-pkg-config.patch to build using pkg-config instead of
  python-config, as the latter is not shipped in python3-devel
- Add LANG in %check to fix openSUSE/SLE 15
- Use %license

OBS-URL: https://build.opensuse.org/request/show/731074
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setproctitle?expand=0&rev=35
This commit is contained in:
Tomáš Chvátal
2019-09-16 07:32:59 +00:00
committed by Git OBS Bridge
parent 735a7201d8
commit fed55ff656
4 changed files with 38 additions and 61 deletions

View File

@@ -23,12 +23,13 @@ Release: 0
Summary: Python module to allow customization of the process title
License: BSD-3-Clause
Group: Development/Libraries/Python
URL: http://pypi.python.org/pypi/setproctitle/
URL: https://github.com/dvarrazzo/py-setproctitle/
Source: https://files.pythonhosted.org/packages/source/s/setproctitle/setproctitle-%{version}.tar.gz
Patch: skip-failing-tests.patch
Patch0: use-pkg-config.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module setuptools}
BuildRequires: procps
BuildRequires: python-rpm-macros
BuildRequires: python3-tools
%python_subpackages
@@ -51,12 +52,14 @@ export CFLAGS="%{optflags}"
%python_install
%check
export LANG=en_US.UTF-8
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch}
make PYTHON=$python check
}
%files %{python_files}
%doc COPYRIGHT HISTORY.rst README.rst
%doc HISTORY.rst README.rst
%license COPYRIGHT
%{python_sitearch}/*
%changelog