commit switcheroo-control for openSUSE:Factory

2020-07-18 Thread root
Hello community,

here is the log from the commit of package switcheroo-control for 
openSUSE:Factory checked in at 2020-07-18 21:03:11

Comparing /work/SRC/openSUSE:Factory/switcheroo-control (Old)
 and  /work/SRC/openSUSE:Factory/.switcheroo-control.new.3592 (New)


Package is "switcheroo-control"

Sat Jul 18 21:03:11 2020 rev:8 rq:821648 version:2.3

Changes:

--- /work/SRC/openSUSE:Factory/switcheroo-control/switcheroo-control.changes
2020-01-05 15:22:19.417596088 +0100
+++ 
/work/SRC/openSUSE:Factory/.switcheroo-control.new.3592/switcheroo-control.changes
  2020-07-18 21:03:39.587653840 +0200
@@ -1,0 +2,13 @@
+Tue Jul 14 15:00:36 UTC 2020 - Atri Bhattacharya 
+
+- Update to version 2.3:
+  * Fix the path to the interpreter for the switcherooctl tool
+added in 2.2.
+- Changes from version 2.2:
+  * Port build system to meson.
+  * Add a command-line utility to launch specific commands on a
+specific GPU, or the first discrete one.
+- Adapt to meson build system; drop autoconf, automake from
+  BuildRequires and add meson.
+
+---

Old:

  switcheroo-control-2.1.tar.gz

New:

  switcheroo-control-2.3.tar.gz



Other differences:
--
++ switcheroo-control.spec ++
--- /var/tmp/diff_new_pack.U0iBO2/_old  2020-07-18 21:03:40.707655044 +0200
+++ /var/tmp/diff_new_pack.U0iBO2/_new  2020-07-18 21:03:40.711655048 +0200
@@ -17,7 +17,7 @@
 
 
 Name:   switcheroo-control
-Version:2.1
+Version:2.3
 Release:0
 Summary:D-Bus service to check the availability of dual-GPU
 License:GPL-3.0-only
@@ -25,9 +25,8 @@
 URL:https://gitlab.freedesktop.org/hadess/switcheroo-control
 Source0:
https://gitlab.freedesktop.org/hadess/switcheroo-control/-/archive/%{version}/%{name}-%{version}.tar.gz
 Source1:%{name}-rpmlintrc
-BuildRequires:  autoconf
-BuildRequires:  automake
 BuildRequires:  gtk-doc
+BuildRequires:  meson
 BuildRequires:  pkgconfig
 BuildRequires:  systemd-rpm-macros
 BuildRequires:  pkgconfig(gio-2.0)
@@ -50,15 +49,15 @@
 %setup -q
 
 %build
-NOCONFIGURE=1 sh autogen.sh
-%configure \
---with-systemdsystemunitdir=%{_unitdir} \
---with-hwdbdir=%{_udevhwdbdir} \
---enable-gtk-doc
-make %{?_smp_mflags}
+%meson \
+   -Dsystemdsystemunitdir=%{_unitdir} \
+   -Dhwdbdir=%{_udevhwdbdir} \
+   -Dgtk_doc=true
+
+%meson_build
 
 %install
-%make_install
+%meson_install
 
 %pre
 %service_add_pre switcheroo-control.service
@@ -77,8 +76,10 @@
 %files
 %defattr(-,root,root)
 %license COPYING
-%doc NEWS README
+%doc NEWS README.md
+%{_bindir}/switcherooctl
 %{_libexecdir}/switcheroo-control
+%{_mandir}/man1/switcherooctl.1%{?ext_man}
 %{_unitdir}/switcheroo-control.service
 %{_udevhwdbdir}/30-pci-intel-gpu.hwdb
 # Own dirs to avoid depending on dbus while building.

++ switcheroo-control-2.1.tar.gz -> switcheroo-control-2.3.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/switcheroo-control-2.1/.gitlab-ci.yml 
new/switcheroo-control-2.3/.gitlab-ci.yml
--- old/switcheroo-control-2.1/.gitlab-ci.yml   2020-01-02 11:06:46.0 
+0100
+++ new/switcheroo-control-2.3/.gitlab-ci.yml   2020-04-28 13:48:10.0 
+0200
@@ -1,14 +1,40 @@
 image: fedora:rawhide
 
 variables:
