diff --git a/0001-make-constructors-of-abstract-classes-protected.patch b/0001-make-constructors-of-abstract-classes-protected.patch new file mode 100644 index 0000000..2a969a7 --- /dev/null +++ b/0001-make-constructors-of-abstract-classes-protected.patch @@ -0,0 +1,79 @@ +From f10e917b252a809daf9f7650011f68edc6be81b0 Mon Sep 17 00:00:00 2001 +From: Evgeny Stambulchik +Date: Sun, 4 Aug 2019 00:50:34 +0300 +Subject: [PATCH] Make constructors of abstract classes protected + +This should fix #445. +--- + src/classes/action/action_mapping.vala | 2 +- + src/classes/drawings/storage.vala | 2 +- + src/classes/renderer/cache/base.vala | 2 +- + src/classes/timer_label.vala | 2 +- + src/classes/view/behaviour/base.vala | 2 +- + 5 files changed, 5 insertions(+), 5 deletions(-) + +diff --git a/src/classes/action/action_mapping.vala b/src/classes/action/action_mapping.vala +index 780f80a..0abc307 100644 +--- a/src/classes/action/action_mapping.vala ++++ b/src/classes/action/action_mapping.vala +@@ -48,7 +48,7 @@ namespace pdfpc { + * methods, and we need blank objects to call them. Thus, this blank + * constructor. + */ +- public ActionMapping() { ++ protected ActionMapping() { + base(); + } + +diff --git a/src/classes/drawings/storage.vala b/src/classes/drawings/storage.vala +index 6c6e7f9..e5ceaa9 100644 +--- a/src/classes/drawings/storage.vala ++++ b/src/classes/drawings/storage.vala +@@ -35,7 +35,7 @@ namespace pdfpc.Drawings.Storage { + */ + protected Metadata.Pdf metadata; + +- public Base(Metadata.Pdf metadata) { ++ protected Base(Metadata.Pdf metadata) { + this.metadata = metadata; + } + +diff --git a/src/classes/renderer/cache/base.vala b/src/classes/renderer/cache/base.vala +index d60730e..2dc39ac 100644 +--- a/src/classes/renderer/cache/base.vala ++++ b/src/classes/renderer/cache/base.vala +@@ -37,7 +37,7 @@ namespace pdfpc.Renderer.Cache { + /** + * Initialize the cache store + */ +- public Base(Metadata.Pdf metadata) { ++ protected Base(Metadata.Pdf metadata) { + this.metadata = metadata; + } + +diff --git a/src/classes/timer_label.vala b/src/classes/timer_label.vala +index 8b55acc..8d689e1 100644 +--- a/src/classes/timer_label.vala ++++ b/src/classes/timer_label.vala +@@ -95,7 +95,7 @@ namespace pdfpc { + * Default constructor taking the initial time as argument, as well as + * the time to countdown until the talk actually starts. + */ +- public TimerLabel(PresentationController controller, time_t start_time = 0) { ++ protected TimerLabel(PresentationController controller, time_t start_time = 0) { + this.controller = controller; + this.start_time = start_time; + } +diff --git a/src/classes/view/behaviour/base.vala b/src/classes/view/behaviour/base.vala +index 4382ba6..46c8808 100644 +--- a/src/classes/view/behaviour/base.vala ++++ b/src/classes/view/behaviour/base.vala +@@ -41,7 +41,7 @@ namespace pdfpc.View { + /** + * Base constructor not taking any arguments + */ +- public Base() { ++ protected Base() { + // Nothing to do here + } + diff --git a/pdfpc.spec b/pdfpc.spec new file mode 100644 index 0000000..f019913 --- /dev/null +++ b/pdfpc.spec @@ -0,0 +1,43 @@ +Name: pdfpc +Version: 4.3.4 +Release: 1 +Summary: A GTK based presentation viewer application for GNU/Linux +License: GPLv2+ +URL: https://%{name}.github.io/ +Source0: https://github.com/%{name}/%{name}/archive/v%{version}.tar.gz +Patch0: 0001-make-constructors-of-abstract-classes-protected.patch +BuildRequires: cmake gcc git-core gtk3-devel gstreamer1-devel gstreamer1-plugins-base-devel +BuildRequires: librsvg2-devel libgee-devel pango-devel poppler-glib-devel vala vala-devel + +%description +pdfpc is a GTK based presentation viewer application for GNU/Linux which uses +Keynote like multi-monitor output to provide meta information to the speaker +during the presentation. It is able to show a normal presentation window on one +screen, while showing a more sophisticated overview on the other one providing +information like a picture of the next slide, as well as the left over time +till the end of the presentation. The input files processed by pdfpc are PDF +documents, which can be created using nearly any of today's presentation +software. + +%prep +%autosetup -n %{name}-%{version} -S git + +%build +%cmake -DSYSCONFDIR=/etc . +make %{?_smp_mflags} + +%install +%make_install + +%files +%doc README.rst CHANGELOG.txt +%{_bindir}/%{name} +%license LICENSE.txt +%config(noreplace) %{_sysconfdir}/%{name}rc +%{_mandir}/man1/%{name}* +%{_mandir}/man5/%{name}* +%{_datadir}/pixmaps/%{name} + +%changelog +* Tue Nov 17 2020 wangyue - 4.3.4-1 +- package init diff --git a/pdfpc.yaml b/pdfpc.yaml new file mode 100644 index 0000000..178790e --- /dev/null +++ b/pdfpc.yaml @@ -0,0 +1,5 @@ +git_url: https://github.com/pdfpc/pdfpc +version_control: github +src_repo: pdfpc/pdfpc +tag_prefix: "^v" +seperator: "." diff --git a/v4.3.4.tar.gz b/v4.3.4.tar.gz new file mode 100644 index 0000000..0d60e64 Binary files /dev/null and b/v4.3.4.tar.gz differ