Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-cangjie for openSUSE:Factory 
checked in at 2021-01-19 16:02:09
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-cangjie (Old)
 and      /work/SRC/openSUSE:Factory/.python-cangjie.new.28504 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-cangjie"

Tue Jan 19 16:02:09 2021 rev:2 rq:864085 version:1.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-cangjie/python-cangjie.changes    
2018-10-04 19:00:36.927258649 +0200
+++ /work/SRC/openSUSE:Factory/.python-cangjie.new.28504/python-cangjie.changes 
2021-01-19 16:02:38.787420966 +0100
@@ -1,0 +2,11 @@
+Fri Jan 15 20:51:06 UTC 2021 - Benjamin Greiner <[email protected]>
+
+- Update to v1.3 
+  * Fixed building with newer versions of Cython
+- drop fix_core.pxd_not_found.patch fixed upstream
+- Fix singlespec
+- Enable Tests
+- Actually requires libcangjie-data to work (data misnamed as lib
+  --> add python-cangjie-rpmlintrc)
+
+-------------------------------------------------------------------

Old:
----
  cangjie-1.2.tar.xz
  fix_core.pxd_not_found.patch

New:
----
  cangjie-1.3.tar.xz
  python-cangjie-rpmlintrc

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

Other differences:
------------------
++++++ python-cangjie.spec ++++++
--- /var/tmp/diff_new_pack.ylGkXS/_old  2021-01-19 16:02:39.427421934 +0100
+++ /var/tmp/diff_new_pack.ylGkXS/_new  2021-01-19 16:02:39.431421939 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-cangjie
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# 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
@@ -12,29 +12,30 @@
 # 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/
 #
 
 
 %{?!python_module:%define python_module() python-%{1} python3-%{1}}
 %global src_name cangjie
 Name:           python-cangjie
-Version:        1.2
+Version:        1.3
 Release:        0
 Summary:        A python wrapper to libcangjie
-License:        LGPL-3.0+
-Url:            http://cangjians.github.io/projects/pycangjie
+License:        LGPL-3.0-or-later
+URL:            http://cangjians.github.io/projects/pycangjie
 Source:         
https://github.com/Cangjians/pycangjie/releases/download/v%{version}/%{src_name}-%{version}.tar.xz
-Patch0:         fix_core.pxd_not_found.patch
+Source99:       python-cangjie-rpmlintrc
+BuildRequires:  %{python_module Cython}
 BuildRequires:  %{python_module devel}
 BuildRequires:  autoconf
 BuildRequires:  automake
 BuildRequires:  fdupes
+BuildRequires:  libcangjie-data
 BuildRequires:  libcangjie-devel
 BuildRequires:  libtool
 BuildRequires:  python-rpm-macros
-BuildRequires:  python3-Cython
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+Requires:       libcangjie-data
 %python_subpackages
 
 %description
@@ -42,22 +43,34 @@
 
 %prep
 %setup -q -n %{src_name}-%{version}
-%patch0 -p1
+sed -i '/.\/configure/ d' autogen.sh
 
 %build
-./autogen.sh --prefix=%{_prefix}/
-make %{?_smp_mflags}
+./autogen.sh
+%define _configure ../configure
+%{python_expand #
+mkdir -p build
+pushd build
+%configure --prefix=%{_prefix}/ PYTHON=%{_bindir}/$python
+%make_build
+popd
+}
 
 %install
+%{python_expand #
+pushd build
 %make_install
+%fdupes -s %{buildroot}/%{$python_sitearch}
+popd
+}
 find %{buildroot} -type f -name "*.la" -delete -print
 
-%fdupes -s %{buildroot}/%{_libdir}/
+# check
+%pyunittest_arch discover tests
 
 %files %{python_files}
 %defattr(-,root,root)
 %doc AUTHORS COPYING README.md docs/*
-%python3_only %{python_sitearch}/%{src_name}
-%python3_only %pycache_only %{python_sitearch}/%{src_name}/__pycache__
+%{python_sitearch}/%{src_name}
 
 %changelog

++++++ cangjie-1.2.tar.xz -> cangjie-1.3.tar.xz ++++++
++++ 23140 lines of diff (skipped)

++++++ python-cangjie-rpmlintrc ++++++
# not a library but the data for it
addFilter("explicit-lib-dependency libcangjie-data")

Reply via email to