midori-vl.spec 6.4 KB

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