diff --git a/_service b/_service index 5cbc40a..9f66254 100644 --- a/_service +++ b/_service @@ -1,15 +1,15 @@ - + foliate https://github.com/johnfactotum/foliate.git git - refs/tags/2.6.4 + refs/tags/3.0.0 @PARENT_TAG@+@TAG_OFFSET@ (.*)\+0 \1 - + gz diff --git a/foliate-2.6.4.obscpio b/foliate-2.6.4.obscpio deleted file mode 100644 index fdb712b..0000000 --- a/foliate-2.6.4.obscpio +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6b569cb1eb8d3f5e3123f87db980397e51614ccc26b9a0ce28a67aa04f660050 -size 9734669 diff --git a/foliate-3.0.0.obscpio b/foliate-3.0.0.obscpio new file mode 100644 index 0000000..12bfb10 --- /dev/null +++ b/foliate-3.0.0.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:728f9fd809bdc9ffd50a0443c7e005462b8c835d41e4fd9c02610c3082ab0bab +size 11252237 diff --git a/foliate-fix-export-of-incorrect-dep-Adw.patch b/foliate-fix-export-of-incorrect-dep-Adw.patch new file mode 100644 index 0000000..02dc7a0 --- /dev/null +++ b/foliate-fix-export-of-incorrect-dep-Adw.patch @@ -0,0 +1,12 @@ +diff '--color=auto' -rub a/src/app.js b/src/app.js +--- a/src/app.js 2023-11-17 09:15:25.627026590 +0600 ++++ b/src/app.js 2023-11-17 10:57:36.993547832 +0600 +@@ -31,7 +31,7 @@ + - Foliate ${pkg.version} + - GJS ${getGJSVersion()} + - GTK ${getImportVersion(Gtk)} +-- Adwaita ${getImportVersion(imports.gi.Adw)} ++- Adwaita ${getImportVersion(Adw)} + - GLib ${getImportVersion(GLib)} + - WebKitGTK ${getImportVersion(WebKit)} + diff --git a/foliate.changes b/foliate.changes index 7d61959..9d327d6 100644 --- a/foliate.changes +++ b/foliate.changes @@ -1,3 +1,111 @@ +------------------------------------------------------------------- +Fri Nov 17 05:01:16 UTC 2023 - Dead Mozay + +- Fixed export of incorrect dependencies 'typelib(Adw)})'. + Patch added foliate-fix-export-of-incorrect-dep-Adw.patch. + +------------------------------------------------------------------- +Fri Nov 17 03:32:07 UTC 2023 - Dead Mozay + +- Update to version 3.0.0 + * UI changes: + - The library and the e-book viewer are unified in a single + window. + - The library now loads more books as you scroll, no longer + requiring clicks to load more items. + - Table of contents, annotations, bookmarks are now in a sidebar, + which is docked to the side by default, but can also be set + to be always folded (overlaid on top of content when revealed). + - The "Add Bookmark" button is moved to the header bar, + and the page will show a ribbon when bookmarked. + - Removed "turn page on tap"; use swiping instead. + - Removed option for skeuomorphic shadows. + - Removed experimental traditional titlebar option. + * Book rendering: + - It no longer loads the entire file into memory, + greatly reducing startup time and memory usage, + and it no longer loads every item in the TOC, + further improving startup time. + - Reloading now properly reloads the file, rather than merely + re-rendering. + - Mobipocket and Kindle files are no longer extracted on disk; + they are processed entirely in memory. + - Mobipocket files are now divided into sections at + tags, which greatly improves performance + as it no longer requires rendering the whole book at once. + Unfortunately this also means existing annotations for + this format will not be displayed correctly. + - When a page is not valid XHTML, it will be processed as HTML. + - It no longer tries to override fonts with CSS. Instead, + you can now configure the default serif, sans-serif, + and monospace fonts, as well as setting the minimum font size. + - Added support for obfuscated fonts. + - Added support for user stylesheet. + - FB2: fixed infinite recursion bug (#935) and comments + are now correctly ignored. + - Added experimental support for PDF files. + - Removed support for CBR, CBT, and CB7 files + (CBZ is still supported). + * Layout: + - Paginated mode now has animation and 1:1 touchscreen + and touchpad swipe gestures. + - Paginated mode supports more than two columns. + The number of columns is controlled by a maximum width + setting. As the window gets wider, it will add more columns + to prevent lines from getting too long. + - Margins are now relative to the viewport size. + - It is now possible to configure both max width and max height. + - The page reflows faster when resizing, and reliably stays + at the same location without flashing. + - Switching between paginated and scrolled layouts is faster + and can be done with a shortcut (Ctrl+M). + - Removed continuous scrolling mode, as the new renderer does + not support it (yet). + * Locations: + - Locations are now calculated from raw byte size instead + of character count. The progress slider and reading time + estimates are available instantly when you first open a book, + and locations are no longer cached. Old .json files in the + cache directory can be deleted. + - The progress slider now turns pages as you drag, + and can be used with keyboard and mouse wheel. + - Page-list and landmarks are now supported and can be + accessed from the location popover. + * Find in book: + - Results are now shown in the sidebar. + - Added option to ignore diacritics and to match whole words only. + - Added shortcuts for going to next and previous matches + (Ctrl+G and Ctrl+Shift+G). + * Image viewer: + - Images are opened with double click by default; + removed options for single, right, and middle click. + - Images are now copied and saved in their original format + (previously, they were always converted to PNG). + * Narration: + - Text-to-speech now uses Speech Dispatcher, + and supports pausing, skipping, word highlighting, + SSML, and speed and pitch controls. + - Added support for EPUB Media Overlays. + * Copying: + - Selected text can now be copied with HTML formatting. + - Added "Copy with Citation", which adds the author and title + info to the copied text. + - Added "Copy Identifier", which copies the CFI of + the text fragment. + * Security: + - The WebView no longer has unlimited file access. + * Other changes: + - Added underline option for annotations. + - Annotations are now saved with timestamps. + - Added the ability to print chapters and selections. + - WebKit's inspector is always enabled, and can be accessed + from the menu, or by pressing F12. + * Added BuildRequires: + - gtk4 + - libadwaita + - webkitgtk-6.0 + - desktop-file-utils + ------------------------------------------------------------------- Fri Jan 14 16:11:40 UTC 2022 - Bjørn Lie diff --git a/foliate.obsinfo b/foliate.obsinfo index 7594ddf..65d6f50 100644 --- a/foliate.obsinfo +++ b/foliate.obsinfo @@ -1,4 +1,4 @@ name: foliate -version: 2.6.4 -mtime: 1642076606 -commit: c16a24c14a8b399267bca2130bf54661e930404b +version: 3.0.0 +mtime: 1699807968 +commit: 5d6571ebf939ecb66d4b147bbcff51ec40f7d1e5 diff --git a/foliate.spec b/foliate.spec index 1bf88ac..e7cb87c 100644 --- a/foliate.spec +++ b/foliate.spec @@ -1,7 +1,7 @@ # # spec file for package foliate # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,25 +16,29 @@ # -%global __requires_exclude typelib(\\(Handy\\) = 0.0|\\(Tracker\\)) %define oname com.github.johnfactotum.Foliate Name: foliate -Version: 2.6.4 +Version: 3.0.0 Release: 0 Summary: A GTK eBook reader License: GPL-3.0-only Group: Productivity/Office/Other URL: https://johnfactotum.github.io/foliate/ Source: %{name}-%{version}.tar.gz - +# PATCH-FIX-OPENSUSE foliate-fix-export-of-incorrect-dep-Adw.patch -- Dependencies are not exported correctly +Patch0: foliate-fix-export-of-incorrect-dep-Adw.patch +BuildRequires: desktop-file-utils BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: gobject-introspection BuildRequires: hicolor-icon-theme BuildRequires: meson BuildRequires: pkgconfig -BuildRequires: pkgconfig(gjs-1.0) >= 1.52 +BuildRequires: pkgconfig(gjs-1.0) >= 1.76 BuildRequires: pkgconfig(glib-2.0) +BuildRequires: pkgconfig(gtk4) >= 4.12 +BuildRequires: pkgconfig(libadwaita-1) >= 1.4 +BuildRequires: pkgconfig(webkitgtk-6.0) Requires: gjs BuildArch: noarch @@ -55,27 +59,18 @@ A GTK eBook viewer, built with GJS and Epub.js. chmod a-x README.md COPYING find %{buildroot}/%{_datadir} -type f -executable -exec chmod -x "{}" + - -chmod a-x %{buildroot}/%{_datadir}/com.github.johnfactotum.Foliate/assets/KindleUnpack/* - -pushd %{buildroot}%{_datadir}/com.github.johnfactotum.Foliate/assets/KindleUnpack/ -sed -i -e '/^#!/, 1d' *.py -popd %fdupes %{buildroot}/%{_datadir}/%{oname} %find_lang %{oname} --with-gnome -ln -sr %{buildroot}/%{_bindir}/%{oname} %{buildroot}/%{_bindir}/%{name} - %files %license COPYING %doc README.md -%{_bindir}/%{oname} %{_bindir}/%{name} -%{_datadir}/applications/com.github.johnfactotum.Foliate.desktop -%{_datadir}/com.github.johnfactotum.Foliate +%{_datadir}/applications/%{oname}.desktop +%{_datadir}/%{oname} %{_datadir}/glib-2.0/schemas/ -%{_datadir}/metainfo/com.github.johnfactotum.Foliate.metainfo.xml +%{_datadir}/metainfo/%{oname}.metainfo.xml %{_datadir}/icons/hicolor/*/apps/* %files lang -f %{oname}.lang