sigil/sigil.spec

168 lines
5.9 KiB
RPMSpec
Raw Normal View History

#
# spec file for package sigil
#
Accepting request 562310 from home:ecsos - update to 0.9.9 * Bug Fixes - Add python_3.5_fixes3.patch to Python build and update build docs on OSX to fix missing symbols - Fix crash caused by Preview holding pointer to user removed resource when front tab is non-html resource - Fix crash in FlowTab destructor due to re-entering flowtab during Syntax Highlighting and signals - Fix issue with file icons disappearing when reordering in Book Browser (commit ecb56b1f) - Fix missing epub3 Manifest cover-image property setting/unsetting with BookBrowser - Fix issue where cancelling the SaveAs dialog disconnected an existing epub from its saved path - Fix assertion error in sigil-gumbo when handling extraneous script end tags - Apply multiple fixes for gumbo from upstream - Fix segfault in Split at Cursor when not an html file - Make sure Add Cover tool properly handles existing manifest cover properties in EPUB3s - Correct error dialog to say “Sigil may need to close.” - Prevent Images and Misc items from being dragged to the Text folder in Book Browser (commit 30bb96d) - Fix Linux bug that prevents rich text from other programs being pasted into Book View (issue #320) - Fix bug where index entries inside em and dfn tags were ignored during index generation - Fix bug on Windows in spell checking when smart right single quotes are used for apostrophes - Fix bug in simple well-formed check to handle generic xml processing instructions - Fix bug in epub3 MetaEditor with title-type and collection-type properties - Fix plugin code to prevent book href vs manifest id clashes - Fix bug in Plugin Runner to allow it to delete non-manifested files properly - Fix bug in SourceUpdates to handle properly handle css properties with multiple urls - Fix bugs in well-formed check to better handle missing doctypes * New Features - Add SIGIL_DISABLE_CURSOR_BLINK environment variable to disable text cursor to aid Accessibility on OSX - Better use semantic information (guide types and Landmarks) to allow the user finer control of index generation - Attempt to improve Metadata Editor placeholder text to help beginners - Preview Window Title bar will now show height and width of the Preview Window - Allow users to limit/disable clipboard history saving via General Preferences - Convert br tags in header text to linebreaks for toc/ncx/nav generation routines - Support spell checking of words with numbers controlled by Preference settings - Add two additional Quick Lauch Icons for Plugins - Drop Patch sigil-version.patch, because right version is now in upstream OBS-URL: https://build.opensuse.org/request/show/562310 OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/sigil?expand=0&rev=18
2018-01-07 13:20:36 +01:00
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: sigil
Accepting request 629414 from home:ecsos - update to 0.9.10 * Bug Fixes - Fix signal handling to prevent double launch of plugins immediately after plugin installed - Fixed incorrect named entity tooltips for many of the Insert-> Special Characters - Fixed lack of recognition of woff2 fonts inside Sigil and for plugins - Fix segfault when .xml is first file in BookBrowser and add new html or split at cursor is invoked - Fix bug that allowed multiple audio/video tabs of the same resource to be opened - Fix plugin related bug when adding/removing last xhtml file - Fix Text Direction setting inside body to use structural dir attribute under epub3 - Fix duplicate group-position property in epub3 MetaData Editor - Use absolute path references when first opening Sigil with an ebook so that Open Recent works better - Fix "issue" in handling self-closing script tags in head (similar issue that we had with self-closing title tags) - Fix issue converting Qt Strings to their Python equivalent when outside the BMP - Fix issue with trying to add existing html files when names clash due to case insensitive file systems - Fix crash bug after styling text in BookView and immediately going to CodeView without moving cursor - Fix crash bugs after deleting resources contained in a Report in the BookBrowser - Fix bug that destroys nav if left in unparseable state by user even temporarily - Fix bug that moved cursor to beginning of tag block when save is done in CodeView * New Features - allow plugins to supply their own icon (plugin.png 48x48) for use on the Quick Launch Toolbar icons - extend plugin interface to include the status of the epub inside Sigil (modified or saved) - extend plugin interface to include the path to the saved epub file or the null string if never saved - extend Insert->Special Characters to include both a Greek letter panel and a mathematical symbol panel - add support for calibre:series and calibre:series_index to Metadata Editor for epub2 - add support for calibre:title_sort to Metadata Editor for epub2 - add support for clicking internal links in Preview to load the proper destination tab - add support for loading Qt's base translation files if present. Allows buttons on native qt dialogs to - be translated (Windows users may need to manually copy newer qtbase_xx.qm files to Sigil's translation - directory if they didn't exist in Qt5.6.2) - allow user to add custom css rules to Preview/Book View by creating a file called "custom_preview_style.css" - in the Sigil preferences folder (not responsible for custom css and ebook css fighting with each other) - Drop sigil-fix_deprecated_macro.patch because now in upstream. OBS-URL: https://build.opensuse.org/request/show/629414 OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/sigil?expand=0&rev=22
2018-08-15 16:43:28 +02:00
Version: 0.9.10
Release: 0
Summary: WYSIWYG Ebook Editor
License: GPL-3.0-only
Group: Productivity/Other
Url: http://sigil-ebook.com/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: https://github.com/Sigil-Ebook/Sigil/archive/%{version}.tar.gz
Accepting request 629414 from home:ecsos - update to 0.9.10 * Bug Fixes - Fix signal handling to prevent double launch of plugins immediately after plugin installed - Fixed incorrect named entity tooltips for many of the Insert-> Special Characters - Fixed lack of recognition of woff2 fonts inside Sigil and for plugins - Fix segfault when .xml is first file in BookBrowser and add new html or split at cursor is invoked - Fix bug that allowed multiple audio/video tabs of the same resource to be opened - Fix plugin related bug when adding/removing last xhtml file - Fix Text Direction setting inside body to use structural dir attribute under epub3 - Fix duplicate group-position property in epub3 MetaData Editor - Use absolute path references when first opening Sigil with an ebook so that Open Recent works better - Fix "issue" in handling self-closing script tags in head (similar issue that we had with self-closing title tags) - Fix issue converting Qt Strings to their Python equivalent when outside the BMP - Fix issue with trying to add existing html files when names clash due to case insensitive file systems - Fix crash bug after styling text in BookView and immediately going to CodeView without moving cursor - Fix crash bugs after deleting resources contained in a Report in the BookBrowser - Fix bug that destroys nav if left in unparseable state by user even temporarily - Fix bug that moved cursor to beginning of tag block when save is done in CodeView * New Features - allow plugins to supply their own icon (plugin.png 48x48) for use on the Quick Launch Toolbar icons - extend plugin interface to include the status of the epub inside Sigil (modified or saved) - extend plugin interface to include the path to the saved epub file or the null string if never saved - extend Insert->Special Characters to include both a Greek letter panel and a mathematical symbol panel - add support for calibre:series and calibre:series_index to Metadata Editor for epub2 - add support for calibre:title_sort to Metadata Editor for epub2 - add support for clicking internal links in Preview to load the proper destination tab - add support for loading Qt's base translation files if present. Allows buttons on native qt dialogs to - be translated (Windows users may need to manually copy newer qtbase_xx.qm files to Sigil's translation - directory if they didn't exist in Qt5.6.2) - allow user to add custom css rules to Preview/Book View by creating a file called "custom_preview_style.css" - in the Sigil preferences folder (not responsible for custom css and ebook css fighting with each other) - Drop sigil-fix_deprecated_macro.patch because now in upstream. OBS-URL: https://build.opensuse.org/request/show/629414 OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/sigil?expand=0&rev=22
2018-08-15 16:43:28 +02:00
Source1: https://github.com/Sigil-Ebook/Sigil/raw/master/docs/Sigil_User_Guide.epub
Source2: %{name}.desktop
# PATCH-FIX-OPENSUSE Disabled __DATE__ and __TIME__ which is replaced later in pre section
Patch0: %{name}-gt-0.9.0-Dialogs-About.cpp.patch
BuildRequires: boost-devel
Accepting request 562310 from home:ecsos - update to 0.9.9 * Bug Fixes - Add python_3.5_fixes3.patch to Python build and update build docs on OSX to fix missing symbols - Fix crash caused by Preview holding pointer to user removed resource when front tab is non-html resource - Fix crash in FlowTab destructor due to re-entering flowtab during Syntax Highlighting and signals - Fix issue with file icons disappearing when reordering in Book Browser (commit ecb56b1f) - Fix missing epub3 Manifest cover-image property setting/unsetting with BookBrowser - Fix issue where cancelling the SaveAs dialog disconnected an existing epub from its saved path - Fix assertion error in sigil-gumbo when handling extraneous script end tags - Apply multiple fixes for gumbo from upstream - Fix segfault in Split at Cursor when not an html file - Make sure Add Cover tool properly handles existing manifest cover properties in EPUB3s - Correct error dialog to say “Sigil may need to close.” - Prevent Images and Misc items from being dragged to the Text folder in Book Browser (commit 30bb96d) - Fix Linux bug that prevents rich text from other programs being pasted into Book View (issue #320) - Fix bug where index entries inside em and dfn tags were ignored during index generation - Fix bug on Windows in spell checking when smart right single quotes are used for apostrophes - Fix bug in simple well-formed check to handle generic xml processing instructions - Fix bug in epub3 MetaEditor with title-type and collection-type properties - Fix plugin code to prevent book href vs manifest id clashes - Fix bug in Plugin Runner to allow it to delete non-manifested files properly - Fix bug in SourceUpdates to handle properly handle css properties with multiple urls - Fix bugs in well-formed check to better handle missing doctypes * New Features - Add SIGIL_DISABLE_CURSOR_BLINK environment variable to disable text cursor to aid Accessibility on OSX - Better use semantic information (guide types and Landmarks) to allow the user finer control of index generation - Attempt to improve Metadata Editor placeholder text to help beginners - Preview Window Title bar will now show height and width of the Preview Window - Allow users to limit/disable clipboard history saving via General Preferences - Convert br tags in header text to linebreaks for toc/ncx/nav generation routines - Support spell checking of words with numbers controlled by Preference settings - Add two additional Quick Lauch Icons for Plugins - Drop Patch sigil-version.patch, because right version is now in upstream OBS-URL: https://build.opensuse.org/request/show/562310 OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/sigil?expand=0&rev=18
2018-01-07 13:20:36 +01:00
BuildRequires: cmake >= 3.0
BuildRequires: dos2unix
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: hunspell-devel
BuildRequires: libqt5-qtbase-devel >= 5.4.2
BuildRequires: libqt5-qtlocation-devel >= 5.4.2
BuildRequires: libstdc++-devel
BuildRequires: libxerces-c-devel
Accepting request 562310 from home:ecsos - update to 0.9.9 * Bug Fixes - Add python_3.5_fixes3.patch to Python build and update build docs on OSX to fix missing symbols - Fix crash caused by Preview holding pointer to user removed resource when front tab is non-html resource - Fix crash in FlowTab destructor due to re-entering flowtab during Syntax Highlighting and signals - Fix issue with file icons disappearing when reordering in Book Browser (commit ecb56b1f) - Fix missing epub3 Manifest cover-image property setting/unsetting with BookBrowser - Fix issue where cancelling the SaveAs dialog disconnected an existing epub from its saved path - Fix assertion error in sigil-gumbo when handling extraneous script end tags - Apply multiple fixes for gumbo from upstream - Fix segfault in Split at Cursor when not an html file - Make sure Add Cover tool properly handles existing manifest cover properties in EPUB3s - Correct error dialog to say “Sigil may need to close.” - Prevent Images and Misc items from being dragged to the Text folder in Book Browser (commit 30bb96d) - Fix Linux bug that prevents rich text from other programs being pasted into Book View (issue #320) - Fix bug where index entries inside em and dfn tags were ignored during index generation - Fix bug on Windows in spell checking when smart right single quotes are used for apostrophes - Fix bug in simple well-formed check to handle generic xml processing instructions - Fix bug in epub3 MetaEditor with title-type and collection-type properties - Fix plugin code to prevent book href vs manifest id clashes - Fix bug in Plugin Runner to allow it to delete non-manifested files properly - Fix bug in SourceUpdates to handle properly handle css properties with multiple urls - Fix bugs in well-formed check to better handle missing doctypes * New Features - Add SIGIL_DISABLE_CURSOR_BLINK environment variable to disable text cursor to aid Accessibility on OSX - Better use semantic information (guide types and Landmarks) to allow the user finer control of index generation - Attempt to improve Metadata Editor placeholder text to help beginners - Preview Window Title bar will now show height and width of the Preview Window - Allow users to limit/disable clipboard history saving via General Preferences - Convert br tags in header text to linebreaks for toc/ncx/nav generation routines - Support spell checking of words with numbers controlled by Preference settings - Add two additional Quick Lauch Icons for Plugins - Drop Patch sigil-version.patch, because right version is now in upstream OBS-URL: https://build.opensuse.org/request/show/562310 OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/sigil?expand=0&rev=18
2018-01-07 13:20:36 +01:00
BuildRequires: libxml2-devel
BuildRequires: libxslt-devel
BuildRequires: make
Accepting request 562310 from home:ecsos - update to 0.9.9 * Bug Fixes - Add python_3.5_fixes3.patch to Python build and update build docs on OSX to fix missing symbols - Fix crash caused by Preview holding pointer to user removed resource when front tab is non-html resource - Fix crash in FlowTab destructor due to re-entering flowtab during Syntax Highlighting and signals - Fix issue with file icons disappearing when reordering in Book Browser (commit ecb56b1f) - Fix missing epub3 Manifest cover-image property setting/unsetting with BookBrowser - Fix issue where cancelling the SaveAs dialog disconnected an existing epub from its saved path - Fix assertion error in sigil-gumbo when handling extraneous script end tags - Apply multiple fixes for gumbo from upstream - Fix segfault in Split at Cursor when not an html file - Make sure Add Cover tool properly handles existing manifest cover properties in EPUB3s - Correct error dialog to say “Sigil may need to close.” - Prevent Images and Misc items from being dragged to the Text folder in Book Browser (commit 30bb96d) - Fix Linux bug that prevents rich text from other programs being pasted into Book View (issue #320) - Fix bug where index entries inside em and dfn tags were ignored during index generation - Fix bug on Windows in spell checking when smart right single quotes are used for apostrophes - Fix bug in simple well-formed check to handle generic xml processing instructions - Fix bug in epub3 MetaEditor with title-type and collection-type properties - Fix plugin code to prevent book href vs manifest id clashes - Fix bug in Plugin Runner to allow it to delete non-manifested files properly - Fix bug in SourceUpdates to handle properly handle css properties with multiple urls - Fix bugs in well-formed check to better handle missing doctypes * New Features - Add SIGIL_DISABLE_CURSOR_BLINK environment variable to disable text cursor to aid Accessibility on OSX - Better use semantic information (guide types and Landmarks) to allow the user finer control of index generation - Attempt to improve Metadata Editor placeholder text to help beginners - Preview Window Title bar will now show height and width of the Preview Window - Allow users to limit/disable clipboard history saving via General Preferences - Convert br tags in header text to linebreaks for toc/ncx/nav generation routines - Support spell checking of words with numbers controlled by Preference settings - Add two additional Quick Lauch Icons for Plugins - Drop Patch sigil-version.patch, because right version is now in upstream OBS-URL: https://build.opensuse.org/request/show/562310 OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/sigil?expand=0&rev=18
2018-01-07 13:20:36 +01:00
BuildRequires: pcre-devel
BuildRequires: python3-devel >= 3.4
BuildRequires: unzip
BuildRequires: update-desktop-files
BuildRequires: zlib-devel
Accepting request 562310 from home:ecsos - update to 0.9.9 * Bug Fixes - Add python_3.5_fixes3.patch to Python build and update build docs on OSX to fix missing symbols - Fix crash caused by Preview holding pointer to user removed resource when front tab is non-html resource - Fix crash in FlowTab destructor due to re-entering flowtab during Syntax Highlighting and signals - Fix issue with file icons disappearing when reordering in Book Browser (commit ecb56b1f) - Fix missing epub3 Manifest cover-image property setting/unsetting with BookBrowser - Fix issue where cancelling the SaveAs dialog disconnected an existing epub from its saved path - Fix assertion error in sigil-gumbo when handling extraneous script end tags - Apply multiple fixes for gumbo from upstream - Fix segfault in Split at Cursor when not an html file - Make sure Add Cover tool properly handles existing manifest cover properties in EPUB3s - Correct error dialog to say “Sigil may need to close.” - Prevent Images and Misc items from being dragged to the Text folder in Book Browser (commit 30bb96d) - Fix Linux bug that prevents rich text from other programs being pasted into Book View (issue #320) - Fix bug where index entries inside em and dfn tags were ignored during index generation - Fix bug on Windows in spell checking when smart right single quotes are used for apostrophes - Fix bug in simple well-formed check to handle generic xml processing instructions - Fix bug in epub3 MetaEditor with title-type and collection-type properties - Fix plugin code to prevent book href vs manifest id clashes - Fix bug in Plugin Runner to allow it to delete non-manifested files properly - Fix bug in SourceUpdates to handle properly handle css properties with multiple urls - Fix bugs in well-formed check to better handle missing doctypes * New Features - Add SIGIL_DISABLE_CURSOR_BLINK environment variable to disable text cursor to aid Accessibility on OSX - Better use semantic information (guide types and Landmarks) to allow the user finer control of index generation - Attempt to improve Metadata Editor placeholder text to help beginners - Preview Window Title bar will now show height and width of the Preview Window - Allow users to limit/disable clipboard history saving via General Preferences - Convert br tags in header text to linebreaks for toc/ncx/nav generation routines - Support spell checking of words with numbers controlled by Preference settings - Add two additional Quick Lauch Icons for Plugins - Drop Patch sigil-version.patch, because right version is now in upstream OBS-URL: https://build.opensuse.org/request/show/562310 OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/sigil?expand=0&rev=18
2018-01-07 13:20:36 +01:00
BuildRequires: pkgconfig(Qt5Concurrent)
BuildRequires: pkgconfig(Qt5Multimedia)
BuildRequires: pkgconfig(Qt5PrintSupport)
BuildRequires: pkgconfig(Qt5Svg)
BuildRequires: pkgconfig(Qt5UiTools)
BuildRequires: pkgconfig(Qt5WebChannel)
BuildRequires: pkgconfig(Qt5WebKit)
BuildRequires: pkgconfig(Qt5WebKitWidgets)
BuildRequires: pkgconfig(Qt5Xml)
BuildRequires: pkgconfig(Qt5XmlPatterns)
# not need for build, only check for exists
BuildRequires: python3-html5lib
Accepting request 562310 from home:ecsos - update to 0.9.9 * Bug Fixes - Add python_3.5_fixes3.patch to Python build and update build docs on OSX to fix missing symbols - Fix crash caused by Preview holding pointer to user removed resource when front tab is non-html resource - Fix crash in FlowTab destructor due to re-entering flowtab during Syntax Highlighting and signals - Fix issue with file icons disappearing when reordering in Book Browser (commit ecb56b1f) - Fix missing epub3 Manifest cover-image property setting/unsetting with BookBrowser - Fix issue where cancelling the SaveAs dialog disconnected an existing epub from its saved path - Fix assertion error in sigil-gumbo when handling extraneous script end tags - Apply multiple fixes for gumbo from upstream - Fix segfault in Split at Cursor when not an html file - Make sure Add Cover tool properly handles existing manifest cover properties in EPUB3s - Correct error dialog to say “Sigil may need to close.” - Prevent Images and Misc items from being dragged to the Text folder in Book Browser (commit 30bb96d) - Fix Linux bug that prevents rich text from other programs being pasted into Book View (issue #320) - Fix bug where index entries inside em and dfn tags were ignored during index generation - Fix bug on Windows in spell checking when smart right single quotes are used for apostrophes - Fix bug in simple well-formed check to handle generic xml processing instructions - Fix bug in epub3 MetaEditor with title-type and collection-type properties - Fix plugin code to prevent book href vs manifest id clashes - Fix bug in Plugin Runner to allow it to delete non-manifested files properly - Fix bug in SourceUpdates to handle properly handle css properties with multiple urls - Fix bugs in well-formed check to better handle missing doctypes * New Features - Add SIGIL_DISABLE_CURSOR_BLINK environment variable to disable text cursor to aid Accessibility on OSX - Better use semantic information (guide types and Landmarks) to allow the user finer control of index generation - Attempt to improve Metadata Editor placeholder text to help beginners - Preview Window Title bar will now show height and width of the Preview Window - Allow users to limit/disable clipboard history saving via General Preferences - Convert br tags in header text to linebreaks for toc/ncx/nav generation routines - Support spell checking of words with numbers controlled by Preference settings - Add two additional Quick Lauch Icons for Plugins - Drop Patch sigil-version.patch, because right version is now in upstream OBS-URL: https://build.opensuse.org/request/show/562310 OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/sigil?expand=0&rev=18
2018-01-07 13:20:36 +01:00
BuildRequires: python3-lxml
BuildRequires: python3-six
BuildRequires: python3-tk
#BuildRequires: python3-regex
BuildRequires: python3-Pillow
BuildRequires: python3-cssselect
Accepting request 562310 from home:ecsos - update to 0.9.9 * Bug Fixes - Add python_3.5_fixes3.patch to Python build and update build docs on OSX to fix missing symbols - Fix crash caused by Preview holding pointer to user removed resource when front tab is non-html resource - Fix crash in FlowTab destructor due to re-entering flowtab during Syntax Highlighting and signals - Fix issue with file icons disappearing when reordering in Book Browser (commit ecb56b1f) - Fix missing epub3 Manifest cover-image property setting/unsetting with BookBrowser - Fix issue where cancelling the SaveAs dialog disconnected an existing epub from its saved path - Fix assertion error in sigil-gumbo when handling extraneous script end tags - Apply multiple fixes for gumbo from upstream - Fix segfault in Split at Cursor when not an html file - Make sure Add Cover tool properly handles existing manifest cover properties in EPUB3s - Correct error dialog to say “Sigil may need to close.” - Prevent Images and Misc items from being dragged to the Text folder in Book Browser (commit 30bb96d) - Fix Linux bug that prevents rich text from other programs being pasted into Book View (issue #320) - Fix bug where index entries inside em and dfn tags were ignored during index generation - Fix bug on Windows in spell checking when smart right single quotes are used for apostrophes - Fix bug in simple well-formed check to handle generic xml processing instructions - Fix bug in epub3 MetaEditor with title-type and collection-type properties - Fix plugin code to prevent book href vs manifest id clashes - Fix bug in Plugin Runner to allow it to delete non-manifested files properly - Fix bug in SourceUpdates to handle properly handle css properties with multiple urls - Fix bugs in well-formed check to better handle missing doctypes * New Features - Add SIGIL_DISABLE_CURSOR_BLINK environment variable to disable text cursor to aid Accessibility on OSX - Better use semantic information (guide types and Landmarks) to allow the user finer control of index generation - Attempt to improve Metadata Editor placeholder text to help beginners - Preview Window Title bar will now show height and width of the Preview Window - Allow users to limit/disable clipboard history saving via General Preferences - Convert br tags in header text to linebreaks for toc/ncx/nav generation routines - Support spell checking of words with numbers controlled by Preference settings - Add two additional Quick Lauch Icons for Plugins - Drop Patch sigil-version.patch, because right version is now in upstream OBS-URL: https://build.opensuse.org/request/show/562310 OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/sigil?expand=0&rev=18
2018-01-07 13:20:36 +01:00
BuildRequires: python3-cssutils
#BuildRequires: python3-chardet
Requires: python3-html5lib
Accepting request 562310 from home:ecsos - update to 0.9.9 * Bug Fixes - Add python_3.5_fixes3.patch to Python build and update build docs on OSX to fix missing symbols - Fix crash caused by Preview holding pointer to user removed resource when front tab is non-html resource - Fix crash in FlowTab destructor due to re-entering flowtab during Syntax Highlighting and signals - Fix issue with file icons disappearing when reordering in Book Browser (commit ecb56b1f) - Fix missing epub3 Manifest cover-image property setting/unsetting with BookBrowser - Fix issue where cancelling the SaveAs dialog disconnected an existing epub from its saved path - Fix assertion error in sigil-gumbo when handling extraneous script end tags - Apply multiple fixes for gumbo from upstream - Fix segfault in Split at Cursor when not an html file - Make sure Add Cover tool properly handles existing manifest cover properties in EPUB3s - Correct error dialog to say “Sigil may need to close.” - Prevent Images and Misc items from being dragged to the Text folder in Book Browser (commit 30bb96d) - Fix Linux bug that prevents rich text from other programs being pasted into Book View (issue #320) - Fix bug where index entries inside em and dfn tags were ignored during index generation - Fix bug on Windows in spell checking when smart right single quotes are used for apostrophes - Fix bug in simple well-formed check to handle generic xml processing instructions - Fix bug in epub3 MetaEditor with title-type and collection-type properties - Fix plugin code to prevent book href vs manifest id clashes - Fix bug in Plugin Runner to allow it to delete non-manifested files properly - Fix bug in SourceUpdates to handle properly handle css properties with multiple urls - Fix bugs in well-formed check to better handle missing doctypes * New Features - Add SIGIL_DISABLE_CURSOR_BLINK environment variable to disable text cursor to aid Accessibility on OSX - Better use semantic information (guide types and Landmarks) to allow the user finer control of index generation - Attempt to improve Metadata Editor placeholder text to help beginners - Preview Window Title bar will now show height and width of the Preview Window - Allow users to limit/disable clipboard history saving via General Preferences - Convert br tags in header text to linebreaks for toc/ncx/nav generation routines - Support spell checking of words with numbers controlled by Preference settings - Add two additional Quick Lauch Icons for Plugins - Drop Patch sigil-version.patch, because right version is now in upstream OBS-URL: https://build.opensuse.org/request/show/562310 OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/sigil?expand=0&rev=18
2018-01-07 13:20:36 +01:00
Requires: python3-lxml
Requires: python3-six
Requires: python3-tk
#Requires: python3-regex
Requires: python3-Pillow
Requires: python3-cssselect
Accepting request 562310 from home:ecsos - update to 0.9.9 * Bug Fixes - Add python_3.5_fixes3.patch to Python build and update build docs on OSX to fix missing symbols - Fix crash caused by Preview holding pointer to user removed resource when front tab is non-html resource - Fix crash in FlowTab destructor due to re-entering flowtab during Syntax Highlighting and signals - Fix issue with file icons disappearing when reordering in Book Browser (commit ecb56b1f) - Fix missing epub3 Manifest cover-image property setting/unsetting with BookBrowser - Fix issue where cancelling the SaveAs dialog disconnected an existing epub from its saved path - Fix assertion error in sigil-gumbo when handling extraneous script end tags - Apply multiple fixes for gumbo from upstream - Fix segfault in Split at Cursor when not an html file - Make sure Add Cover tool properly handles existing manifest cover properties in EPUB3s - Correct error dialog to say “Sigil may need to close.” - Prevent Images and Misc items from being dragged to the Text folder in Book Browser (commit 30bb96d) - Fix Linux bug that prevents rich text from other programs being pasted into Book View (issue #320) - Fix bug where index entries inside em and dfn tags were ignored during index generation - Fix bug on Windows in spell checking when smart right single quotes are used for apostrophes - Fix bug in simple well-formed check to handle generic xml processing instructions - Fix bug in epub3 MetaEditor with title-type and collection-type properties - Fix plugin code to prevent book href vs manifest id clashes - Fix bug in Plugin Runner to allow it to delete non-manifested files properly - Fix bug in SourceUpdates to handle properly handle css properties with multiple urls - Fix bugs in well-formed check to better handle missing doctypes * New Features - Add SIGIL_DISABLE_CURSOR_BLINK environment variable to disable text cursor to aid Accessibility on OSX - Better use semantic information (guide types and Landmarks) to allow the user finer control of index generation - Attempt to improve Metadata Editor placeholder text to help beginners - Preview Window Title bar will now show height and width of the Preview Window - Allow users to limit/disable clipboard history saving via General Preferences - Convert br tags in header text to linebreaks for toc/ncx/nav generation routines - Support spell checking of words with numbers controlled by Preference settings - Add two additional Quick Lauch Icons for Plugins - Drop Patch sigil-version.patch, because right version is now in upstream OBS-URL: https://build.opensuse.org/request/show/562310 OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/sigil?expand=0&rev=18
2018-01-07 13:20:36 +01:00
Requires: python3-cssutils
#Requires: python3-chardet
%description
Sigil is an editor for the EPUB format. It is designed for WYSIWYG
editing of EPUB files and for converting other formats to EPUB. It
also provides support for direct XHTML, CSS and XPGT editing. You can
use it to add any of the metadata entries supported by the EPUB
specification and create a hierarchical Table of Contents.
%prep
%setup -q -n Sigil-%{version}
sed -i 's/\r//' ChangeLog.txt README.md COPYING.txt
%patch0 -p 1
%{__cp} -v %{S:1} .
%{__cp} -v %{S:2} .
# rpmlint
dos2unix src/Resource_Files/python3lib/meta*.py
dos2unix src/Resource_Files/python3lib/opf_*.py
Accepting request 562310 from home:ecsos - update to 0.9.9 * Bug Fixes - Add python_3.5_fixes3.patch to Python build and update build docs on OSX to fix missing symbols - Fix crash caused by Preview holding pointer to user removed resource when front tab is non-html resource - Fix crash in FlowTab destructor due to re-entering flowtab during Syntax Highlighting and signals - Fix issue with file icons disappearing when reordering in Book Browser (commit ecb56b1f) - Fix missing epub3 Manifest cover-image property setting/unsetting with BookBrowser - Fix issue where cancelling the SaveAs dialog disconnected an existing epub from its saved path - Fix assertion error in sigil-gumbo when handling extraneous script end tags - Apply multiple fixes for gumbo from upstream - Fix segfault in Split at Cursor when not an html file - Make sure Add Cover tool properly handles existing manifest cover properties in EPUB3s - Correct error dialog to say “Sigil may need to close.” - Prevent Images and Misc items from being dragged to the Text folder in Book Browser (commit 30bb96d) - Fix Linux bug that prevents rich text from other programs being pasted into Book View (issue #320) - Fix bug where index entries inside em and dfn tags were ignored during index generation - Fix bug on Windows in spell checking when smart right single quotes are used for apostrophes - Fix bug in simple well-formed check to handle generic xml processing instructions - Fix bug in epub3 MetaEditor with title-type and collection-type properties - Fix plugin code to prevent book href vs manifest id clashes - Fix bug in Plugin Runner to allow it to delete non-manifested files properly - Fix bug in SourceUpdates to handle properly handle css properties with multiple urls - Fix bugs in well-formed check to better handle missing doctypes * New Features - Add SIGIL_DISABLE_CURSOR_BLINK environment variable to disable text cursor to aid Accessibility on OSX - Better use semantic information (guide types and Landmarks) to allow the user finer control of index generation - Attempt to improve Metadata Editor placeholder text to help beginners - Preview Window Title bar will now show height and width of the Preview Window - Allow users to limit/disable clipboard history saving via General Preferences - Convert br tags in header text to linebreaks for toc/ncx/nav generation routines - Support spell checking of words with numbers controlled by Preference settings - Add two additional Quick Lauch Icons for Plugins - Drop Patch sigil-version.patch, because right version is now in upstream OBS-URL: https://build.opensuse.org/request/show/562310 OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/sigil?expand=0&rev=18
2018-01-07 13:20:36 +01:00
find . -type f -exec sed -i -e 's|#!\/usr\/bin\/env python|#!\/usr\/bin\/python3|g' {} \;
#FIXME MANUAL UPDATE OF DATE REQUIRED HERE!!!!
# Fix "Your file uses __DATE and __TIME__ this causes the package to rebuild
# when not needed warning"
# http://sourceforge.net/tracker/?func=detail&atid=102439&aid=3314371&group_id=2439
#
# We use the current date
_date=$(date +"%Y%m%d")
_time=$(date +"%H:%M:%S")
# Change it:
find . -type f -name 'About.cpp' | xargs sed -i "s/@DATE@/$_date/;s/@TIME@/$_time/g"
%build
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
export CXXFLAGS="$CFLAGS"
cmake -G "Unix Makefiles" \
-DCMAKE_INSTALL_PREFIX=%_prefix \
-DCMAKE_BUILD_TYPE=Release .
make %{?_smp_mflags}
%install
%make_install
# create a .desktop file:
mkdir -p %{buildroot}%{_datadir}/applications
# install icons for the .desktop file
install -m644 -D src/Resource_Files/icon/app_icon_16.png %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/sigil.png
install -m644 -D src/Resource_Files/icon/app_icon_32.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/sigil.png
install -m644 -D src/Resource_Files/icon/app_icon_48.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/sigil.png
install -m644 -D src/Resource_Files/icon/app_icon_128.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/sigil.png
install -m644 -D src/Resource_Files/icon/app_icon_256.png %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/sigil.png
install -m644 %{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
%suse_update_desktop_file %name
%fdupes -s %buildroot
%files
%defattr(-,root,root)
Accepting request 629414 from home:ecsos - update to 0.9.10 * Bug Fixes - Fix signal handling to prevent double launch of plugins immediately after plugin installed - Fixed incorrect named entity tooltips for many of the Insert-> Special Characters - Fixed lack of recognition of woff2 fonts inside Sigil and for plugins - Fix segfault when .xml is first file in BookBrowser and add new html or split at cursor is invoked - Fix bug that allowed multiple audio/video tabs of the same resource to be opened - Fix plugin related bug when adding/removing last xhtml file - Fix Text Direction setting inside body to use structural dir attribute under epub3 - Fix duplicate group-position property in epub3 MetaData Editor - Use absolute path references when first opening Sigil with an ebook so that Open Recent works better - Fix "issue" in handling self-closing script tags in head (similar issue that we had with self-closing title tags) - Fix issue converting Qt Strings to their Python equivalent when outside the BMP - Fix issue with trying to add existing html files when names clash due to case insensitive file systems - Fix crash bug after styling text in BookView and immediately going to CodeView without moving cursor - Fix crash bugs after deleting resources contained in a Report in the BookBrowser - Fix bug that destroys nav if left in unparseable state by user even temporarily - Fix bug that moved cursor to beginning of tag block when save is done in CodeView * New Features - allow plugins to supply their own icon (plugin.png 48x48) for use on the Quick Launch Toolbar icons - extend plugin interface to include the status of the epub inside Sigil (modified or saved) - extend plugin interface to include the path to the saved epub file or the null string if never saved - extend Insert->Special Characters to include both a Greek letter panel and a mathematical symbol panel - add support for calibre:series and calibre:series_index to Metadata Editor for epub2 - add support for calibre:title_sort to Metadata Editor for epub2 - add support for clicking internal links in Preview to load the proper destination tab - add support for loading Qt's base translation files if present. Allows buttons on native qt dialogs to - be translated (Windows users may need to manually copy newer qtbase_xx.qm files to Sigil's translation - directory if they didn't exist in Qt5.6.2) - allow user to add custom css rules to Preview/Book View by creating a file called "custom_preview_style.css" - in the Sigil preferences folder (not responsible for custom css and ebook css fighting with each other) - Drop sigil-fix_deprecated_macro.patch because now in upstream. OBS-URL: https://build.opensuse.org/request/show/629414 OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/sigil?expand=0&rev=22
2018-08-15 16:43:28 +02:00
%doc ChangeLog.txt README.md COPYING.txt Sigil_User_Guide.epub
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%dir %{_datadir}/icons/hicolor/
%dir %{_datadir}/icons/hicolor/16x16
%dir %{_datadir}/icons/hicolor/16x16/apps
%dir %{_datadir}/icons/hicolor/32x32
%dir %{_datadir}/icons/hicolor/32x32/apps
%dir %{_datadir}/icons/hicolor/48x48
%dir %{_datadir}/icons/hicolor/48x48/apps
%dir %{_datadir}/icons/hicolor/128x128
%dir %{_datadir}/icons/hicolor/128x128/apps
%dir %{_datadir}/icons/hicolor/256x256
%dir %{_datadir}/icons/hicolor/256x256/apps
%{_datadir}/icons/hicolor/*/apps/*.png
%{_datadir}/pixmaps/*.png
%dir %{_datadir}/%name
%dir %{_datadir}/%name/translations
%{_datadir}/%{name}/translations/*
%dir %{_datadir}/%name/*dictionaries
%{_datadir}/%{name}/*dictionaries/*
%{_datadir}/%{name}/examples
%{_datadir}/%{name}/python3lib
%dir %{_datadir}/%{name}/polyfills
%{_datadir}/%{name}/polyfills/MathJax.js
%{_datadir}/%{name}/plugin_launchers
%dir /usr/lib/%name
/usr/lib/%{name}/*
%changelog