-  DEPENDENCIES: glib2-devel libgudev-devel gtk-doc intltool autoconf automake
-gcc gcc-c++ glibc-devel make
+  DEPENDENCIES: glib2-devel
+libgudev-devel
+gtk-doc
+gcc
+gcc-c++
+glibc-devel
+meson
+git
+libxslt
 
 build:
   before_script:
 - dnf update -y --nogpgcheck && dnf install -y --nogpgcheck $DEPENDENCIES
   script:
-- ./autogen.sh --disable-dependency-tracking
-- make
-- make install
-- make distcheck
+- meson -Dgtk_doc=true _build
+- ninja -v -C _build
+- ninja -v -C _build switcheroo-control-doc
+- ninja -v -C _build install
+- ninja -v -C _build uninstall
+- ninja -v -C _build dist
+
+dist-job:
+  stage: build
+  only:
+- tags
+  before_script:
+- dnf update -y --nogpgcheck && dnf install -y --nogpgcheck $DEPENDENCIES
+  script:
+- meson --buildtype release -Dgtk_doc=true _build
+- cd _build
+- ninja dist
+- ninja switcheroo-control-doc
+- tar -c -f "switcheroo-control-docs-$CI_COMMIT_TAG.tar.xz" -C docs/ html
+  artifacts:
+paths:
+  - 
"${CI_PROJECT_DIR}/_build/switcheroo-control-docs-$CI_COMMIT_TAG.tar.xz"
+  - "${CI_PROJECT_DIR}/_build/meson-dist/switcheroo-control-*.tar.xz"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude

commit switcheroo-control for openSUSE:Factory

2020-01-05 Thread root
Hello community,

here is the log from the commit of package switcheroo-control for 
openSUSE:Factory checked in at 2020-01-05 15:22:18

Comparing /work/SRC/openSUSE:Factory/switcheroo-control (Old)
 and  /work/SRC/openSUSE:Factory/.switcheroo-control.new.6675 (New)


Package is "switcheroo-control"

Sun Jan  5 15:22:18 2020 rev:7 rq:760919 version:2.1

Changes:

--- /work/SRC/openSUSE:Factory/switcheroo-control/switcheroo-control.changes
2019-12-10 22:41:15.093835196 +0100
+++ 
/work/SRC/openSUSE:Factory/.switcheroo-control.new.6675/switcheroo-control.changes
  2020-01-05 15:22:19.417596088 +0100
@@ -1,0 +2,9 @@
+Sat Jan  4 13:29:46 UTC 2020 - Atri Bhattacharya 
+
+- Update to version 2.1:
+  * Fix the wrong data type being advertised in the introspection
+XML for the GPUs property, which lead to incorrect
+auto-generated code
+  * Fix a potential assertion on startup.
+
+---

Old:

  switcheroo-control-2.0.tar.gz

New:

  switcheroo-control-2.1.tar.gz



Other differences:
--
++ switcheroo-control.spec ++
--- /var/tmp/diff_new_pack.tw32pN/_old  2020-01-05 15:22:19.857596309 +0100
+++ /var/tmp/diff_new_pack.tw32pN/_new  2020-01-05 15:22:19.857596309 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package switcheroo-control
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,17 +17,17 @@
 
 
 Name:   switcheroo-control
-Version:2.0
+Version:2.1
 Release:0
 Summary:D-Bus service to check the availability of dual-GPU
 License:GPL-3.0-only
 Group:  Hardware/Other
-Url:https://gitlab.freedesktop.org/hadess/switcheroo-control
+URL:https://gitlab.freedesktop.org/hadess/switcheroo-control
 Source0:
https://gitlab.freedesktop.org/hadess/switcheroo-control/-/archive/%{version}/%{name}-%{version}.tar.gz
 Source1:%{name}-rpmlintrc
-BuildRequires:  gtk-doc
-BuildRequires:  automake
 BuildRequires:  autoconf
+BuildRequires:  automake
+BuildRequires:  gtk-doc
 BuildRequires:  pkgconfig
 BuildRequires:  systemd-rpm-macros
 BuildRequires:  pkgconfig(gio-2.0)

