Hello community,

here is the log from the commit of package laptop-mode-tools for 
openSUSE:Factory checked in at 2018-10-04 19:02:09
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/laptop-mode-tools (Old)
 and      /work/SRC/openSUSE:Factory/.laptop-mode-tools.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "laptop-mode-tools"

Thu Oct  4 19:02:09 2018 rev:39 rq:639877 version:1.72.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/laptop-mode-tools/laptop-mode-tools.changes      
2016-04-28 16:58:25.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.laptop-mode-tools.new/laptop-mode-tools.changes 
2018-10-04 19:02:18.991151534 +0200
@@ -1,0 +2,35 @@
+Sun Sep 16 19:48:53 UTC 2018 - antoine.belv...@opensuse.org
+
+- Update to version 1.72.2:
+  + Extend blacklist device types to include devices of type 'sd'
+    (gh#rickysarraf/laptop-mode-tools#123).
+- Changes from version 1.72.1:
+  + RPM spec file fixes.
+- Changes from version 1.72:
+  + Switch to PyQt5 and Python3.
+  + Add btrfs to list of filesystems for which we can set commit
+    interval.
+  + Add pkexec invocation script.
+  + Add desktop file to upstream repo and invoke script.
+  + Update installer to includes gui wrappers.
+  + Install new SVG pixmap.
+  + Control all available cards in radeon-dpm.
+  + Prefer to use the new runtime pm autosuspend_delay_ms
+    interface.
+  + tolerate broken device interfaces quietly.
+  + runtime-pm: Make {black,white}lists work with non-USB devices.
+  + send echo errors to verbose log.
+  + Extend blacklist by device types of devtype.
+- See https://github.com/rickysarraf/laptop-mode-tools/releases
+  for changes introduced in releases 1.70 and 1.71.
+- Fix wrong name for gui:
+  + Add laptop-mode-tools-1.72.2-fix-name-gui.patch (picked from
+    upstream).
+- Clean spec file:
+  + Create gui subpackage.
+  + Remove compatibility with suse_version <= 1315:
+    - Drop laptop-mode-tools.pm-utils-hook.
+    - Drop laptop-mode-1.53-fix-pm-utils-sleep-script.diff.
+  + Drop laptop-mode-1.53-install_sh.diff (not needed).
+
+-------------------------------------------------------------------

Old:
----
  laptop-mode-1.53-fix-pm-utils-sleep-script.diff
  laptop-mode-1.53-install_sh.diff
  laptop-mode-tools.pm-utils-hook
  laptop-mode-tools_1.69.2.tar.gz

New:
----
  laptop-mode-tools-1.72.2-fix-name-gui.patch
  laptop-mode-tools-1.72.2.tar.gz

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

Other differences:
------------------
++++++ laptop-mode-tools.spec ++++++
--- /var/tmp/diff_new_pack.fvw4vo/_old  2018-10-04 19:02:19.647150845 +0200
+++ /var/tmp/diff_new_pack.fvw4vo/_new  2018-10-04 19:02:19.647150845 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package laptop-mode-tools
 #
-# Copyright (c) 2016 SUSE LINUX 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
@@ -12,7 +12,7 @@
 # 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/
 #
 
 
@@ -20,27 +20,23 @@
 %{!?_udevdir:%global _udevdir  %{_libexecdir}/udev}
 
 Name:           laptop-mode-tools
-Version:        1.69.2
+Version:        1.72.2
 Release:        0
 Summary:        The Laptop Mode Tools
-License:        GPL-2.0+
+License:        GPL-2.0-or-later
 Group:          System/Base
-Url:            http://www.samwel.tk/laptop_mode/
-Source:         
https://github.com/rickysarraf/%{name}/releases/download/%{version}/%{name}_%{version}.tar.gz
-Source1:        laptop-mode-tools.pm-utils-hook
-Source2:        README.SUSE
-Patch1:         laptop-mode-1.53-install_sh.diff
-Patch2:         laptop-mode-1.53_conf.diff
-Patch4:         laptop-mode-1.49-new-dirty-ratio-defaults.diff
-Patch5:         laptop-mode-1.53-fix-pm-utils-sleep-script.diff
-Patch6:         laptop-mode-1.53-moblin-enable-intel-hda-powersave.patch
-%if 0%{?suse_version} < 1315
-BuildRequires:  pm-utils
-%else
+Url:            http://rickysarraf.github.io/laptop-mode-tools/
+Source:         
https://github.com/rickysarraf/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
+Source1:        README.SUSE
+Patch0:         laptop-mode-1.53_conf.diff
+Patch1:         laptop-mode-1.49-new-dirty-ratio-defaults.diff
+Patch2:         laptop-mode-1.53-moblin-enable-intel-hda-powersave.patch
+# PATCH-FIX-UPSTREAM laptop-mode-tools-1.72.2-fix-name-gui.patch -- 
gh#rickysarraf/laptop-mode-tools#124
+Patch3:         laptop-mode-tools-1.72.2-fix-name-gui.patch
 BuildRequires:  systemd
 BuildRequires:  systemd-rpm-macros
-%endif
 BuildRequires:  udev
+Suggests:       %{name}-gui
 BuildArch:      noarch
 %{?systemd_requires}
 
@@ -52,63 +48,65 @@
 allows you to tweak a number of other power-related settings using a
 simple configuration file.
 
+%package gui
+Summary:        Graphical User Interface for the laptop mode tools
+Group:          System/Base
+BuildRequires:  update-desktop-files
+Requires:       %{name} = %{version}
+Requires:       python3-qt5
+BuildArch:      noarch
+
+%description gui
+This package contains a graphical user interface for laptop-mode-tools.
+
 %prep
-%setup -q -n %{name}_%{version}
-%patch1 -p1
-%patch2 -p1
-%patch4 -p1
-%if 0%{?suse_version} < 1315
-%patch5 -p1
-%endif
-%patch6 -p1
-cp %{SOURCE2} .
+%autosetup -p1
+cp %{SOURCE1} .
 
 %build
 
 %install
 DESTDIR=%{buildroot} \
 MAN_D=%{_mandir} \
-INIT_D=%{_initddir} \
+INIT_D="none" \
 LIB_D=%{_libdir} \
 UDEV_D=%{_udevdir} \
 SYSTEMD_UNIT_D=%{_unitdir} \
 ACPI=disabled PMU=disabled APM=disabled INSTALL=install ./install.sh
 
-%if 0%{?suse_version} < 1315
-install -D -m 0755 %{SOURCE1} 
%{buildroot}%{_libexecdir}/pm-utils/power.d/laptop-mode-tools
-%endif
+# Fix spurious executable permission
 chmod 644 %{buildroot}/%{_mandir}/man8/*
-# Don't ship sysvinit script
-rm -r %{buildroot}%{_sysconfdir}/init.d
-# Hack to remove sysvinit script link in usr/sbin
-ln -s service %{buildroot}/%{_sbindir}/rclaptop-mode
-%if 0%{?suse_version} >= 1315
+
+# Fix suse-missing-rclink
+ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rclaptop-mode
+ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rclmt-poll
+
 # remove pm-utils hook: as soon as DESTDIR is defined, the hook is always 
installed
 rm -rf %{buildroot}%{_libexecdir}/pm-utils
-%endif
+
+# Fix insufficient category definition
+%suse_update_desktop_file -r laptop-mode-tools Settings HardwareSettings
 
 %pre
-%service_add_pre laptop-mode.service
-%service_add_pre lmt-poll.service
+%service_add_pre laptop-mode.service lmt-poll.service
 
 %post
-%service_add_post laptop-mode.service
-%service_add_post lmt-poll.service
+%service_add_post laptop-mode.service lmt-poll.service
 systemd-tmpfiles --create %{_tmpfilesdir}/laptop-mode.conf
 
 %preun
-%service_del_preun laptop-mode.service
-%service_del_preun lmt-poll.service
+%service_del_preun laptop-mode.service lmt-poll.service
 
 %postun
-%service_del_postun laptop-mode.service
-%service_del_postun lmt-poll.service
+%service_del_postun laptop-mode.service lmt-poll.service
 
 %files
-%defattr(-,root,root)
+%doc README.SUSE
+%license COPYING
 %dir %{_sysconfdir}/laptop-mode
 %config %{_sysconfdir}/laptop-mode/*
 %{_sbindir}/*
+%exclude %{_sbindir}/*gui*
 %dir %{_datadir}/%{name}/
 %dir %{_datadir}/%{name}/modules/
 %dir %{_datadir}/%{name}/module-helpers/
@@ -118,28 +116,22 @@
 %{_datadir}/%{name}/module-helpers/pm-helper
 %{_datadir}/%{name}/module-helpers/pm-hibernate
 %{_datadir}/%{name}/module-helpers/pm-suspend
-%if 0%{?suse_version} < 1315
-%dir %{_libexecdir}/pm-utils
-%dir %{_libexecdir}/pm-utils/power.d
-%dir %{_libexecdir}/pm-utils/sleep.d
-%{_libexecdir}/pm-utils/power.d/laptop-mode-tools
-%endif
-%{_sbindir}/rclaptop-mode
 %{_udevdir}/lmt-udev
 %{_udevrulesdir}/99-laptop-mode.rules
-%if 0%{?suse_version} < 1315
-%{_libexecdir}/pm-utils/sleep.d/01laptop-mode
-%endif
 %{_mandir}/man8/*
-%doc README.SUSE
 %{_tmpfilesdir}/laptop-mode.conf
 %{_unitdir}/laptop-mode.service
+%{_unitdir}/laptop-mode.timer
+%{_unitdir}/lmt-poll.service
+
+%files gui
+%license COPYING
+%{_datadir}/applications/%{name}.desktop
+%{_datadir}/pixmaps/%{name}.svg
 %dir %{_datadir}/polkit-1
 %dir %{_datadir}/polkit-1/actions
 %{_datadir}/polkit-1/actions/org.linux.lmt.gui.policy
-%if 0%{?suse_version} >= 1315
-%{_unitdir}/laptop-mode.timer
-%{_unitdir}/lmt-poll.service
-%endif
+%{_datadir}/%{name}/lmt.py
+%{_sbindir}/*gui*
 
 %changelog

++++++ laptop-mode-tools-1.72.2-fix-name-gui.patch ++++++
>From f1c44c8fca177b399bc5cb889ff2dfba2427ae30 Mon Sep 17 00:00:00 2001
From: Ritesh Raj Sarraf <r...@debian.org>
Date: Mon, 5 Feb 2018 08:51:26 +0530
Subject: [PATCH] Fix case sensitive name for lmt.py

Closes: https://github.com/rickysarraf/laptop-mode-tools/issues/124
---
 gui/{LMT.py => lmt.py} | 0
 install.sh             | 2 +-
 laptop-mode-tools.spec | 2 +-
 3 files changed, 2 insertions(+), 2 deletions(-)
 rename gui/{LMT.py => lmt.py} (100%)

diff --git a/gui/LMT.py b/gui/lmt.py
similarity index 100%
rename from gui/LMT.py
rename to gui/lmt.py
diff --git a/install.sh b/install.sh
index 5692646..b68424f 100755
--- a/install.sh
+++ b/install.sh
@@ -209,7 +209,7 @@ if ( ! $INSTALL -m 644 gui/laptop-mode-tools.svg 
"$DESTDIR/usr/share/pixmaps" )
        exit 11
 fi
 
-if ( ! $INSTALL -m 644 gui/LMT.py "$DESTDIR/usr/share/laptop-mode-tools" ) ; 
then
+if ( ! $INSTALL -m 644 gui/lmt.py "$DESTDIR/usr/share/laptop-mode-tools" ) ; 
then
        echo "$0: Failed to install 
$DESTDIR/usr/share/laptop-mode-tools/lmt.py";
        exit 11
 fi
diff --git a/laptop-mode-tools.spec b/laptop-mode-tools.spec
index 2e4a164..72fa751 100644
--- a/laptop-mode-tools.spec
+++ b/laptop-mode-tools.spec
@@ -83,7 +83,7 @@ fi
 #%{_usr}/sbin/*
 %{_sbindir}/*
 %{_usr}/share/applications/laptop-mode-tools.desktop
-%{_usr}/share/laptop-mode-tools/LMT.py
+%{_usr}/share/laptop-mode-tools/lmt.py
 %{_usr}/share/laptop-mode-tools/modules/*
 %{_usr}/share/laptop-mode-tools/module-helpers/*
 %{_usr}/share/pixmaps/laptop-mode-tools.svg

Reply via email to