SHA256
1
0
forked from pool/sigil

Accepting request 629529 from Documentation:Tools

OBS-URL: https://build.opensuse.org/request/show/629529
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sigil?expand=0&rev=5
This commit is contained in:
Dominique Leuenberger 2018-08-17 22:04:09 +00:00 committed by Git OBS Bridge
commit c5b0fa7b33
8 changed files with 83 additions and 30 deletions

2
.gitattributes vendored
View File

@ -22,4 +22,4 @@
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text
## Specific LFS patterns
Sigil_User_Guide_0_7_2.epub filter=lfs diff=lfs merge=lfs -text
Sigil_User_Guide.epub filter=lfs diff=lfs merge=lfs -text

3
0.9.10.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:294954c4c2b3f1f9348d4f1bff18edebaba44afae901be3900154778b2f877ed
size 19100153

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:12c1ace50598aef0a5e1397da3fdcd9c5ed9eba753c476d0ee5ab00a5d2d3764
size 18675046

3
Sigil_User_Guide.epub Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6d6af3abc1ee41a184f773126e1610a76fed077bfc1a5b65694588a37445a9c1
size 7232055

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:322e1732ea04849d768bfd8633ea654f547b78fbc1987f0271effe337df0fa76
size 7068751

View File

@ -1,12 +0,0 @@
diff -Pdpru Sigil-0.9.9.orig/src/CMakeLists.txt Sigil-0.9.9/src/CMakeLists.txt
--- Sigil-0.9.9.orig/src/CMakeLists.txt 2017-12-21 17:59:01.000000000 +0100
+++ Sigil-0.9.9/src/CMakeLists.txt 2018-06-11 08:04:01.700642771 +0200
@@ -684,7 +684,7 @@ if (MSVC)
endif()
target_link_libraries( ${PROJECT_NAME} ${QT_MAIN} ${HUNSPELL_LIBRARIES} ${PCRE_LIBRARIES} ${GUMBO_LIBRARIES} ${MINIZIP_LIBRARIES} ${PYTHON_LIBRARIES} )
-qt5_use_modules(${PROJECT_NAME} Widgets Xml XmlPatterns PrintSupport Svg WebKit WebKitWidgets Network Concurrent)
+target_link_libraries(${PROJECT_NAME} Qt5::Widgets Qt5::Xml Qt5::XmlPatterns Qt5::PrintSupport Qt5::Svg Qt5::WebKit Qt5::WebKitWidgets Qt5::Network Qt5::Concurrent)
#############################################################################

View File

@ -1,3 +1,71 @@
-------------------------------------------------------------------
Thu Aug 16 09:10:33 UTC 2018 - jengelh@inai.de
- Replace old %__ macros and $RPM_* shell vars.
- Use more "xargs -exec +".
-------------------------------------------------------------------
Wed Aug 15 14:14:36 UTC 2018 - ecsos@opensuse.org
- 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.
-------------------------------------------------------------------
Mon Jun 11 06:06:22 UTC 2018 - ecsos@opensuse.org

View File

@ -17,7 +17,7 @@
Name: sigil
Version: 0.9.9
Version: 0.9.10
Release: 0
Summary: WYSIWYG Ebook Editor
License: GPL-3.0-only
@ -25,12 +25,10 @@ Group: Productivity/Other
Url: http://sigil-ebook.com/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: https://github.com/Sigil-Ebook/Sigil/archive/%{version}.tar.gz
Source1: https://github.com/Sigil-Ebook/Sigil/raw/master/docs/Sigil_User_Guide_0_7_2.epub
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
# PATCH-FIX-OPENSUSE Change deprecated qt5_use_modules to target_link_libraries
Patch1: %{name}-fix_deprecated_macro.patch
BuildRequires: boost-devel
BuildRequires: cmake >= 3.0
BuildRequires: dos2unix
@ -90,13 +88,12 @@ specification and create a hierarchical Table of Contents.
%setup -q -n Sigil-%{version}
sed -i 's/\r//' ChangeLog.txt README.md COPYING.txt
%patch0 -p 1
%patch1 -p 1
%{__cp} -v %{S:1} .
%{__cp} -v %{S:2} .
cp -v %{S:1} .
cp -v %{S:2} .
# rpmlint
dos2unix src/Resource_Files/python3lib/meta*.py
dos2unix src/Resource_Files/python3lib/opf_*.py
find . -type f -exec sed -i -e 's|#!\/usr\/bin\/env python|#!\/usr\/bin\/python3|g' {} \;
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
@ -107,10 +104,10 @@ find . -type f -exec sed -i -e 's|#!\/usr\/bin\/env python|#!\/usr\/bin\/python3
_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"
find . -type f -name About.cpp -exec sed -i "s/@DATE@/$_date/;s/@TIME@/$_time/g" {} +
%build
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
export CFLAGS="%{optflags} -fno-strict-aliasing"
export CXXFLAGS="$CFLAGS"
cmake -G "Unix Makefiles" \
@ -138,7 +135,7 @@ install -m644 %{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.deskt
%files
%defattr(-,root,root)
%doc ChangeLog.txt README.md COPYING.txt Sigil_User_Guide_0_7_2.epub
%doc ChangeLog.txt README.md COPYING.txt Sigil_User_Guide.epub
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%dir %{_datadir}/icons/hicolor/