Hello community, here is the log from the commit of package when-command for openSUSE:Factory checked in at 2016-05-17 17:16:15 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/when-command (Old) and /work/SRC/openSUSE:Factory/.when-command.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "when-command" Changes: -------- --- /work/SRC/openSUSE:Factory/when-command/when-command.changes 2016-03-05 13:07:29.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.when-command.new/when-command.changes 2016-05-17 17:16:16.000000000 +0200 @@ -1,0 +2,20 @@ +Mon May 16 06:32:55 UTC 2016 - [email protected] + +- Add rpmlintrc control file + +------------------------------------------------------------------- +Sat May 7 07:12:54 UTC 2016 - [email protected] + +- Update to version 0.9.11~beta1 (changes since 0.9.10~beta2): + * Fix a bug that would run activities scheduled for time + specifications containing zeros immediately after their creation. + * Fix a bug that prevented the disabled state of a condition to + be retained when set through the Remote API. + * Support the new interface to external devices featured in + gvfs 1.26, lack of it prevented When to correctly register + events related to connection of external storage devices. +- Alter official when-command.desktop instead of supplying an other + one. +- Add a basic when-command.appdata.xml file. + +------------------------------------------------------------------- Old: ---- when-command-0.9.10-beta.2.tar.gz when-command.desktop New: ---- when-command-0.9.11-beta.1.tar.gz when-command-rpmlintrc when-command.appdata.xml ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ when-command.spec ++++++ --- /var/tmp/diff_new_pack.dKMUTF/_old 2016-05-17 17:16:17.000000000 +0200 +++ /var/tmp/diff_new_pack.dKMUTF/_new 2016-05-17 17:16:17.000000000 +0200 @@ -16,20 +16,24 @@ # -%define _version 0.9.10-beta.2 +%define _version 0.9.11-beta.1 Name: when-command -Version: 0.9.10~beta2 +Version: 0.9.11~beta1 Release: 0 Summary: Configurable user task scheduler License: BSD-3-Clause Group: Productivity/Other Url: http://almostearthling.github.io/when-command Source: https://github.com/almostearthling/%{name}/archive/v%{_version}.tar.gz#/%{name}-%{_version}.tar.gz -Source1: %{name}.desktop +Source1: %{name}.appdata.xml +Source2: %{name}-rpmlintrc BuildRequires: fdupes BuildRequires: gobject-introspection-devel BuildRequires: hicolor-icon-theme +BuildRequires: libXss1 BuildRequires: python3-devel +BuildRequires: python3-gobject +BuildRequires: python3-pyinotify BuildRequires: python3-setuptools BuildRequires: update-desktop-files Requires: libXss1 @@ -49,7 +53,8 @@ %prep %setup -q -n %{name}-%{_version} -cp -f %{SOURCE1} %{name}.desktop +cp -f %{SOURCE1} %{name}.appdata.xml +sed -i 's/^\(Exec=\).*$/\1%{name}/' share/applications/%{name}.desktop %build python3 setup.py build @@ -58,15 +63,17 @@ python3 setup.py install \ --root=%{buildroot} --prefix=%{_prefix} -install -Dm 0644 %{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop +install -Dm 0644 %{name}.appdata.xml \ + %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml mkdir -p %{buildroot}%{_docdir}/ mv -f %{buildroot}%{_datadir}/doc/%{name}/ \ %{buildroot}%{_docdir}/%{name}/ -%suse_update_desktop_file %{name} -%find_lang %{name} +%suse_update_desktop_file -r -G "When scheduler" %{name} Utility TimeUtility + %fdupes %{buildroot}%{_prefix}/ +%find_lang %{name} %post %desktop_database_post @@ -82,8 +89,10 @@ %{_bindir}/%{name} %{_datadir}/%{name}/ %{_datadir}/applications/%{name}.desktop +%dir %{_datadir}/appdata/ +%{_datadir}/appdata/%{name}.appdata.xml %{_datadir}/icons/hicolor/*/apps/%{name}.* -%{_mandir}/man?/when-command.?%{?ext_man} +%{_mandir}/man?/%{name}.?%{?ext_man} %{python3_sitelib}/when_command-* %files lang -f %{name}.lang ++++++ when-command-0.9.10-beta.2.tar.gz -> when-command-0.9.11-beta.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/when-command-0.9.10-beta.2/README.md new/when-command-0.9.11-beta.1/README.md --- old/when-command-0.9.10-beta.2/README.md 2016-03-02 00:45:02.000000000 +0100 +++ new/when-command-0.9.11-beta.1/README.md 2016-05-03 19:52:11.000000000 +0200 @@ -7,9 +7,20 @@ It is not generally intended as a replacement to [_cron_](https://en.wikipedia.org/wiki/Cron) and the [Gnome Task Scheduler](http://gnome-schedule.sourceforge.net/), although to some extent these utilities might overlap. **When** is intended to be more flexible, although less precise, and to provide an alternative to more complicated solutions -- such as the implementation of _cron_ jobs that check for a particular condition and execute commands when the condition is verified. In such spirit, **When** is not as fine-grained in terms of doing things on a strict time schedule: the **When** approach is that "_when_ a certain condition is met, _then_ something has to be done". The condition is checked periodically, and the countermeasure is taken _subsequently_ in a relaxed fashion, which means that it might not occur _immediately_ in most cases. -[](http://when-documentation.readthedocs.org/en/latest/?badge=latest) +[](http://when-documentation.readthedocs.io/en/latest/?badge=latest) -The complete documentation for **When** can be found online [here](http://when-documentation.readthedocs.org/). Documentation for contributors has a separate [site](http://contributing-to-when.readthedocs.org/). +The complete documentation for **When** can be found online [here](http://when-documentation.readthedocs.io/). Documentation for contributors has a separate [site](http://contributing-to-when.readthedocs.io/). + +## Installation +Besides manual installation from source as explained in the [documentation](http://when-documentation.readthedocs.io/en/latest/install.html#install-from-the-source), packages suitable for Ubuntu can be found in the [releases](https://github.com/almostearthling/when-command/releases) page. A PPA for Ubuntu is also available: to install from the PPA and get automatic updates, the following commands can be used from a terminal window: + +``` +$ sudo add-apt-repository ppa:franzg/when-command +$ sudo apt-get update +$ sudo apt-get install when-command +``` + +If the PPA is used, **When** can be started from the *Dash* immediately: once started, it can be configured for autostart using the *Settings* dialog box. ## Alternate Interface Besides being fully configurable and accessible from both the command line interface and the graphical user interface, an alternate and more streamlined GUI for **When** is being actively developed: the [When Wizard](https://github.com/almostearthling/when-wizard) suite can be used to create actions in **When** in a possibly easier way. @@ -27,7 +38,7 @@ ## Resources The resources that I have found particularly useful in the development of **When** are: - [Python 3.x Documentation](https://docs.python.org/3/) -- [PyGTK 3.x Tutorial](http://python-gtk-3-tutorial.readthedocs.org/en/latest/index.html) +- [PyGTK 3.x Tutorial](http://python-gtk-3-tutorial.readthedocs.io/en/latest/index.html) - [PyGTK 2.x Documentation](https://developer.gnome.org/pygtk/stable/) - [PyGObject Documentation](https://developer.gnome.org/pygobject/stable/) - [GTK 3.0 Documentation](http://lazka.github.io/pgi-docs/Gtk-3.0/index.html) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/when-command-0.9.10-beta.2/README.txt new/when-command-0.9.11-beta.1/README.txt --- old/when-command-0.9.10-beta.2/README.txt 2016-03-02 00:45:02.000000000 +0100 +++ new/when-command-0.9.11-beta.1/README.txt 2016-05-03 19:52:11.000000000 +0200 @@ -3,4 +3,4 @@ conditions, as well as relationships of causality that bind conditions to tasks. -See http://when-documentation.readthedocs.org/ for further information. +See http://when-documentation.readthedocs.io/ for further information. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/when-command-0.9.10-beta.2/share/man/man1/when-command.1 new/when-command-0.9.11-beta.1/share/man/man1/when-command.1 --- old/when-command-0.9.10-beta.2/share/man/man1/when-command.1 2016-03-02 00:45:02.000000000 +0100 +++ new/when-command-0.9.11-beta.1/share/man/man1/when-command.1 2016-05-03 19:52:11.000000000 +0200 @@ -39,7 +39,7 @@ This manual page briefly describes the \fIcommand line interface\fP of \fBWhen\fP, the configuration file and \fIitem definition files\fP\&. Please refer to .sp -\fI\%http://when\-documentation.readthedocs.org/\fP +\fI\%http://when\-documentation.readthedocs.io/\fP .sp for more detailed information. .SH COMMAND LINE INTERFACE diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/when-command-0.9.10-beta.2/share/when-command/when-command.py new/when-command-0.9.11-beta.1/share/when-command/when-command.py --- old/when-command-0.9.10-beta.2/share/when-command/when-command.py 2016-03-02 00:45:02.000000000 +0100 +++ new/when-command-0.9.11-beta.1/share/when-command/when-command.py 2016-05-03 19:52:11.000000000 +0200 @@ -78,8 +78,8 @@ # * the first holds the version ID that build utilities can extract # * the second one includes a message that is used both as a commit message # and as a tag-associated message (in `git tag -m`) -APPLET_VERSION = '0.9.10~beta.2' -APPLET_TAGDESC = 'Stable beta fully compatible with alternate UI' +APPLET_VERSION = '0.9.11~beta.1' +APPLET_TAGDESC = 'Correctly manage storage device attachment in Xenial' # logging constants LOG_FORMAT = '%(asctime)s %(levelname)s: %(message)s' @@ -427,6 +427,15 @@ None, None ), + # Xenial (might have to be swapped to above to become main) + event_definition( + EVENT_SYSTEM_DEVICE_ATTACH, False, 'session', + 'org.gtk.vfs.UDisks2VolumeMonitor', + '/org/gtk/Private/RemoteVolumeMonitor', + 'org.gtk.Private.RemoteVolumeMonitor', 'DriveConnected', + None, + None + ), ], EVENT_SYSTEM_DEVICE_DETACH: [ event_definition( @@ -437,6 +446,15 @@ None, None ), + # Xenial (might have to be swapped to above to become main) + event_definition( + EVENT_SYSTEM_DEVICE_DETACH, False, 'session', + 'org.gtk.vfs.UDisks2VolumeMonitor', + '/org/gtk/Private/RemoteVolumeMonitor', + 'org.gtk.Private.RemoteVolumeMonitor', 'DriveDisconnected', + None, + None + ), ], EVENT_SESSION_SCREENSAVER: [ event_definition( @@ -3284,14 +3302,14 @@ cur_time = time.time() now = time.localtime(cur_time) test_tuple = ( - self.year or now[0], - self.month or now[1], - self.day or now[2], - self.hour or now[3], - self.minute or now[4], + self.year if self.year is not None else now[0], + self.month if self.month is not None else now[1], + self.day if self.day is not None else now[2], + self.hour if self.hour is not None else now[3], + self.minute if self.minute is not None else now[4], 0, now[6], - self.weekday or now[6], + self.weekday if self.weekday is not None else now[6], now[8], ) test_time = time.mktime(test_tuple) @@ -6225,7 +6243,7 @@ else: cond.resume() if save: - cond.save() + cond.dump() return True ++++++ when-command-rpmlintrc ++++++ # program uses dlopen for libXss.so.1 addFilter("explicit-lib-dependency")