++ switcheroo-control-2.0.tar.gz -> switcheroo-control-2.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/switcheroo-control-2.0/.gitlab-ci.yml 
new/switcheroo-control-2.1/.gitlab-ci.yml
--- old/switcheroo-control-2.0/.gitlab-ci.yml   2019-11-05 14:46:07.0 
+0100
+++ new/switcheroo-control-2.1/.gitlab-ci.yml   2020-01-02 11:06:46.0 
+0100
@@ -11,3 +11,4 @@
 - ./autogen.sh --disable-dependency-tracking
 - make
 - make install
+- make distcheck
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/switcheroo-control-2.0/NEWS 
new/switcheroo-control-2.1/NEWS
--- old/switcheroo-control-2.0/NEWS 2019-11-05 14:46:07.0 +0100
+++ new/switcheroo-control-2.1/NEWS 2020-01-02 11:06:46.0 +0100
@@ -1,3 +1,10 @@
+2.1
+---
+
+This release fixes the wrong data type being advertised in the introspection
+XML for the GPUs property, which lead to incorrect auto-generated code,
+and also fixes a potential assertion on startup.
+
 2.0
 ---
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/switcheroo-control-2.0/configure.ac 
new/switcheroo-control-2.1/configure.ac
--- old/switcheroo-control-2.0/configure.ac 2019-11-05 14:46:07.0 
+0100
+++ new/switcheroo-control-2.1/configure.ac 2020-01-02 11:06:46.0 
+0100
@@ -1,6 +1,6 @@
 AC_PREREQ(2.59)
 
-AC_INIT([switcheroo-control], [2.0], [had...@hadess.net])
+AC_INIT([switcheroo-control], [2.1], [had...@hadess.net])
 AM_INIT_AUTOMAKE(1.9 dist-xz no-dist-gzip check-news)
 
 # Enable silent build when available (Automake 1.11)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/switcheroo-control-2.0/docs/Makefile.am 
new/switcheroo-control-2.1/docs/Makefile.am
--- old/switcheroo-control-2.0/docs/Makefile.am 2019-11-05 14:46:07.0 
+0100
+++ new/switcheroo-control-2.1/docs/Makefile.am 2020-01-02 11:06:46.0 
+0100
@@ -48,7 +48,7 @@
$(NULL)
 
 include $(top_srcdir)/gtk-doc.make
-EXTRA_DIST = switcheroo-control-docs.xml
+EXTRA_DIST += switcheroo-control-docs.xml
 
 CLEANFILES +=  \
docs-net.hadess.SwitcherooControl.xml   \
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=

commit switcheroo-control for openSUSE:Factory

2019-12-10 Thread root
Hello community,

here is the log from the commit of package switcheroo-control for 
openSUSE:Factory checked in at 2019-12-10 22:41:06

Comparing /work/SRC/openSUSE:Factory/switcheroo-control (Old)
 and  /work/SRC/openSUSE:Factory/.switcheroo-control.new.4691 (New)


Package is "switcheroo-control"

Tue Dec 10 22:41:06 2019 rev:6 rq:755212 version:2.0

Changes:

--- /work/SRC/openSUSE:Factory/switcheroo-control/switcheroo-control.changes
2019-07-11 13:08:32.990993503 +0200
+++ 
/work/SRC/openSUSE:Factory/.switcheroo-control.new.4691/switcheroo-control.changes
  2019-12-10 22:41:15.093835196 +0100
@@ -1,0 +2,13 @@
+Sat Nov 23 19:16:20 UTC 2019 - Dingzhong Chen 
+
+- Update to version 2.0
+  + This release adds a number of new properties to list GPUs,
+figure out how to launch OpenGL client on specific GPUs, and
+figure out which one is the default, in a way that supports the
+stock GPU drivers as well as the NVidia proprietary drivers.
+  + The service file itself also makes use of systemd's hardening
+features.
+  + Note that the API was extended in a backwards compatible way.
+- Change the repo URL.
+
+---

Old:

  switcheroo-control-1.3.1.tar.xz

New:

  switcheroo-control-2.0.tar.gz



