Accepting request 132063 from home:thomas-schraitle
Could be useful for us: EBook WYSYWYG editor OBS-URL: https://build.opensuse.org/request/show/132063 OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/sigil?expand=0&rev=1
This commit is contained in:
commit
6378ab6b96
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
3
Sigil-0.5.3-Code.zip
Normal file
3
Sigil-0.5.3-Code.zip
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:9525ac3885e7d3962a85e491b271fd857e8a9430e92868e1772c3bcaeb9bc778
|
||||||
|
size 12843490
|
19
sigil-Dialogs-About.cpp.patch
Normal file
19
sigil-Dialogs-About.cpp.patch
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
--- src/Sigil/Dialogs/About.cpp.bak 2012-08-30 10:09:10.000000000 +0200
|
||||||
|
+++ src/Sigil/Dialogs/About.cpp 2012-08-30 10:28:23.000000000 +0200
|
||||||
|
@@ -52,6 +52,7 @@
|
||||||
|
|
||||||
|
QDateTime About::GetUTCBuildTime()
|
||||||
|
{
|
||||||
|
+/*
|
||||||
|
QString time_string = QString::fromAscii( __TIME__ );
|
||||||
|
QString date_string = QString::fromAscii( __DATE__ );
|
||||||
|
|
||||||
|
@@ -66,6 +67,8 @@
|
||||||
|
date_match.cap( 2 ).toInt() );
|
||||||
|
|
||||||
|
return QDateTime( date, QTime::fromString( time_string, "hh:mm:ss" ) ).toUTC();
|
||||||
|
+*/
|
||||||
|
+ return QDateTime( QDate::fromString("@DATE@", "yyyyMMdd"), QTime::fromString( "@TIME@", "hh:mm:ss" ) ).toUTC();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
30
sigil.changes
Normal file
30
sigil.changes
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Aug 30 09:06:46 UTC 2012 - toms@opensuse.org
|
||||||
|
|
||||||
|
- Added sigil-Dialogs-About.cpp.patch to disable __DATE__ and __TIME_
|
||||||
|
warning message from rpmlint was:
|
||||||
|
"Your file uses __DATE and __TIME__ this causes the package to rebuild
|
||||||
|
when not needed warning"
|
||||||
|
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Aug 30 07:17:37 UTC 2012 - toms@opensuse.org
|
||||||
|
|
||||||
|
- Updated to version 0.5.3 (2012.02.25):
|
||||||
|
- Fix issue 1254: Bulk rename will stop if one name matches, context menu
|
||||||
|
needs cleanup and warnings.
|
||||||
|
- Fix issue 1268: Find/Replace all files does not search in book order,
|
||||||
|
and other issues.
|
||||||
|
- Fix issue 1266: Store user dictionary as UTF-8.
|
||||||
|
- Ensure the checkmarks in add semantic are set correctly when selecting
|
||||||
|
multiple files.
|
||||||
|
- Fix issue 1030: Don't close if canceling out of a failed save.
|
||||||
|
- Fix issue 1258: Find/Replace step by step in All HTML files is broken.
|
||||||
|
|
||||||
|
For previous changes, see ChangeLog.txt
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Aug 6 11:36:41 UTC 2011 - toms@suse.de
|
||||||
|
|
||||||
|
- First initial release 0.3.4
|
||||||
|
|
11
sigil.desktop
Normal file
11
sigil.desktop
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Encoding=UTF-8
|
||||||
|
Type=Application
|
||||||
|
Name=Sigil
|
||||||
|
GenericName=Ebook editor
|
||||||
|
Comment=WYSIWYG ebook editor
|
||||||
|
Icon=sigil
|
||||||
|
Exec=sigil %u
|
||||||
|
Terminal=false
|
||||||
|
MimeType=application/epub+zip;
|
||||||
|
Categories=Application;Qt;TextEditor;
|
117
sigil.spec
Normal file
117
sigil.spec
Normal file
@ -0,0 +1,117 @@
|
|||||||
|
#
|
||||||
|
# spec file for package sigil
|
||||||
|
#
|
||||||
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
|
# This file and all modifications and additions to the pristine
|
||||||
|
# package are under the same license as the package itself.
|
||||||
|
#
|
||||||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
Name: sigil
|
||||||
|
Summary: Multi-platform WYSIWYG Ebook Editor
|
||||||
|
Version: 0.5.3
|
||||||
|
Release: 0
|
||||||
|
License: GPLv3
|
||||||
|
Group: Productivity/Other
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
Source0: http://sigil.googlecode.com/files/Sigil-%{version}-Code.zip
|
||||||
|
Source1: %{name}.desktop
|
||||||
|
# PATCH-FIX-OPENSUSE Disabled __DATE__ and __TIME__ which is replaced later in pre section
|
||||||
|
Patch0: %{name}-Dialogs-About.cpp.patch
|
||||||
|
URL: http://code.google.com/p/sigil/
|
||||||
|
BuildRequires: make unzip
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: cmake >= 2.8.0
|
||||||
|
BuildRequires: gcc-c++
|
||||||
|
BuildRequires: libstdc++-devel
|
||||||
|
BuildRequires: libqt4-devel >= 4.7.0
|
||||||
|
BuildRequires: libQtWebKit-devel
|
||||||
|
BuildRequires: boost-devel
|
||||||
|
BuildRequires: zlib-devel
|
||||||
|
BuildRequires: update-desktop-files
|
||||||
|
|
||||||
|
|
||||||
|
%description
|
||||||
|
Sigil is a free and open source editor for the EPUB format.
|
||||||
|
It is designed for easy, WYSIWYG editing of EPUB files and for
|
||||||
|
converting other formats to EPUB. It also provides features for
|
||||||
|
advanced users, like 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 -c -n %{name}-%{version}
|
||||||
|
%{__cp} -v %{S:1} .
|
||||||
|
%patch0
|
||||||
|
sed -i 's/\r//' ChangeLog.txt README.txt COPYING.txt
|
||||||
|
|
||||||
|
#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:
|
||||||
|
sed -i "s/@DATE@/$_date/;s/@TIME@/$_time/g" src/Sigil/Dialogs/About.cpp
|
||||||
|
|
||||||
|
|
||||||
|
%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 %{?jobs:-j %jobs}
|
||||||
|
|
||||||
|
|
||||||
|
%install
|
||||||
|
%make_install
|
||||||
|
|
||||||
|
# create a .desktop file:
|
||||||
|
mkdir -p %{buildroot}%{_datadir}/applications
|
||||||
|
|
||||||
|
# install icons for the .desktop file
|
||||||
|
install -m644 -D src/Sigil/Resource_Files/icon/app_icon_16.png %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/sigil.png
|
||||||
|
install -m644 -D src/Sigil/Resource_Files/icon/app_icon_32.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/sigil.png
|
||||||
|
install -m644 -D src/Sigil/Resource_Files/icon/app_icon_48.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/sigil.png
|
||||||
|
install -m644 -D src/Sigil/Resource_Files/icon/app_icon_128.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/sigil.png
|
||||||
|
install -m644 -D src/Sigil/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)
|
||||||
|
%doc ChangeLog.txt README.txt COPYING.txt
|
||||||
|
%{_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/*
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
Loading…
Reference in New Issue
Block a user