forked from pool/python-setproctitle
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:
committed by
Git OBS Bridge
parent
735a7201d8
commit
fed55ff656
21
use-pkg-config.patch
Normal file
21
use-pkg-config.patch
Normal file
@@ -0,0 +1,21 @@
|
||||
--- a/Makefile.orig 2019-09-15 17:13:27.656631109 +0700
|
||||
+++ b/Makefile 2019-09-15 17:16:00.458264928 +0700
|
||||
@@ -7,15 +7,15 @@
|
||||
|
||||
# Customize these to select the Python to build/test
|
||||
PYTHON ?= python
|
||||
-PYCONFIG ?= python-config
|
||||
+PYCONFIG ?= pkg-config
|
||||
PY2TO3 ?= 2to3
|
||||
|
||||
# PYVER value is 2 or 3
|
||||
PYVER := $(shell $(PYTHON) -c "import sys; print(sys.version_info[0])")
|
||||
ROOT_PATH := $(shell pwd)
|
||||
|
||||
-PYINC := $(shell $(PYCONFIG) --includes)
|
||||
-PYLIB := $(shell $(PYCONFIG) --ldflags) -L$(shell $(PYCONFIG) --prefix)/lib
|
||||
+PYINC := $(shell $(PYCONFIG) python$(PYVER) --cflags)
|
||||
+PYLIB := $(shell $(PYCONFIG) python$(PYVER) --libs) -L$(shell $(PYCONFIG) python$(PYVER) --prefix)/lib
|
||||
|
||||
BUILD_DIR = build/lib.$(PYVER)
|
||||
|
Reference in New Issue
Block a user