Other differences:
--
++ switcheroo-control.spec ++
--- /var/tmp/diff_new_pack.kIiOYZ/_old  2019-12-10 22:41:16.097834824 +0100
+++ /var/tmp/diff_new_pack.kIiOYZ/_new  2019-12-10 22:41:16.113834818 +0100
@@ -17,18 +17,22 @@
 
 
 Name:   switcheroo-control
-Version:1.3.1
+Version:2.0
 Release:0
 Summary:D-Bus service to check the availability of dual-GPU
 License:GPL-3.0-only
 Group:  Hardware/Other
-Url:https://github.com/hadess/switcheroo-control
-Source0:
https://github.com/hadess/switcheroo-control/releases/download/%{version}/%{name}-%{version}.tar.xz
+Url:https://gitlab.freedesktop.org/hadess/switcheroo-control
+Source0:
https://gitlab.freedesktop.org/hadess/switcheroo-control/-/archive/%{version}/%{name}-%{version}.tar.gz
 Source1:%{name}-rpmlintrc
 BuildRequires:  gtk-doc
+BuildRequires:  automake
+BuildRequires:  autoconf
 BuildRequires:  pkgconfig
 BuildRequires:  systemd-rpm-macros
 BuildRequires:  pkgconfig(gio-2.0)
+BuildRequires:  pkgconfig(gudev-1.0) >= 232
+BuildRequires:  pkgconfig(udev)
 %{?systemd_requires}
 
 %description
@@ -46,8 +50,10 @@
 %setup -q
 
 %build
+NOCONFIGURE=1 sh autogen.sh
 %configure \
 --with-systemdsystemunitdir=%{_unitdir} \
+--with-hwdbdir=%{_udevhwdbdir} \
 --enable-gtk-doc
 make %{?_smp_mflags}
 
@@ -59,12 +65,14 @@
 
 %post
 %service_add_post switcheroo-control.service
+%udev_hwdb_update
 
 %preun
 %service_del_preun switcheroo-control.service
 
 %postun
 %service_del_postun switcheroo-control.service
+%udev_hwdb_update
 
 %files
 %defattr(-,root,root)
@@ -72,6 +80,7 @@
 %doc NEWS README
 %{_libexecdir}/switcheroo-control
 %{_unitdir}/switcheroo-control.service
+%{_udevhwdbdir}/30-pci-intel-gpu.hwdb
 # Own dirs to avoid depending on dbus while building.
 %dir %{_sysconfdir}/dbus-1
 %dir %{_sysconfdir}/dbus-1/system.d




commit switcheroo-control for openSUSE:Factory

2019-07-11 Thread root
Hello community,

here is the log from the commit of package switcheroo-control for 
openSUSE:Factory checked in at 2019-07-11 13:08:31

Comparing /work/SRC/openSUSE:Factory/switcheroo-control (Old)
 and  /work/SRC/openSUSE:Factory/.switcheroo-control.new.4615 (New)


Package is "switcheroo-control"

Thu Jul 11 13:08:31 2019 rev:5 rq:712511 version:1.3.1

Changes:

--- /work/SRC/openSUSE:Factory/switcheroo-control/switcheroo-control.changes
2018-06-13 15:39:37.732033897 +0200
+++ 
/work/SRC/openSUSE:Factory/.switcheroo-control.new.4615/switcheroo-control.changes
  2019-07-11 13:08:32.990993503 +0200
@@ -1,0 +2,12 @@
+Tue Jun 25 09:19:39 UTC 2019 - Atri Bhattacharya 
+
+- Update to version 1.3.1
+  + Fix Secure Boot work-around to not misdetect any system as
+being dual-GPU and error out when it wasn't
+- Changes from version 1.3:
+  + Work-around lack of access to vga_switcheroo when booting with
+SecureBoot enabled
+  + Work-around a possible kernel deadlock on boot
+  + Install binary in $libexecdir
+
+---

Old:

  switcheroo-control-1.2.tar.xz

New:

  switcheroo-control-1.3.1.tar.xz



Other differences:
--
++ switcheroo-control.spec ++
--- /var/tmp/diff_new_pack.0dTYYp/_old  2019-07-11 13:08:33.406993331 +0200
+++ /var/tmp/diff_new_pack.0dTYYp/_new  2019-07-11 13:08:33.410993330 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package switcheroo-control
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 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,18 +12,18 @@
 # 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/
 #
 
 
 Name:   switcheroo-control
