midori-vl.spec 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. Summary: A lightweight GTK+ web browser
  2. Summary(ja): 軽量な GTK+ ウェブブラウザ
  3. Name: midori
  4. Version: 0.4.0
  5. Release: 1%{?_dist_release}
  6. Group: Applications/Internet
  7. License: LGPLv2.1+
  8. URL: http://software.twotoasts.de/?page=midori
  9. Source0: http://software.twotoasts.de/media/%{name}/%{name}-%{version}.tar.bz2
  10. #Patch0: %{name}-0.2.9-docdir.patch
  11. Patch0: fix_desktop_entry.patch
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildRequires: desktop-file-utils
  14. BuildRequires: gettext
  15. BuildRequires: libsexy-devel
  16. BuildRequires: libtool
  17. BuildRequires: libxml2-devel >= 2.6
  18. BuildRequires: perl-XML-Parser
  19. BuildRequires: WebKit-gtk-devel >= 1.1.6
  20. ## for IDN support
  21. BuildRequires: libidn-devel >= 1.0
  22. ## for Single instance
  23. BuildRequires: unique-devel >= 0.9
  24. ## for Persistent history
  25. BuildRequires: sqlite3-devel >= 3.0
  26. BuildRequires: glib2-devel >= 2.16.0
  27. BuildRequires: gtk2-devel >= 2.10.0
  28. BuildRequires: libsoup-devel >= 2.25.2
  29. ## for Icon optimizations: /usr/bin/rsvg-convert
  30. BuildRequires: librsvg2
  31. ## for User documentation
  32. BuildRequires: docutils
  33. ## for API documentation
  34. BuildRequires: gtk-doc
  35. BuildRequires: gtksourceview2-devel
  36. BuildRequires: intltool
  37. BuildRequires: libnotify-devel
  38. BuildRequires: libXScrnSaver-devel
  39. BuildRequires: vala-devel
  40. Requires: WebKit-gtk
  41. %description
  42. Midori is a lightweight web browser, and has many features expected of a
  43. modern browser, including:
  44. * Full integration with GTK+2.
  45. * Fast rendering with WebKit.
  46. * Tabs, windows and session management.
  47. * Bookmarks are stored with XBEL.
  48. * Searchbox based on OpenSearch.
  49. * Custom context menu actions.
  50. * User scripts and user styles support.
  51. * Extensible via Lua scripts.
  52. The project is currently in an early alpha state. The features are still being
  53. implemented, and some are still quite incomplete.
  54. %description -l ja
  55. Midori は軽量な Web ブラウザで、多くの機能がモダンブラウザとして期待されています。
  56. 以下の機能が含まれています。:
  57. * GTK+2 に完全に統合。
  58. * WebKit で高速なレンダリング。
  59. * タブ、ウィンドウおよびセッションの管理。
  60. * ブックマークは XBEL で格納。
  61. * OpenSearch に基づくサーチボックス。
  62. * カスタムコンテキストメニューの操作。
  63. * ユーザースクリプトとユーザースタイルをサポート。
  64. * Lua スクリプトを介して拡張可能。
  65. プロジェクトは現在初期アルファの状態にあります。
  66. 機能はまだ実装中で、一部はかなり不完全です。
  67. %package devel
  68. Summary: Development files for %{name}
  69. Summary(ja): %{name} の開発ファイル
  70. Group: Development/Libraries
  71. Requires: %{name} = %{version}-%{release}
  72. Requires: vala
  73. %description devel
  74. The %{name}-devel package contains libraries and header files for
  75. developing extensions for %{name}.
  76. %prep
  77. %setup -q
  78. #%patch0 -p1 -b .docdir
  79. %patch0 -p1
  80. %build
  81. export CFLAGS="%{optflags}"
  82. ./waf --prefix=%{_usr} \
  83. --docdir=%{_docdir}/%{name}-%{version} \
  84. --libdir=%{_libdir} \
  85. --enable-apidocs \
  86. configure \
  87. --disable-hildon
  88. ./waf %{?_smp_mflags} build
  89. %install
  90. rm -rf %{buildroot}
  91. ./waf --destdir=%{buildroot} install
  92. %find_lang %{name}
  93. desktop-file-install \
  94. --vendor "" \
  95. --delete-original \
  96. --dir %{buildroot}%{_datadir}/applications \
  97. %{buildroot}%{_datadir}/applications/%{name}.desktop
  98. mkdir -p %{buildroot}%{_datadir}/gtk-doc/html/%{name}
  99. install -Dpm 644 _build_/docs/api/midori/html/* \
  100. %{buildroot}%{_datadir}/gtk-doc/html/%{name}
  101. %clean
  102. rm -rf %{buildroot}
  103. %post
  104. touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
  105. %postun
  106. if [ $1 -eq 0 ] ; then
  107. touch --no-create %{_datadir}/icons/hicolor &>/dev/null
  108. gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  109. fi
  110. %posttrans
  111. gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  112. %files -f %{name}.lang
  113. %defattr(-,root,root,-)
  114. %doc %{_docdir}/%{name}-%{version}/
  115. %{_bindir}/midori
  116. %{_datadir}/applications/%{name}.desktop
  117. %{_datadir}/icons/hicolor/*
  118. %{_datadir}/%{name}/
  119. %{_libdir}/%{name}/
  120. %{_sysconfdir}/xdg/%{name}/
  121. %files devel
  122. %defattr(-,root,root,-)
  123. %doc %{_datadir}/gtk-doc/
  124. %{_datadir}/vala/
  125. %{_includedir}/%{name}-0.4/
  126. %changelog
  127. * Wed Aug 03 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.4.0-1
  128. - new upstream release
  129. - refresh patch0
  130. * Wed May 25 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.3.6-1
  131. - new upstream release
  132. - added Patch0 to fix desktop entry
  133. * Tue May 10 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.3.5-1
  134. - new upstream release
  135. * Sun Apr 10 2011 IWAI, Masaharu <iwai@alib.jp> 0.3.3-1
  136. - new upstream release
  137. * Sun Feb 27 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.3.2-1
  138. - new upstream release
  139. * Tue Feb 1 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.3.0-1
  140. - new upstream release
  141. - dropt Patch0
  142. * Sun Nov 7 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.2.9-1
  143. - new upstream release
  144. - recreated patch0
  145. - probed %%post and %%postun
  146. - added %%posttrans
  147. * Mon Sep 27 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.2.8-1
  148. - new upstream release
  149. * Thu Aug 26 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.2.7-1
  150. - new upstream release
  151. - disabled conditional branch to vala support
  152. - to preparation vala package on Vine 5
  153. - splitted devel file
  154. - enabled BuildRequires: gtk-doc
  155. * Wed May 26 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.2.6-1
  156. - new upstream release
  157. - deleted duplicate BuildRequires (librsvg2)
  158. - added BuildRequires: libXScrnSaver-devel
  159. - fixed BuildRoot path
  160. - applied conditional branch to vala support
  161. * Thu May 20 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.2.5-1
  162. - new upstream release
  163. - added BuildRequires: gtksourceview2-devel, intltool, libnotify-devel, librsvg2,
  164. vala-devel
  165. - added Patch0 from Fedora to fix docdir
  166. - improved %files section
  167. * Sat Mar 20 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.2.4-1
  168. - new upstream release
  169. - applied new naming policy to spec
  170. * Thu Feb 25 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.2.3-1
  171. - new upstream release
  172. * Mon Dec 28 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.2.2-1
  173. - new upstream release
  174. * Sat Nov 14 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.2.1-1
  175. - new upstream release
  176. * Fri Oct 16 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.2.0-1
  177. - new upstream release
  178. - fixed BuildRequires: perl-XML-Parser
  179. * Sun Sep 13 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.1.10-1
  180. - new upstream release
  181. * Sun Aug 2 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.1.9-1
  182. - new upstream release
  183. * Mon Jul 27 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.1.8-2
  184. - added Japanese description
  185. - fixed BuildRequires: perl(XML::Parser) to perl-XML-Parser
  186. * Sun Jul 26 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.1.8-1
  187. - new upstream release
  188. - few changed in %files seciton
  189. * Sun May 10 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.1.6-1
  190. - new upstream release
  191. - add BR: WebKit-gtk-devel >= 1.1.6
  192. - add --disable-hildon to configure option
  193. * Thu Mar 26 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.1.4-1
  194. - new upstream release
  195. - drop old ja.po
  196. * Mon Feb 02 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.1.1-1
  197. - new upstream release
  198. * Sun Aug 24 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.0.19-1
  199. - new upstream release
  200. - update ja.po
  201. * Fri Jul 11 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.0.18-1
  202. - initial build for Vine Linux
  203. - add initial ja.po
  204. * Sat May 24 2008 Peter Gordon <peter@thecodergeek.com> - 0.0.18-1
  205. - Update to new upstream release (0.0.18), adds some translations and
  206. a lot of bug-fixes.
  207. - Alphabetize dependency list (aesthetic-only change).
  208. * Sat Apr 12 2008 Peter Gordon <peter@thecodergeek.com> - 0.0.17-3
  209. - Rebuild for updated WebKit library so-name and include directory.
  210. * Mon Mar 03 2008 Peter Gordon <peter@thecodergeek.com> - 0.0.17-2
  211. - Cleanups from review (bug 435661):
  212. (1) Fix consistency of tabs/spaces usage.
  213. (2) Fix source permissions.
  214. (3) Add desktop-file-utils build dependency.
  215. * Sun Mar 02 2008 Peter Gordon <peter@thecodergeek.com> - 0.0.17-1
  216. - Initial packaging for Fedora.