Browse Source

updted sigil-vl.spec

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@2727 ec354946-7b23-47d6-9f5a-488ba84defc7
munepi 13 years ago
parent
commit
6348cd7f5a
1 changed files with 21 additions and 8 deletions
  1. 21 8
      s/sigil/sigil-vl.spec

+ 21 - 8
s/sigil/sigil-vl.spec

@@ -3,8 +3,8 @@
 %define _qt4_qmake		%{_libdir}/qt4/bin/qmake
 
 Name:		sigil
-Version:	0.2.4
-Release:	2%{?_dist_release}
+Version:	0.3.4
+Release:	1%{?_dist_release}
 Summary:	A WYSIWYG ebook editor
 Summary(ja):	WYSIWYG 電子書籍エディタ
 License:	GPLv3
@@ -18,17 +18,20 @@ Source10:	sigil.desktop
 Patch0:		sigil-0.2.2-fix-format-string.patch
 # 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.
-Patch1:		sigil-0.2.4-use-system-libs.patch
+Patch1:		sigil-0.3.4-use-system-libs-vine.patch
 
 BuildRequires:  desktop-file-utils
 BuildRequires:	unzip
 BuildRequires:	zlib-devel
 BuildRequires:	bzip2-devel
 BuildRequires:	cmake >= 2.6.0
-BuildRequires:	qt4-devel >= 4.6.0
+BuildRequires:	qt4-devel >= 4.7.0
 BuildRequires:	libboost-devel
 BuildRequires:	libboost-thread
 BuildRequires:	libboost-date-time
+BuildRequires:	libboost-filesystem
+BuildRequires:	libboost-regex
+#BuildRequires:	xerces-c-devel
 
 BuildRoot: 	%{_tmppath}/%{name}-%{version}-root
 
@@ -37,11 +40,11 @@ Vendor:		Project Vine
 Packager:	munepi
 
 %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.
 
 %description -l ja
-Sigil はマルチプラットフォームに対応した WYSIWYG 電子書籍エディタです。
+Sigil はオープンソース WYSIWYG 電子書籍エディタです。
 ePub 形式の電子書籍を編集するように設計されています。
 
 
@@ -50,18 +53,20 @@ ePub 形式の電子書籍を編集するように設計されています。
 %patch0 -p0 -b .format-string
 %patch1 -p1 -b .system-libs
 
+#%__rm -fr src/BoostParts
 # fix end of line encoding for the docs:
 %__sed -i 's/\r//' ChangeLog.txt README.txt COPYING.txt
 
 %build
 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
 # fails otherwise (they contain undefined symbols), and making them shared
 # libs wouldn't make sense anyway (they are not shared by anything else)
 # - Anssi 06/2010
 %__cmake -G "Unix Makefiles" \
+    -DBUILD_SHARED_LIBS:BOOL=OFF -DBUILD_STATIC_LIBS:BOOL=ON \
     -DCMAKE_BUILD_TYPE=Release \
     -DCMAKE_INSTALL_PREFIX=%{_prefix} \
     -DLIB_INSTALL_DIR:PATH=%{_libdir} \
@@ -75,11 +80,15 @@ unset QTDIR || : ; . /etc/profile.d/qt4.sh
 %__rm -rf %{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
 for i in 16 32 48 128 256 512; do
     [ -f src/Sigil/Resource_Files/icon/app_icon_${i}.png ] || exit 1
     %__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
 
 # create a .desktop file:
@@ -115,6 +124,10 @@ update-desktop-database &> /dev/null || :
 %{_datadir}/icons/hicolor/*/apps/*.png
 
 %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
 - rebuilt with current libboost