diff --git a/.cvsignore b/.cvsignore deleted file mode 100644 index e69de29..0000000 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cafdb13 --- /dev/null +++ b/.gitignore @@ -0,0 +1,12 @@ +Impressive-0.10.2.tar.gz +/Impressive-0.10.3.tar.gz +/Impressive-0.10.4.tar.gz +/Impressive-0.11.1.tar.gz +/Impressive-0.11.2.tar.gz +/Impressive-0.11.3.tar.gz +/Impressive-0.12.0.tar.gz +/Impressive-0.13.0-WIP-20190902svn275.tar.gz +/Impressive-0.13.0-WIP-20210107svn310.tar.gz +/Impressive-0.13.0-WIP-20210612svn311.tar.gz +/Impressive-0.13.1.tar.gz +/Impressive-0.13.2.tar.gz diff --git a/Makefile b/Makefile deleted file mode 100644 index ae83d1e..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: impressive -# $Id$ -NAME := impressive -SPECFILE = $(firstword $(wildcard *.spec)) - -define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done -endef - -MAKEFILE_COMMON := $(shell $(find-makefile-common)) - -ifeq ($(MAKEFILE_COMMON),) -# attept a checkout -define checkout-makefile-common -test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 -endef - -MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) -endif - -include $(MAKEFILE_COMMON) diff --git a/changelog b/changelog new file mode 100644 index 0000000..c928525 --- /dev/null +++ b/changelog @@ -0,0 +1,192 @@ +* Sat Mar 19 2022 Michael J Gruber - 0.13.1-1 +- rebase to 0.13.1 (bz #2065961) +- switch to rpmautospec + +* Thu Jan 20 2022 Fedora Release Engineering - 0.13.0-0.10.20210612svn311 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Thu Jul 22 2021 Fedora Release Engineering - 0.13.0-0.9.20210612svn311 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Sat Jun 12 2021 Michael J Gruber - 0.13.0-0.8.20210612svn311 +- adjust to pygame 2/SDL2 (bz 1970553) +- specfile clean-ups + +* Fri Jun 04 2021 Python Maint - 0.13.0-0.7.20210107svn310 +- Rebuilt for Python 3.10 + +* Wed Jan 27 2021 - 0.13.0-6.20210107svn310 +- rebase to 0.13.0-beta2 plus hotfixes + +* Tue Jan 26 2021 Fedora Release Engineering - 0.13.0-0.5.20190902svn275 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering - 0.13.0-0.4.20190902svn275 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue May 26 2020 Miro Hrončok - 0.13.0-0.3.20190902svn275 +- Rebuilt for Python 3.9 + +* Wed Jan 29 2020 Fedora Release Engineering - 0.13.0-0.2.20190902svn275 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Mon Sep 02 2019 Michael J Gruber - 0.13.0-0.1.20190902svn275 +- build from upstream python3 branch +- previous py3k patches have been upstreamed + +* Mon Aug 19 2019 Miro Hrončok - 0.12.0-12 +- Rebuilt for Python 3.8 + +* Mon Aug 19 2019 Michael J Gruber - 0.12.0-11 +- patch version v0.11.1-74-gc504a64 + +* Sun Aug 18 2019 Michael J Gruber - 0.12.0-10 +- port current svn version to python3 (coordinated with upstream, release pending) +- patch version v0.11.1-74-g0223cd9 +- fixes bug 1731634 + +* Fri Jul 26 2019 Michael J Gruber - 0.12.0-9 +- remove obsolete comment + +* Thu Jul 25 2019 Fedora Release Engineering - 0.12.0-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Fri Feb 01 2019 Fedora Release Engineering - 0.12.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Mon Oct 22 2018 Michael J Gruber - 0.12.0-6 +- rebuild for python2-pygame dependency update + +* Fri Jul 13 2018 Michael J Gruber - 0.12.0-5 +- adjust to py2 packaging guidelines + +* Fri Jul 13 2018 Fedora Release Engineering - 0.12.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Feb 07 2018 Iryna Shcherbina - 0.12.0-3 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + +* Tue Feb 06 2018 Michael J Gruber - 0.12.0-2 +- remove obsolete dependency + +* Tue Feb 06 2018 Michael J Gruber - 0.12.0-1 +- upstream bugfix and feature release + +* Mon Feb 05 2018 Michael J Gruber - 0.11.3-1 +- upstream bugfix release + +* Sat Jan 06 2018 Michael J Gruber - 0.11.2-4 +- use correct shebang + +* Thu Jan 04 2018 Michael J Gruber - 0.11.2-3 +- depend on Py2 packages explicitely + +* Tue Dec 26 2017 Michael J Gruber - 0.11.2-2 +- follow upstream re-tagging + +* Tue Dec 19 2017 Michael J Gruber - 0.11.2-1 +- sync with upstream + +* Wed Jul 26 2017 Fedora Release Engineering - 0.11.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 0.11.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Tue Jul 19 2016 Fedora Release Engineering - 0.11.1-4 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Thu Feb 04 2016 Fedora Release Engineering - 0.11.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Sat Nov 21 2015 Michael J Gruber - 0.11.1-2 +- adjust to current mudraw option syntax +- use mutool for info parsing + +* Sat Nov 21 2015 Michael J Gruber - 0.11.1-1 +- sync with upstream +- fix changelog typos + +* Wed Jun 17 2015 Fedora Release Engineering - 0.10.4-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 0.10.4-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Tue Mar 11 2014 Michael J Gruber - 0.10.4-3 +- temporarily remove R pdftk + +* Thu Jan 02 2014 Michael J Gruber - 0.10.4-2 +- upate requires as recommended by upstream + +* Thu Jan 02 2014 Michael J Gruber - 0.10.4-1 +- sync with upstream +- drop pillow compatibility patch (upstreamed) +- drop backported PDF parser fix (upstreamed) + +* Sat Aug 03 2013 Fedora Release Engineering - 0.10.3-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Thu Feb 14 2013 Fedora Release Engineering - 0.10.3-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Tue Jan 15 2013 Michael J Gruber - 0.10.3-10 +- pillow compatibility (bug 895270, patch by Toshio Ernie Kuratomi) + +* Thu Jul 19 2012 Fedora Release Engineering - 0.10.3-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Fri Jan 13 2012 Fedora Release Engineering - 0.10.3-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Mon Nov 28 2011 Michael J Gruber - 0.10.3-7 +- backport PDF parser fix + +* Mon May 02 2011 Michael J Gruber - 0.10.3-6 +- EPEL has no pdftk (recommended but optional requirement) + +* Fri Mar 11 2011 Michael J Gruber - 0.10.3-5 +- Clarify explicit requires. +- Add pdftk as requirement. + +* Wed Feb 09 2011 Fedora Release Engineering - 0.10.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Sun Dec 05 2010 Michael J Gruber - 0.10.3-3 +- spec file cleanup. + +* Sun Dec 05 2010 Michael J Gruber - 0.10.3-2 +- Make summary less flashy. +- Install main program in sitelib. +- BR python-devel. + +* Fri Dec 03 2010 Michael J Gruber - 0.10.3-1 +- Sync with upstream. + +* Fri Jul 24 2009 Fedora Release Engineering - 0.10.2-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Tue Feb 24 2009 Fedora Release Engineering - 0.10.2-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Thu Feb 19 2009 Allisson Azevedo 0.10.2-6 +- Added provides keyjnote. + +* Mon Feb 16 2009 Allisson Azevedo 0.10.2-5 +- Obsolete keyjnote. + +* Mon Feb 16 2009 Allisson Azevedo 0.10.2-4 +- Fix requires for dejavu fonts. + +* Thu Feb 12 2009 Allisson Azevedo 0.10.2-3 +- Added OpenGL wrapper. +- Fix requires for dejavu fonts. + +* Thu Feb 12 2009 Allisson Azevedo 0.10.2-2 +- Changed license. +- Added dejavu-fonts to requires. +- Added build section. + +* Mon Feb 9 2009 Allisson Azevedo 0.10.2-1 +- Initial RPM release diff --git a/impressive-0.13-escape-escape-sequence.patch b/impressive-0.13-escape-escape-sequence.patch new file mode 100644 index 0000000..7c6890f --- /dev/null +++ b/impressive-0.13-escape-escape-sequence.patch @@ -0,0 +1,26 @@ +diff --git 1/impressive.py-orig 2/impressive.py +index edde236..86d83e3 100644 +--- 1/impressive.py-orig ++++ 2/impressive.py +@@ -1008,10 +1008,10 @@ def mutoolParse(f, page_offset=0): + pages = 0 + for line in f: + line = line.decode() +- m = re.match("pages:\s*(\d+)", line, re.I) ++ m = re.match(r'pages:\s*(\d+)', line, re.I) + if m and not(pages): + pages = int(m.group(1)) +- m = re.search("/title\s*\(", line, re.I) ++ m = re.search(r'/title\s*\(', line, re.I) + if m and not(title): + title = line[m.end():].replace(')', '\0').replace('\\(', '(').replace('\\\0', ')').split('\0', 1)[0].strip() + return (title, pages) +@@ -3938,7 +3938,7 @@ def SaveInfoScript(filename): + + # replace the PageProps of the old info script with the current ones + try: +- m = re.search("^.*(PageProps)\s*=\s*(\{).*$", script,re.MULTILINE) ++ m = re.search(r'^.*(PageProps)\s*=\s*(\{).*$', script,re.MULTILINE) + if m: + script = script[:m.start(1)] + PagePropRepr() + \ + script[CountDictChars(script, m.end(2)) + 1 :] diff --git a/impressive.sh b/impressive.sh new file mode 100644 index 0000000..d9f7e13 --- /dev/null +++ b/impressive.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +. /usr/share/opengl-games-utils/opengl-game-functions.sh + +APP=impressive + +checkDriOK $APP + +exec @PYTHON_SITELIB@/$APP.py "$@" diff --git a/impressive.spec b/impressive.spec new file mode 100644 index 0000000..832e954 --- /dev/null +++ b/impressive.spec @@ -0,0 +1,63 @@ +Name: impressive +Version: 0.13.2 +Release: %autorelease +Summary: A program that displays presentation slides + +License: GPL-2.0-or-later +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 +Patch: impressive-0.13-escape-escape-sequence.patch + +BuildArch: noarch +BuildRequires: python3-devel +# The following requires are not picked up by rpm: +# - imported modules (required): +Requires: python3-imaging +Requires: python3-pygame +Requires: opengl-games-utils +# - external tools for displaying and parsing pdf (required): +Requires: mupdf +# - external tool for acting on links (strongly recommended): +Requires: xdg-utils +# - font for on screen display (recommended): +Requires: dejavu-sans-fonts + + +%description +Impressive is a program that displays presentation slides. But unlike +OpenOffice.org Impress or other similar applications, it does so with +style. + +Smooth alpha-blended slide transitions are provided for the sake +of eye candy, but in addition to this, Impressive offers some unique tools +that are really useful for presentations. + + +%prep +%autosetup -n Impressive-%{version} -p1 +sed -i -e '1s#/usr/bin/env python#/usr/bin/python3#' impressive.py + +%build +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}%{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 + + + +%files +%doc changelog.txt demo.pdf impressive.html license.txt +%{_bindir}/impressive +%{python3_sitelib}/impressive.py +%{python3_sitelib}/__pycache__/* +%{_mandir}/man1/impressive.1* + +%changelog +%autochangelog diff --git a/sources b/sources index e69de29..26695e6 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (Impressive-0.13.2.tar.gz) = 0b24ef39cba25d8813fd3f95f220c466defa50c3ba4a63d2f37b284de2826c2110225fe2016f58c401d1ca239d672ba28ba65069523ab57b1b5711a4222cff92