-Version:1.2
+Version:1.3.1
 Release:0
 Summary:D-Bus service to check the availability of dual-GPU
 License:GPL-3.0-only
 Group:  Hardware/Other
 Url:https://github.com/hadess/switcheroo-control
-Source0:
https://github.com/hadess/switcheroo-control/releases/download/1.2/%{name}-%{version}.tar.xz
+Source0:
https://github.com/hadess/switcheroo-control/releases/download/%{version}/%{name}-%{version}.tar.xz
 Source1:%{name}-rpmlintrc
 BuildRequires:  gtk-doc
 BuildRequires:  pkgconfig
@@ -70,7 +70,7 @@
 %defattr(-,root,root)
 %license COPYING
 %doc NEWS README
-%{_sbindir}/switcheroo-control
+%{_libexecdir}/switcheroo-control
 %{_unitdir}/switcheroo-control.service
 # Own dirs to avoid depending on dbus while building.
 %dir %{_sysconfdir}/dbus-1

++ switcheroo-control-1.2.tar.xz -> switcheroo-control-1.3.1.tar.xz ++
 2446 lines of diff (skipped)
retrying with extended exclude list
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude 
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh 
old/switcheroo-control-1.2/NEWS new/switcheroo-control-1.3.1/NEWS
--- old/switcheroo-control-1.2/NEWS 2017-09-20 18:43:32.0 +0200
+++ new/switcheroo-control-1.3.1/NEWS   2019-06-17 12:19:12.0 +0200
@@ -1,3 +1,17 @@
+1.3.1
+-
+
+- Fix Secure Boot work-around to not misdetect any system as being
+  dual-GPU and error out when it wasn't
+
+1.3
+---
+
+- Work-around lack of access to vga_switcheroo when booting with
+  SecureBoot enabled
+- Work-around a possible kernel deadlock on boot
+- Install binary in $libexecdir
+
 1.2
 ---
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude 
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh 
old/switcheroo-control-1.2/README new/switcheroo-control-1.3.1/README
--- old/switcheroo-control-1.2/README   2016-11-03 17:19:07.0 +0100
+++ new/switcheroo-control-1.3.1/README 2017-09-20 19:12:05.0 +0200
@@ -3,7 +3,7 @@
 
 D-Bus service to check the availability of dual-GPU
 
-See https://developer.gnome.org/switcheroo-control/1.0/ for
+See https://developer.gnome.org/switcheroo-control/ for
 developer information.
 
 Installation
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore'

commit switcheroo-control for openSUSE:Factory

2018-06-13 Thread root
Hello community,

here is the log from the commit of package switcheroo-control for 
openSUSE:Factory checked in at 2018-06-13 15:39:14

Comparing /work/SRC/openSUSE:Factory/switcheroo-control (Old)
 and  /work/SRC/openSUSE:Factory/.switcheroo-control.new (New)


Package is "switcheroo-control"

Wed Jun 13 15:39:14 2018 rev:4 rq:615797 version:1.2

Changes:

--- /work/SRC/openSUSE:Factory/switcheroo-control/switcheroo-control.changes
2018-02-22 15:03:08.228512211 +0100
+++ 
/work/SRC/openSUSE:Factory/.switcheroo-control.new/switcheroo-control.changes   
2018-06-13 15:39:37.732033897 +0200
@@ -6 +6 @@
-  to comply with openSUSE's Guidelines.
+  to comply with openSUSE's Guidelines (boo#1096823).



Other differences:
--
++ switcheroo-control.spec ++
--- /var/tmp/diff_new_pack.GLsbhH/_old  2018-06-13 15:39:38.520004902 +0200
+++ /var/tmp/diff_new_pack.GLsbhH/_new  2018-06-13 15:39:38.528004607 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package switcheroo-control
 #
-# Copyright (c) 2017 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
@@ -20,14 +20,14 @@
 Version:1.2
 Release:0
 Summary:D-Bus service to check the availability of dual-GPU
-License:GPL-3.0
+License:GPL-3.0-only
 Group:  Hardware/Other
 Url:https://github.com/hadess/switcheroo-control
 Source0:
