midori-vl.spec 6.0 KB

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