diff --git a/Impressive-0.12.0-235-245.patch b/Impressive-0.12.0-235-245.patch new file mode 100644 index 0000000..811f94e --- /dev/null +++ b/Impressive-0.12.0-235-245.patch @@ -0,0 +1,447 @@ +Binärdateien Impressive-0.12.0/demo.pdf und Impressive-0.12.1-WIP/demo.pdf sind verschieden. +diff -u Impressive-0.12.0/impressive.1 Impressive-0.12.1-WIP/impressive.1 +--- Impressive-0.12.0/impressive.1 2018-02-04 21:31:39.000000000 +0100 ++++ Impressive-0.12.1-WIP/impressive.1 2019-08-18 16:25:04.000000000 +0200 +@@ -1,5 +1,5 @@ + .\" generated by KeyJ's html2man.py version 0.1.1 +-.TH IMPRESSIVE 1 2018-02-04 "Martin J. Fiedler" "Impressive Documentation"> ++.TH IMPRESSIVE 1 2018-02-07 "Martin J. Fiedler" "Impressive Documentation"> + .SH "NAME" + Impressive \- presentation tool with eye candy + .SH "SYNOPSIS" +@@ -666,6 +666,16 @@ + .RE + .PP + .br ++\fBA\fR key ++.RS ++Toggle automatic slideshow mode. ++.br ++If an automatic presentation has been started with the \fB\-a\fR/\:\fB\-\-auto\fR option, it is temporarily disabled until this key is pressed again. It is not automatically re\-enabled after changing the page. If the \fB\-a\fR/\:\fB\-\-auto\fR has not been used, an automatic presentation with a timeout of 30 seconds is started when this key is pressed for the first time. ++.br ++Note that if a page has a \fBtimeout\fR PageProp, the specified timeout is \fIalways\fR in effect when the page is entered, even if the automatic slideshow is otherwise disabled. ++.RE ++.PP ++.br + \fBS\fR key + .RS + Save the info script associated with the current presentation. The main purpose for this is to permanently save highlight boxes or keyboard shortcuts, so they will be restored the next time this presentation is started. +@@ -857,6 +867,26 @@ + The following list describes all actions supported by Impressive, together with the conditions under which they will match. Note that most actions will not match in overview mode and during video playback, unless mentioned otherwise in the description. + .PP + .br ++\fBauto\-start\fR ++.RS ++(Re\-)enable automatic presentation mode. If the current page has no \fBtimeout\fR PageProp and no \fB\-a\fR/\:\fB\-\-auto\fR option has been specified, an automatic presentation is started with a 30\-second page interval. ++.RE ++.PP ++.br ++\fBauto\-stop\fR ++.RS ++Disable automatic presentation mode. If the current page has a \fBtimeout\fR PageProp or an \fB\-a\fR/\:\fB\-\-auto\fR option has been specified, the timeout for the current page is stopped. ++.br ++The automatic presentation stays disabled after changing pages, unless a \fBtimeout\fR PageProp is specified for the target page, which will take precedence over the otherwise disabled automatic presentation mode. ++.RE ++.PP ++.br ++\fBauto\-toggle\fR ++.RS ++Disables or (re\-)enables automatic presentations, depending on the current state. ++.RE ++.PP ++.br + \fBbox\-add\fR + .RS + Draw a highlight box if the mouse has been moved since the button has been pressed down. This action must only be bound to a mouse button event, otherwise it will not function properly. +diff -u Impressive-0.12.0/impressive.html Impressive-0.12.1-WIP/impressive.html +--- Impressive-0.12.0/impressive.html 2018-02-04 21:31:39.000000000 +0100 ++++ Impressive-0.12.1-WIP/impressive.html 2019-08-18 16:25:04.000000000 +0200 +@@ -13,12 +13,12 @@ + +

+ http://impressive.sourceforge.net/
+-Version: 0.12.0
++Version: 0.12.1-WIP
+ Author: Martin J. Fiedler
+-Last updated: 2018-02-04

++Last updated: 2018-02-07

+ + ") diff --git a/impressive.spec b/impressive.spec index 0bfc9ef..4bdb726 100644 --- a/impressive.spec +++ b/impressive.spec @@ -1,6 +1,6 @@ Name: impressive Version: 0.12.0 -Release: 9%{?dist} +Release: 10%{?dist} Summary: A program that displays presentation slides License: GPLv2 @@ -8,13 +8,17 @@ URL: http://impressive.sourceforge.net/ Source0: http://downloads.sourceforge.net/%{name}/Impressive-%{version}.tar.gz # Wrapper script for making sure hardware acceleration is available Source1: %{name}.sh - +# diff between 0.12.0 and current svn version r245 +Patch0: Impressive-0.12.0-235-245.patch +# py3-compatible conversion of r245 (https://github.com/mjg/Impressive/tree/py3k) +Patch1: Impressive-0.12.0-245-py3.patch + BuildArch: noarch -BuildRequires: python2-devel +BuildRequires: python3-devel # The following requires are not picked up by rpm: # - imported modules (required): -Requires: python2-imaging -Requires: python2-pygame +Requires: python3-imaging +Requires: python3-pygame Requires: opengl-games-utils # - external tools for displaying and parsing pdf (required): Requires: mupdf @@ -35,17 +39,17 @@ that are really useful for presentations. %prep -%setup -q -n Impressive-%{version} -sed -ie '1s#/usr/bin/env python2#/usr/bin/python2#' impressive.py +%autosetup -n Impressive-%{version} -p1 +sed -ie '1s#/usr/bin/env python2#/usr/bin/python3#' impressive.py %build -sed -e "s|@PYTHON_SITELIB@|%{python2_sitelib}|" %{SOURCE1} > impressive.sh +sed -e "s|@PYTHON_SITELIB@|%{python3_sitelib}|" %{SOURCE1} > impressive.sh # This package doesn't build anything, just copy files under build root. %install rm -rf %{buildroot} -install -D -p -m 755 impressive.py %{buildroot}%{python2_sitelib}/impressive.py +install -D -p -m 755 impressive.py %{buildroot}%{python3_sitelib}/impressive.py install -D -p -m 644 impressive.1 %{buildroot}%{_mandir}/man1/impressive.1 install -D -p -m 755 impressive.sh %{buildroot}%{_bindir}/impressive @@ -54,10 +58,15 @@ install -D -p -m 755 impressive.sh %{buildroot}%{_bindir}/impressive %files %doc changelog.txt demo.pdf impressive.html license.txt %{_bindir}/impressive -%{python2_sitelib}/impressive.py* +%{python3_sitelib}/impressive.py +%{python3_sitelib}/__pycache__/* %{_mandir}/man1/impressive.1* %changelog +* Sun Aug 18 2019 Michael J Gruber - 0.12.0-10 +- port current svn version to python3 (coordinated with upstream, release pending) +- fixes bug 1731634 + * Fri Jul 26 2019 Michael J Gruber - 0.12.0-9 - remove obsolete comment