midori-vl.spec 8.4 KB

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