Hello community,

here is the log from the commit of package python-screeninfo for 
openSUSE:Factory checked in at 2020-05-11 13:45:22
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-screeninfo (Old)
 and      /work/SRC/openSUSE:Factory/.python-screeninfo.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-screeninfo"

Mon May 11 13:45:22 2020 rev:2 rq:802646 version:0.6.5

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-screeninfo/python-screeninfo.changes      
2020-04-25 20:36:32.607038970 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-screeninfo.new.2738/python-screeninfo.changes
    2020-05-11 13:45:29.445646207 +0200
@@ -1,0 +2,6 @@
+Thu May  7 15:14:56 UTC 2020 - andy great <andythe_gr...@pm.me>
+
+- Add use_dataclasses_when_needed.patch patch.
+- Add python-dataclasses for leap. 
+
+-------------------------------------------------------------------
@@ -4,0 +11 @@
+  * No changelog was made available.

New:
----
  use_dataclasses_when_needed.patch

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

Other differences:
------------------
++++++ python-screeninfo.spec ++++++
--- /var/tmp/diff_new_pack.oldaoY/_old  2020-05-11 13:45:31.061649636 +0200
+++ /var/tmp/diff_new_pack.oldaoY/_new  2020-05-11 13:45:31.065649645 +0200
@@ -16,6 +16,7 @@
 #
 
 
+%define skip_python2 1
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-screeninfo
 Version:        0.6.5
@@ -24,7 +25,12 @@
 License:        MIT
 URL:            https://github.com/rr-/screeninfo
 Source0:        
https://github.com/rr-/screeninfo/archive/%{version}.tar.gz#/screeninfo-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM https://github.com/rr-/screeninfo/pull/36 -- Use 
dataclass when needed
+Patch0:         use_dataclasses_when_needed.patch
 BuildRequires:  %{python_module setuptools}
+%if 0%{?suse_version} <= 1500
+BuildRequires:  %{python_module dataclasses}
+%endif
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 BuildArch:      noarch
@@ -35,6 +41,7 @@
 
 %prep
 %setup -q -n screeninfo-%{version}
+%patch0 -p1
 
 %build
 %python_build

++++++ use_dataclasses_when_needed.patch ++++++
diff -ruN a/setup.py b/setup.py
--- a/setup.py  2020-04-15 15:13:07.000000000 +0100
+++ b/setup.py  2020-04-30 02:38:18.000000000 +0100
@@ -11,7 +11,7 @@
     keywords=["screen", "monitor", "desktop"],
     classifiers=[],
     install_requires=[
-        "dataclasses",
+        "dataclasses ; python_version<'3.7'",
         'Cython ; sys_platform=="darwin"',
         'pyobjus ; sys_platform=="darwin"',
     ],

Reply via email to