midori-vl.spec 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  1. Summary: A lightweight GTK+ web browser
  2. Summary(ja): 軽量な GTK+ ウェブブラウザ
  3. Name: midori
  4. Version: 0.2.8
  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. * Mon Sep 27 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.2.8-1
  131. - new upstream release
  132. * Thu Aug 26 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.2.7-1
  133. - new upstream release
  134. - disabled conditional branch to vala support
  135. - to preparation vala package on Vine 5
  136. - splitted devel file
  137. -enabled BuildRequires: gtk-doc
  138. * Wed May 26 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.2.6-1
  139. - new upstream release
  140. - deleted duplicate BuildRequires (librsvg2)
  141. - added BuildRequires: libXScrnSaver-devel
  142. - fixed BuildRoot path
  143. - applied conditional branch to vala support
  144. * Thu May 20 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.2.5-1
  145. - new upstream release
  146. - added BuildRequires: gtksourceview2-devel, intltool, libnotify-devel, librsvg2,
  147. vala-devel
  148. - added Patch0 from Fedora to fix docdir
  149. - improved %files section
  150. * Sat Mar 20 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.2.4-1
  151. - new upstream release
  152. - applied new naming policy to spec
  153. * Thu Feb 25 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.2.3-1
  154. - new upstream release
  155. * Mon Dec 28 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.2.2-1
  156. - new upstream release
  157. * Sat Nov 14 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.2.1-1
  158. - new upstream release
  159. * Fri Oct 16 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.2.0-1
  160. - new upstream release
  161. - fixed BuildRequires: perl-XML-Parser
  162. * Sun Sep 13 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.1.10-1
  163. - new upstream release
  164. * Sun Aug 2 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.1.9-1
  165. - new upstream release
  166. * Mon Jul 27 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.1.8-2
  167. - added Japanese description
  168. - fixed BuildRequires: perl(XML::Parser) to perl-XML-Parser
  169. * Sun Jul 26 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.1.8-1
  170. - new upstream release
  171. - few changed in %files seciton
  172. * Sun May 10 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.1.6-1
  173. - new upstream release
  174. - add BR: WebKit-gtk-devel >= 1.1.6
  175. - add --disable-hildon to configure option
  176. * Thu Mar 26 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.1.4-1
  177. - new upstream release
  178. - drop old ja.po
  179. * Mon Feb 02 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.1.1-1
  180. - new upstream release
  181. * Sun Aug 24 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.0.19-1
  182. - new upstream release
  183. - update ja.po
  184. * Fri Jul 11 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.0.18-1
  185. - initial build for Vine Linux
  186. - add initial ja.po
  187. * Sat May 24 2008 Peter Gordon <peter@thecodergeek.com> - 0.0.18-1
  188. - Update to new upstream release (0.0.18), adds some translations and
  189. a lot of bug-fixes.
  190. - Alphabetize dependency list (aesthetic-only change).
  191. * Sat Apr 12 2008 Peter Gordon <peter@thecodergeek.com> - 0.0.17-3
  192. - Rebuild for updated WebKit library so-name and include directory.
  193. * Mon Mar 03 2008 Peter Gordon <peter@thecodergeek.com> - 0.0.17-2
  194. - Cleanups from review (bug 435661):
  195. (1) Fix consistency of tabs/spaces usage.
  196. (2) Fix source permissions.
  197. (3) Add desktop-file-utils build dependency.
  198. * Sun Mar 02 2008 Peter Gordon <peter@thecodergeek.com> - 0.0.17-1
  199. - Initial packaging for Fedora.