Hello community,

here is the log from the commit of package python-ctypesgen for 
openSUSE:Factory checked in at 2018-06-15 14:34:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-ctypesgen (Old)
 and      /work/SRC/openSUSE:Factory/.python-ctypesgen.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-ctypesgen"

Fri Jun 15 14:34:01 2018 rev:2 rq:615277 version:0.1+git.1431361028.3d2d980

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-ctypesgen/python-ctypesgen.changes        
2014-09-15 18:24:39.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-ctypesgen.new/python-ctypesgen.changes   
2018-06-15 14:34:02.935175367 +0200
@@ -1,0 +2,25 @@
+Fri Jun  8 15:53:31 UTC 2018 - [email protected]
+
+- Clean SPEC file (py2k only)
+
+-------------------------------------------------------------------
+Fri Jun 08 15:38:49 UTC 2018 - [email protected]
+
+- Update to version 0.1+git.1431361028.3d2d980:
+  * Update license, homepage, and usage.
+  * Fix test suite failures under Ubuntu 12.04 due to multiarch. Updated 
loader as libc and libm loading was failing due to looking in wrong directories.
+  * avoid logging output in testsuite.
+  * Fix issue #43, add support for bool type. Patch from Ronald Bos. Patch 
from Ronald adds support for GCC _Bool type and ANSI bool type (via stdbool.h).
+  * Fix issue #43, add support for bool type. Patch from Ronald Bos. Patch 
from Ronald adds support for GCC _Bool type and ANSI bool type (via stdbool.h).
+  * pre-compiler stage failed under Windows due to path with spaces for 
temporary header file. Quote temp file when calling precompiler.
+  * Do not require json (for python code gen).
+  * Quick replace error/warning/status messages with logging messages that 
behaves the same as original ctypesgen. Using logging module allows those 
messages to be disabled (or filtered) via standard logging. Currently not 
following best practices for logging due to attempt to preserve previous 
behavior.
+  * pep8 changes to test suite.
+  * Fix Issue #38: Tests failing to find correct printer
+
+-------------------------------------------------------------------
+Thu Aug 24 13:35:19 UTC 2017 - [email protected]
+
+- singlespec auto-conversion
+
+-------------------------------------------------------------------
@@ -18,0 +44 @@
+

Old:
----
  python-ctypesgen-0.0+r151.tar.xz

New:
----
  _service
  _servicedata
  ctypesgen-0.1+git.1431361028.3d2d980.tar.xz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-ctypesgen.spec ++++++
--- /var/tmp/diff_new_pack.iUR6N5/_old  2018-06-15 14:34:03.719146691 +0200
+++ /var/tmp/diff_new_pack.iUR6N5/_new  2018-06-15 14:34:03.723146545 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-ctypesgen
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,73 +16,68 @@
 #
 
 
-Name:           python-ctypesgen
-Version:        0.0+r151
+# 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
 Release:        0
 Summary:        Pure Python Wrapper Generator for ctypes
 License:        BSD-3-Clause
 Group:          Development/Languages/Python
-Url:            http://code.google.com/p/ctypesgen/
-# svn export http://ctypesgen.googlecode.com/svn/trunk/ %%{name}-%%{version}
-Source:         %{name}-%{version}.tar.xz
+URL:            http://code.google.com/p/%{modname}/
+Source:         %{modname}-%{version}.tar.xz
+BuildRequires:  %{python_module devel >= 2.3}
 BuildRequires:  fdupes
-BuildRequires:  python-devel >= 2.3
-Obsoletes:      ctypesgen < %{version}
-Provides:       ctypesgen = %{version}
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-%if 0%{?suse_version} > 1110
 BuildRequires:  help2man
-%endif
-%if 0%{?suse_version} > 1110
+BuildRequires:  python-rpm-macros
 BuildArch:      noarch
+%ifpython2
+Obsoletes:      %{modname} < %{version}
+Provides:       %{modname} = %{version}
 %endif
+%python_subpackages
 
 %description
 This project automatically generates ctypes wrappers for header files written 
in C.
 
 %prep
-%setup -q
+%autosetup -n %{modname}-%{version}
 
 %build
-python ./setup.py build
-%if 0%{?suse_version} > 1110
-# generate a man page
-help2man ./ctypesgen.py \
+%python_build
+help2man ./%{modname}.py \
        --name="Automatically generate ctypes wrappers for hearder files 
written in C" \
        --version-string %{version} \
        --no-info \
-       -o ctypesgen.py.1
-%endif
+       -o %{modname}.py.1
+
+grep -l -r -E '#!/usr/bin/env python' --include=\*.py . \
+    |xargs sed -i -e '1d'
 
 %install
-python ./setup.py install \
-       --skip-build \
-       --prefix="%{_prefix}" \
-       --root=%{buildroot} \
-       --optimize=2
+%python_install
 # fix executale bits
-for i in $(grep -Rl %{_bindir}/env %{buildroot}%{python_sitelib}); do
-    chmod +x "${i}"
-done
-%if 0%{?suse_version} > 1110
-# install man page
-install -p -D -m0644 ctypesgen.py.1 %{buildroot}%{_mandir}/man1/ctypesgen.py.1
-%endif
+%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}
 
 %check
+# Testsuite looks quite broken
 #pushd test
 #python testsuite.py
 #popd
 
-%files
-%defattr(-,root,root)
-%doc LICENSE README todo.txt demo/
-%{_bindir}/ctypesgen.py
+%files %{python_files}
+%license LICENSE
+%doc README todo.txt demo/
+%{_bindir}/%{modname}.py
 %{python_sitelib}/*egg-info
 %{python_sitelib}/ctypesgencore
-%if 0%{?suse_version} > 1110
-%{_mandir}/man1/ctypesgen.py.1*
-%endif
+%{_mandir}/man1/%{modname}.py.1%{?ext_man}
 
 %changelog

++++++ _service ++++++
<services>
  <service name="tar_scm" mode="disabled">
    <param name="versionprefix">0.1+git</param>
    <param name="url">https://github.com/davidjamesca/ctypesgen</param>
    <param name="scm">git</param>
    <param name="exclude">.git*</param>
    <param name="changesgenerate">enable</param>
  </service>
  <service name="recompress" mode="disabled">
    <param name="compression">xz</param>
    <param name="file">*.tar</param>
  </service>
  <service name="set_version" mode="disabled"/>
</services>
++++++ _servicedata ++++++
<servicedata>
<service name="tar_scm">
                <param 
name="url">https://github.com/davidjamesca/ctypesgen</param>
              <param 
name="changesrevision">3d2d9803339503d2988382aa861b47a6a4872c32</param></service></servicedata>

Reply via email to