|
@@ -3,8 +3,8 @@
|
|
%define _qt4_qmake %{_libdir}/qt4/bin/qmake
|
|
%define _qt4_qmake %{_libdir}/qt4/bin/qmake
|
|
|
|
|
|
Name: sigil
|
|
Name: sigil
|
|
-Version: 0.2.4
|
|
|
|
-Release: 2%{?_dist_release}
|
|
|
|
|
|
+Version: 0.3.4
|
|
|
|
+Release: 1%{?_dist_release}
|
|
Summary: A WYSIWYG ebook editor
|
|
Summary: A WYSIWYG ebook editor
|
|
Summary(ja): WYSIWYG 電子書籍エディタ
|
|
Summary(ja): WYSIWYG 電子書籍エディタ
|
|
License: GPLv3
|
|
License: GPLv3
|
|
@@ -18,17 +18,20 @@ Source10: sigil.desktop
|
|
Patch0: sigil-0.2.2-fix-format-string.patch
|
|
Patch0: sigil-0.2.2-fix-format-string.patch
|
|
# from Anssi: this makes it use system libs instead of bundled ones. Except for
|
|
# from Anssi: this makes it use system libs instead of bundled ones. Except for
|
|
# libtidy which has some local hacks not present in system-provided libtidy.
|
|
# libtidy which has some local hacks not present in system-provided libtidy.
|
|
-Patch1: sigil-0.2.4-use-system-libs.patch
|
|
|
|
|
|
+Patch1: sigil-0.3.4-use-system-libs-vine.patch
|
|
|
|
|
|
BuildRequires: desktop-file-utils
|
|
BuildRequires: desktop-file-utils
|
|
BuildRequires: unzip
|
|
BuildRequires: unzip
|
|
BuildRequires: zlib-devel
|
|
BuildRequires: zlib-devel
|
|
BuildRequires: bzip2-devel
|
|
BuildRequires: bzip2-devel
|
|
BuildRequires: cmake >= 2.6.0
|
|
BuildRequires: cmake >= 2.6.0
|
|
-BuildRequires: qt4-devel >= 4.6.0
|
|
|
|
|
|
+BuildRequires: qt4-devel >= 4.7.0
|
|
BuildRequires: libboost-devel
|
|
BuildRequires: libboost-devel
|
|
BuildRequires: libboost-thread
|
|
BuildRequires: libboost-thread
|
|
BuildRequires: libboost-date-time
|
|
BuildRequires: libboost-date-time
|
|
|
|
+BuildRequires: libboost-filesystem
|
|
|
|
+BuildRequires: libboost-regex
|
|
|
|
+#BuildRequires: xerces-c-devel
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
@@ -37,11 +40,11 @@ Vendor: Project Vine
|
|
Packager: munepi
|
|
Packager: munepi
|
|
|
|
|
|
%description
|
|
%description
|
|
-Sigil is a multi-platform WYSIWYG ebook editor.
|
|
|
|
|
|
+Sigil is a free, open source WYSIWYG ebook editor.
|
|
It is designed to edit books in ePub format.
|
|
It is designed to edit books in ePub format.
|
|
|
|
|
|
%description -l ja
|
|
%description -l ja
|
|
-Sigil はマルチプラットフォームに対応した WYSIWYG 電子書籍エディタです。
|
|
|
|
|
|
+Sigil はオープンソース WYSIWYG 電子書籍エディタです。
|
|
ePub 形式の電子書籍を編集するように設計されています。
|
|
ePub 形式の電子書籍を編集するように設計されています。
|
|
|
|
|
|
|
|
|
|
@@ -50,18 +53,20 @@ ePub 形式の電子書籍を編集するように設計されています。
|
|
%patch0 -p0 -b .format-string
|
|
%patch0 -p0 -b .format-string
|
|
%patch1 -p1 -b .system-libs
|
|
%patch1 -p1 -b .system-libs
|
|
|
|
|
|
|
|
+#%__rm -fr src/BoostParts
|
|
# fix end of line encoding for the docs:
|
|
# fix end of line encoding for the docs:
|
|
%__sed -i 's/\r//' ChangeLog.txt README.txt COPYING.txt
|
|
%__sed -i 's/\r//' ChangeLog.txt README.txt COPYING.txt
|
|
|
|
|
|
%build
|
|
%build
|
|
unset QTDIR || : ; . /etc/profile.d/qt4.sh
|
|
unset QTDIR || : ; . /etc/profile.d/qt4.sh
|
|
|
|
|
|
-## from sigil-0.2.4-1mdv2011.0
|
|
|
|
|
|
+## from sigil-0.3.4-1mdv2011.0
|
|
# there are only internal helper libs, and they need to be static as build
|
|
# there are only internal helper libs, and they need to be static as build
|
|
# fails otherwise (they contain undefined symbols), and making them shared
|
|
# fails otherwise (they contain undefined symbols), and making them shared
|
|
# libs wouldn't make sense anyway (they are not shared by anything else)
|
|
# libs wouldn't make sense anyway (they are not shared by anything else)
|
|
# - Anssi 06/2010
|
|
# - Anssi 06/2010
|
|
%__cmake -G "Unix Makefiles" \
|
|
%__cmake -G "Unix Makefiles" \
|
|
|
|
+ -DBUILD_SHARED_LIBS:BOOL=OFF -DBUILD_STATIC_LIBS:BOOL=ON \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
|
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
|
-DLIB_INSTALL_DIR:PATH=%{_libdir} \
|
|
-DLIB_INSTALL_DIR:PATH=%{_libdir} \
|
|
@@ -75,11 +80,15 @@ unset QTDIR || : ; . /etc/profile.d/qt4.sh
|
|
%__rm -rf %{buildroot}
|
|
%__rm -rf %{buildroot}
|
|
%__make install DESTDIR=%{buildroot}
|
|
%__make install DESTDIR=%{buildroot}
|
|
|
|
|
|
|
|
+# remove unused files
|
|
|
|
+%__rm %{buildroot}%{_datadir}/pixmaps/sigil.png || exit 1
|
|
|
|
+%__rm %{buildroot}%{_datadir}/applications/sigil.desktop || exit 1
|
|
|
|
+
|
|
# install icons for the .desktop file
|
|
# install icons for the .desktop file
|
|
for i in 16 32 48 128 256 512; do
|
|
for i in 16 32 48 128 256 512; do
|
|
[ -f src/Sigil/Resource_Files/icon/app_icon_${i}.png ] || exit 1
|
|
[ -f src/Sigil/Resource_Files/icon/app_icon_${i}.png ] || exit 1
|
|
%__install -m644 -D src/Sigil/Resource_Files/icon/app_icon_${i}.png \
|
|
%__install -m644 -D src/Sigil/Resource_Files/icon/app_icon_${i}.png \
|
|
- %{buildroot}%{_datadir}/icons/hicolor/${i}x${i}/apps/sigil.png
|
|
|
|
|
|
+ %{buildroot}%{_datadir}/icons/hicolor/${i}x${i}/apps/sigil.png || exit 1
|
|
done
|
|
done
|
|
|
|
|
|
# create a .desktop file:
|
|
# create a .desktop file:
|
|
@@ -115,6 +124,10 @@ update-desktop-database &> /dev/null || :
|
|
%{_datadir}/icons/hicolor/*/apps/*.png
|
|
%{_datadir}/icons/hicolor/*/apps/*.png
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Sun Feb 20 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.3.4-1
|
|
|
|
+- new upstream release
|
|
|
|
+- added BuildRequires: libboost-filesystem, libboost-regex
|
|
|
|
+
|
|
* Fri Jan 21 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.2.4-2
|
|
* Fri Jan 21 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.2.4-2
|
|
- rebuilt with current libboost
|
|
- rebuilt with current libboost
|
|
|
|
|