14
0
forked from pool/python-py3c
Files
python-py3c/python-py3c.spec
Daniel Garcia 1878f2a978 Accepting request 1008049 from home:yarunachalam:branches:devel:languages:python
===================================================================
--- python-py3c.changes (revision 13)
+++ python-py3c.changes (revision 2)
@@ -1,4 +1,17 @@
 -------------------------------------------------------------------
+Tue Oct  4 23:42:12 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
+
+- Update to version v1.4 (2021-10-15)
+  Additions:
+  add guidance around the use of Py_FindMethod (thanks to David Aguilar)
+  Fixes:
+  Avoid compiler warning about unused function
+  Fix DESTDIR support in the Makefile (thanks to David Aguilar)
+  Various documentation warning fixes (thanks to David Aguilar)
+  Project infrastructure:
+  Switch to GitHub Actions for pull request tests 
+
+-------------------------------------------------------------------
 Thu Jul 14 20:42:53 UTC 2022 - Ben Greiner <code@bnavigator.de>
 
 - Fix test build paths for setuptools 63
Index: python-py3c.spec
===================================================================
--- python-py3c.spec (revision 13)
+++ python-py3c.spec (revision 2)
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-py3c
-Version:        1.3.1
+Version:        1.4
 Release:        0
 Summary:        Python compatibility headers
 License:        MIT
Index: py3c-1.4.tar.gz
===================================================================
Binary file py3c-1.4.tar.gz (revision 2) added
Index: py3c-1.3.1.tar.gz
===================================================================
Binary file py3c-1.3.1.tar.gz (revision 13) deleted

OBS-URL: https://build.opensuse.org/request/show/1008049
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-py3c?expand=0&rev=14
2022-10-05 10:21:32 +00:00

99 lines
2.6 KiB
RPMSpec

#
# spec file for package python-py3c
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-py3c
Version: 1.4
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
# Needed for test build
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: python-rpm-macros
BuildArch: noarch
%python_subpackages
%description
py3c helps porting C extensions to Python 3.
It provides a guide, and a set of macros to facilitate porting
and reduce boilerplate.
%package -n py3c-devel
Summary: Development files for py3c
%description -n py3c-devel
py3c helps porting C extensions to Python 3.
%prep
%setup -q -n py3c-%{version}
%build
%python_build
%install
%python_install
# we will use the make install to deploy includes
rm -r %{buildroot}%{_includedir}/*
%make_install prefix=%{_prefix}
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
pushd test
# Test C extension
%python_build
%{python_expand # copy the lib and run the test
cp ./build/lib.linux*/test_py3c* ./
$python __main__.py -v
rm -f test_py3c*.so
rm -rf build
}
# Test Cpp extension
export TEST_USE_CPP="yes"
%python_build
%{python_expand # copy the lib and run the test
cp ./build/lib.linux*/test_py3c* ./
$python __main__.py -v
rm -f test_py3c*.so
}
popd
%files %{python_files}
%doc README.rst
%license LICENSE.MIT
%{python_sitelib}/py3c-%{version}*-info
%files -n py3c-devel
%{_includedir}/py3c.h
%dir %{_includedir}/py3c
%{_includedir}/py3c/capsulethunk.h
%{_includedir}/py3c/comparison.h
%{_includedir}/py3c/compat.h
%{_includedir}/py3c/fileshim.h
%{_includedir}/py3c/py3shims.h
%{_includedir}/py3c/tpflags.h
%{_datadir}/pkgconfig/py3c.pc
%changelog