midori-vl.spec 7.8 KB

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