https://github.com/hadess/switcheroo-control/releases/download/1.2/%{name}-%{version}.tar.xz
 Source1:%{name}-rpmlintrc
 BuildRequires:  gtk-doc
-BuildRequires:  systemd-rpm-macros
 BuildRequires:  pkgconfig
+BuildRequires:  systemd-rpm-macros
 BuildRequires:  pkgconfig(gio-2.0)
 %{?systemd_requires}
 




commit switcheroo-control for openSUSE:Factory

2018-02-22 Thread root
Hello community,

here is the log from the commit of package switcheroo-control for 
openSUSE:Factory checked in at 2018-02-22 15:03:05

Comparing /work/SRC/openSUSE:Factory/switcheroo-control (Old)
 and  /work/SRC/openSUSE:Factory/.switcheroo-control.new (New)


Package is "switcheroo-control"

Thu Feb 22 15:03:05 2018 rev:3 rq:578930 version:1.2

Changes:

--- /work/SRC/openSUSE:Factory/switcheroo-control/switcheroo-control.changes
2017-09-29 11:56:18.554994634 +0200
+++ 
/work/SRC/openSUSE:Factory/.switcheroo-control.new/switcheroo-control.changes   
2018-02-22 15:03:08.228512211 +0100
@@ -1,0 +2,11 @@
+Tue Feb 20 23:23:27 UTC 2018 - luc1...@linuxmail.org
+
+- Add systemd-rpm-macros BuildRequires and service_add_*
+  pre/post/preun/postun scriptlets for switcheroo-control.service
+  to comply with openSUSE's Guidelines.
+- Pass --with-systemdsystemunitdir=%{_unitdir} parameter to
+  configure to correct the systemd unit file's location.
+- Adopt the use of %make_install macro rather than raw make
+  command, following the best practices.
+
+---



Other differences:
--
++ switcheroo-control.spec ++
--- /var/tmp/diff_new_pack.zFTLGZ/_old  2018-02-22 15:03:10.496430629 +0100
+++ /var/tmp/diff_new_pack.zFTLGZ/_new  2018-02-22 15:03:10.496430629 +0100
@@ -26,9 +26,9 @@
 Source0:
https://github.com/hadess/switcheroo-control/releases/download/1.2/%{name}-%{version}.tar.xz
 Source1:%{name}-rpmlintrc
 BuildRequires:  gtk-doc
+BuildRequires:  systemd-rpm-macros
 BuildRequires:  pkgconfig
 BuildRequires:  pkgconfig(gio-2.0)
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 %{?systemd_requires}
 
 %description
@@ -46,16 +46,32 @@
 %setup -q
 
 %build
-%configure --enable-gtk-doc
+%configure \
+--with-systemdsystemunitdir=%{_unitdir} \
+--enable-gtk-doc
 make %{?_smp_mflags}
 
 %install
-make %{?_smp_mflags} DESTDIR=%{buildroot} install
+%make_install
+
+%pre
+%service_add_pre switcheroo-control.service
+
+%post
+%service_add_post switcheroo-control.service
+
+%preun
+%service_del_preun switcheroo-control.service
+
+%postun
+%service_del_postun switcheroo-control.service
 
 %files
 %defattr(-,root,root)
-%doc NEWS README.md COPYING
+%license COPYING
+%doc NEWS README
 %{_sbindir}/switcheroo-control
+%{_unitdir}/switcheroo-control.service
 # Own dirs to avoid depending on dbus while building.
 %dir %{_sysconfdir}/dbus-1
 %dir %{_sysconfdir}/dbus-1/system.d
@@ -63,6 +79,6 @@
 
 %files doc
 %defattr(-,root,root)
-%{_datadir}/gtk-doc/html/%{name}/
+%doc %{_datadir}/gtk-doc/html/%{name}/
 
 %changelog




commit switcheroo-control for openSUSE:Factory

2017-09-29 Thread root
Hello community,

here is the log from the commit of package switcheroo-control for 
openSUSE:Factory checked in at 2017-09-29 11:56:14

Comparing /work/SRC/openSUSE:Factory/switcheroo-control (Old)
 and  /work/SRC/openSUSE:Factory/.switcheroo-control.new (New)


Package is "switcheroo-control"

Fri Sep 29 11:56:14 2017 rev:2 rq:529004 version:1.2

