midori-vl.spec 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. Summary: A lightweight GTK+ web browser
  2. Summary(ja): 軽量な GTK+ ウェブブラウザ
  3. Name: midori
  4. Version: 0.2.7
  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. %package devel
  69. Summary: Development files for %{name}
  70. Summary(ja): %{name} の開発ファイル
  71. Group: Development/Libraries
  72. Requires: %{name} = %{version}-%{release}
  73. Requires: vala
  74. %description devel
  75. The %{name}-devel package contains libraries and header files for
  76. developing extensions for %{name}.
  77. %prep
  78. %setup -q
  79. %patch0 -p1 -b .docdir
  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
  105. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  106. gtk-update-icon-cache -q %{_datadir}/icons/hicolor
  107. fi
  108. %postun
  109. touch --no-create %{_datadir}/icons/hicolor
  110. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  111. gtk-update-icon-cache -q %{_datadir}/icons/hicolor
  112. fi
  113. %files -f %{name}.lang
  114. %defattr(-,root,root,-)
  115. %doc %{_docdir}/%{name}-%{version}/
  116. %{_bindir}/midori
  117. %{_datadir}/applications/%{name}.desktop
  118. %{_datadir}/icons/hicolor/*
  119. %{_datadir}/%{name}/
  120. %{_libdir}/%{name}/
  121. %{_sysconfdir}/xdg/%{name}/
  122. %files devel
  123. %defattr(-,root,root,-)
  124. #%if %{?_dist_release} == "vl6"
  125. %doc %{_datadir}/gtk-doc/
  126. %{_datadir}/vala/
  127. %{_includedir}/%{name}-0.2/
  128. #%endif
  129. %changelog
  130. * Thu Aug 26 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.2.7-1
  131. - new upstream release
  132. - disabled conditional branch to vala support
  133. - to preparation vala package on Vine 5
  134. - splitted devel file
  135. -enabled BuildRequires: gtk-doc
  136. * Wed May 26 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.2.6-1
  137. - new upstream release
  138. - deleted duplicate BuildRequires (librsvg2)
  139. - added BuildRequires: libXScrnSaver-devel
  140. - fixed BuildRoot path
  141. - applied conditional branch to vala support
  142. * Thu May 20 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.2.5-1
  143. - new upstream release
  144. - added BuildRequires: gtksourceview2-devel, intltool, libnotify-devel, librsvg2,
  145. vala-devel
  146. - added Patch0 from Fedora to fix docdir
  147. - improved %files section
  148. * Sat Mar 20 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.2.4-1
  149. - new upstream release
  150. - applied new naming policy to spec
  151. * Thu Feb 25 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.2.3-1
  152. - new upstream release
  153. * Mon Dec 28 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.2.2-1
  154. - new upstream release
  155. * Sat Nov 14 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.2.1-1
  156. - new upstream release
  157. * Fri Oct 16 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.2.0-1
  158. - new upstream release
  159. - fixed BuildRequires: perl-XML-Parser
  160. * Sun Sep 13 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.1.10-1
  161. - new upstream release
  162. * Sun Aug 2 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.1.9-1
  163. - new upstream release
  164. * Mon Jul 27 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.1.8-2
  165. - added Japanese description
  166. - fixed BuildRequires: perl(XML::Parser) to perl-XML-Parser
  167. * Sun Jul 26 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.1.8-1
  168. - new upstream release
  169. - few changed in %files seciton
  170. * Sun May 10 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.1.6-1
  171. - new upstream release
  172. - add BR: WebKit-gtk-devel >= 1.1.6
  173. - add --disable-hildon to configure option
  174. * Thu Mar 26 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.1.4-1
  175. - new upstream release
  176. - drop old ja.po
  177. * Mon Feb 02 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.1.1-1
  178. - new upstream release
  179. * Sun Aug 24 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.0.19-1
  180. - new upstream release
  181. - update ja.po
  182. * Fri Jul 11 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.0.18-1
  183. - initial build for Vine Linux
  184. - add initial ja.po
  185. * Sat May 24 2008 Peter Gordon <peter@thecodergeek.com> - 0.0.18-1
  186. - Update to new upstream release (0.0.18), adds some translations and
  187. a lot of bug-fixes.
  188. - Alphabetize dependency list (aesthetic-only change).
  189. * Sat Apr 12 2008 Peter Gordon <peter@thecodergeek.com> - 0.0.17-3
  190. - Rebuild for updated WebKit library so-name and include directory.
  191. * Mon Mar 03 2008 Peter Gordon <peter@thecodergeek.com> - 0.0.17-2
  192. - Cleanups from review (bug 435661):
  193. (1) Fix consistency of tabs/spaces usage.
  194. (2) Fix source permissions.
  195. (3) Add desktop-file-utils build dependency.
  196. * Sun Mar 02 2008 Peter Gordon <peter@thecodergeek.com> - 0.0.17-1
  197. - Initial packaging for Fedora.