forked from pool/python-py3c
Accepting request 880309 from home:bnavigator:branches:devel:languages:python
- Update to 1.3.1 * Allow building the documentation without sphinx_rtd_theme - Release 1.3 * Tested with Python 3.9.0 * To help avoid compiler warning about uninitialized members, extra members are added to the PyModuleDef structure for Python 2: m_slots, m_traverse, m_clear and m_free. Under Python 2, they must be set to NULL (usually by continuing to leave them out). - Release 1.2 * Tests updated to pass with Python 3.9.0b3 * make install now honors DESTDIR to support staged installations - drop destdir.patch fixed upstream OBS-URL: https://build.opensuse.org/request/show/880309 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-py3c?expand=0&rev=10
This commit is contained in:
@@ -1,35 +0,0 @@
|
||||
From eef6c4abaeaba4ee2cb84b2c639ce04de8a20b71 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Courr=C3=A8ges-Anglas?=
|
||||
<45601387+jcourreges@users.noreply.github.com>
|
||||
Date: Thu, 4 Jun 2020 11:57:07 +0200
|
||||
Subject: [PATCH] Add DESTDIR for staged installations
|
||||
|
||||
For reference: https://www.gnu.org/prep/standards/html_node/DESTDIR.html
|
||||
|
||||
https://github.com/encukou/py3c/pull/29
|
||||
---
|
||||
Makefile | 10 +++++-----
|
||||
1 file changed, 5 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 761304d..4b04f7c 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -42,12 +42,12 @@ py3c.pc: py3c.pc.in $(includedir)
|
||||
sed -e's:@includedir@:$(realpath $(includedir)):' $< > $@
|
||||
|
||||
install: py3c.pc
|
||||
- mkdir -p -m 0755 $(includedir)/py3c
|
||||
- install -m 0644 include/py3c.h $(includedir)/py3c.h
|
||||
- install -m 0644 $(wildcard include/py3c/*.h) $(includedir)/py3c/
|
||||
+ mkdir -p -m 0755 $(DESTDIR)$(includedir)/py3c
|
||||
+ install -m 0644 include/py3c.h $(DESTDIR)$(includedir)/py3c.h
|
||||
+ install -m 0644 $(wildcard include/py3c/*.h) $(DESTDIR)$(includedir)/py3c/
|
||||
|
||||
- mkdir -p -m 0755 $(pkgconfigdir)
|
||||
- install -m 0644 py3c.pc $(pkgconfigdir)/
|
||||
+ mkdir -p -m 0755 $(DESTDIR)$(pkgconfigdir)
|
||||
+ install -m 0644 py3c.pc $(DESTDIR)$(pkgconfigdir)/
|
||||
|
||||
clean:
|
||||
rm py3c.pc ||:
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c7ffc22bc92dded0ca859db53ef3a0b466f89a9f8aad29359c9fe4ff18ebdd20
|
||||
size 45835
|
3
py3c-1.3.1.tar.gz
Normal file
3
py3c-1.3.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f3e138623a87cde2cd7d8e98b51447e033d43a3f639c5054185c859fa1888727
|
||||
size 46679
|
@@ -1,3 +1,20 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Mar 20 20:59:07 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- Update to 1.3.1
|
||||
* Allow building the documentation without sphinx_rtd_theme
|
||||
- Release 1.3
|
||||
* Tested with Python 3.9.0
|
||||
* To help avoid compiler warning about uninitialized members,
|
||||
extra members are added to the PyModuleDef structure for Python
|
||||
2: m_slots, m_traverse, m_clear and m_free. Under Python 2,
|
||||
they must be set to NULL (usually by continuing to leave them
|
||||
out).
|
||||
- Release 1.2
|
||||
* Tests updated to pass with Python 3.9.0b3
|
||||
* make install now honors DESTDIR to support staged installations
|
||||
- drop destdir.patch fixed upstream
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 23 08:17:27 UTC 2020 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-py3c
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -18,14 +18,13 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-py3c
|
||||
Version: 1.1
|
||||
Version: 1.3.1
|
||||
Release: 0
|
||||
Summary: Python compatibility headers
|
||||
License: MIT
|
||||
URL: http://py3c.readthedocs.io/
|
||||
Source: https://github.com/encukou/py3c/archive/v%{version}.tar.gz#/py3c-%{version}.tar.gz
|
||||
Source99: python-py3c-rpmlintrc
|
||||
Patch0: destdir.patch
|
||||
# Needed for test build
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
@@ -49,7 +48,6 @@ py3c helps porting C extensions to Python 3.
|
||||
|
||||
%prep
|
||||
%setup -q -n py3c-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -57,7 +55,7 @@ py3c helps porting C extensions to Python 3.
|
||||
%install
|
||||
%python_install
|
||||
# we will use the make install to deploy includes
|
||||
rm -r %{buildroot}%{_includedir}
|
||||
rm -r %{buildroot}%{_includedir}/*
|
||||
%make_install prefix=%{_prefix}
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
|
Reference in New Issue
Block a user