Changes:

--- /work/SRC/openSUSE:Factory/switcheroo-control/switcheroo-control.changes
2017-08-28 15:19:25.437681960 +0200
+++ 
/work/SRC/openSUSE:Factory/.switcheroo-control.new/switcheroo-control.changes   
2017-09-29 11:56:18.554994634 +0200
@@ -1,0 +2,6 @@
+Fri Sep 22 16:54:09 UTC 2017 - badshah...@gmail.com
+
+- Update to version 1.2:
+  + Fix API documentation not being part of the tarball.
+
+---

Old:

  switcheroo-control-1.1.tar.xz

New:

  switcheroo-control-1.2.tar.xz



Other differences:
--
++ switcheroo-control.spec ++
--- /var/tmp/diff_new_pack.psuobT/_old  2017-09-29 11:56:19.262894815 +0200
+++ /var/tmp/diff_new_pack.psuobT/_new  2017-09-29 11:56:19.266894251 +0200
@@ -17,13 +17,13 @@
 
 
 Name:   switcheroo-control
-Version:1.1
+Version:1.2
 Release:0
 Summary:D-Bus service to check the availability of dual-GPU
 License:GPL-3.0
 Group:  Hardware/Other
 Url:https://github.com/hadess/switcheroo-control
-Source0:
https://github.com/hadess/switcheroo-control/releases/download/1.1/%{name}-%{version}.tar.xz
+Source0:
https://github.com/hadess/switcheroo-control/releases/download/1.2/%{name}-%{version}.tar.xz
 Source1:%{name}-rpmlintrc
 BuildRequires:  gtk-doc
 BuildRequires:  pkgconfig
@@ -36,6 +36,7 @@
 
 %package doc
 Summary:Documentation for %{name}
+Group:  Hardware/Other
 BuildArch:  noarch
 
 %description doc

++ switcheroo-control-1.1.tar.xz -> switcheroo-control-1.2.tar.xz ++
 2929 lines of diff (skipped)
retrying with extended exclude list
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude 
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh 
old/switcheroo-control-1.1/INSTALL new/switcheroo-control-1.2/INSTALL
--- old/switcheroo-control-1.1/INSTALL  2016-11-04 17:14:09.0 +0100
+++ new/switcheroo-control-1.2/INSTALL  2017-09-20 18:44:04.0 +0200
@@ -1,8 +1,8 @@
 Installation Instructions
 *
 
-Copyright (C) 1994-1996, 1999-2002, 2004-2013 Free Software Foundation,
-Inc.
+   Copyright (C) 1994-1996, 1999-2002, 2004-2016 Free Software
+Foundation, Inc.
 
Copying and distribution of this file, with or without modification,
 are permitted in any medium without royalty provided the copyright
@@ -12,97 +12,96 @@
 Basic Installation
 ==
 
-   Briefly, the shell command `./configure && make && make install'
+   Briefly, the shell command './configure && make && make install'
 should configure, build, and install this package.  The following
-more-detailed instructions are generic; see the `README' file for
+more-detailed instructions are generic; see the 'README' file for
 instructions specific to this package.  Some packages provide this
-`INSTALL' file but do not implement all of the features documented
+'INSTALL' file but do not implement all of the features documented
 below.  The lack of an optional feature in a given package is not
 necessarily a bug.  More recommendations for GNU packages can be found
 in *note Makefile Conventions: (standards)Makefile Conventions.
 
-   The `configure' shell script attempts to guess correct values for
+   The 'configure' shell script attempts to guess correct values for
 various system-dependent variables used during compilation.  It uses
-those values to create a `Makefile' in each directory of the package.
-It may also create one or more `.h' files containing system-dependent
-definitions.  Finally, it creates a shell script `config.status' that
+those values to create a 'Makefile' in each directory of the package.
+It may also create one or more '.h' files containing system-dependent
+definitions.  Finally, it creates a shell script 'config.status' that
 you can run in the future to recreate the current configuration, and a
-file `config.log' containing compiler output (useful mainly for
-debugging `configure').
+file 'config.log' containing compiler output (useful mainly for
+debugging 'configure').
 
-   It can also use an optional file (typically called `config.cache'
-and enabled with `--cache-