Hello community,
here is the log from the commit of package python-ctypesgen for
openSUSE:Factory checked in at 2018-12-27 00:25:59
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-ctypesgen (Old)
and /work/SRC/openSUSE:Factory/.python-ctypesgen.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-ctypesgen"
Thu Dec 27 00:25:59 2018 rev:3 rq:659384 version:0.1.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-ctypesgen/python-ctypesgen.changes
2018-06-15 14:34:02.935175367 +0200
+++
/work/SRC/openSUSE:Factory/.python-ctypesgen.new.28833/python-ctypesgen.changes
2018-12-27 00:26:25.895808358 +0100
@@ -1,0 +2,5 @@
+Thu Dec 6 13:17:34 UTC 2018 - Tomáš Chvátal <[email protected]>
+
+- Fix to build on py3, switch to github url/release/etc.
+
+-------------------------------------------------------------------
Old:
----
_service
_servicedata
ctypesgen-0.1+git.1431361028.3d2d980.tar.xz
New:
----
ctypesgen-0.1.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-ctypesgen.spec ++++++
--- /var/tmp/diff_new_pack.Qx2co0/_old 2018-12-27 00:26:26.267808054 +0100
+++ /var/tmp/diff_new_pack.Qx2co0/_new 2018-12-27 00:26:26.271808050 +0100
@@ -12,28 +12,24 @@
# 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/
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
-%define skip_python3 1
-
-#
%define modname ctypesgen
-
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-%{modname}
-Version: 0.1+git.1431361028.3d2d980
+Version: 0.1.1
Release: 0
Summary: Pure Python Wrapper Generator for ctypes
License: BSD-3-Clause
Group: Development/Languages/Python
-URL: http://code.google.com/p/%{modname}/
-Source: %{modname}-%{version}.tar.xz
-BuildRequires: %{python_module devel >= 2.3}
+URL: https://github.com/olsonse/ctypesgen
+Source:
https://github.com/olsonse/ctypesgen/archive/ctypesgen-%{version}.tar.gz
+BuildRequires: %{python_module devel}
+BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
-BuildRequires: help2man
BuildRequires: python-rpm-macros
BuildArch: noarch
%ifpython2
@@ -46,38 +42,25 @@
This project automatically generates ctypes wrappers for header files written
in C.
%prep
-%autosetup -n %{modname}-%{version}
+%autosetup -n %{modname}-%{modname}-%{version}
%build
%python_build
-help2man ./%{modname}.py \
- --name="Automatically generate ctypes wrappers for hearder files
written in C" \
- --version-string %{version} \
- --no-info \
- -o %{modname}.py.1
-
-grep -l -r -E '#!/usr/bin/env python' --include=\*.py . \
- |xargs sed -i -e '1d'
%install
%python_install
-# fix executale bits
-%python_expand for i in $(grep -Rl %{_bindir}/env
%{buildroot}%{$python_sitelib}); do chmod +x "${i}" ; done
-install -p -D -m0644 %{modname}.py.1
%{buildroot}%{_mandir}/man1/%{modname}.py.1
-%fdupes %{buildroot}/%{_prefix}
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
-# Testsuite looks quite broken
-#pushd test
-#python testsuite.py
-#popd
+pushd test
+export PYTHONDONTWRITEBYTECODE=1
+%python_exec testsuite.py
+popd
%files %{python_files}
%license LICENSE
-%doc README todo.txt demo/
-%{_bindir}/%{modname}.py
-%{python_sitelib}/*egg-info
-%{python_sitelib}/ctypesgencore
-%{_mandir}/man1/%{modname}.py.1%{?ext_man}
+%doc README todo.txt demo/*.{c,h,py}
+%python3_only %{_bindir}/%{modname}
+%{python_sitelib}/ctypesgen*
%changelog