gnome-do-vl.spec 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  1. %define mainver 0.8.4
  2. %define build_vine5 %( [ "%{?_dist_release}" == "vl5" ] && echo 1 || echo 0)
  3. Name: gnome-do
  4. Version: 0.8.4
  5. Release: 3%{?_dist_release}
  6. Summary: An intelligent launcher tool for Gnome
  7. Summary(ja): Gnome 用の高機能ランチャー
  8. License: GPLv3+
  9. Group: Applications/Accessories
  10. URL: http://do.davebsd.com/
  11. Source0: http://edge.launchpad.net/do/0.8/%{mainver}/+download/gnome-do-%{version}.tar.gz
  12. Source1: gnome-do.desktop
  13. # Taken from cmigemo
  14. Source2: Migemo.cs.utf8
  15. # https://bugs.launchpad.net/do/+bug/634556
  16. #Patch0: gnome-do-0.8.3.1-mono-2.8.patch
  17. #Patch1: gnome-do-0.8.3.1-gdk-build-fix.patch
  18. # https://bugs.launchpad.net/do/+bug/634550
  19. Patch2: gnome-do-0.8.4-cs0200.patch
  20. # http://d.hatena.ne.jp/kiwanami/20110612/1307897291
  21. # https://gist.github.com/1021707, but modified for gnome-do-0.8,4
  22. Patch3: gnome-do-0.8.4-cmigemo.patch
  23. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  24. # Various Mono dependencies are not available for ppc64; see bug 241850.
  25. ExcludeArch: ppc64
  26. Requires: cmigemo
  27. BuildRequires: mono-devel, mono-addins
  28. BuildRequires: desktop-file-utils
  29. BuildRequires: ndesk-dbus
  30. BuildRequires: ndesk-dbus-glib
  31. BuildRequires: gtk-sharp2
  32. BuildRequires: notify-sharp-devel
  33. BuildRequires: gnome-sharp2, gnome-desktop-sharp2 >= 2.26
  34. BuildRequires: gnome-keyring-sharp-devel
  35. BuildRequires: gettext
  36. BuildRequires: perl-XML-Parser
  37. BuildRequires: intltool
  38. BuildRequires: gtk2-devel
  39. BuildRequires: desktop-file-utils
  40. BuildRequires: wnck-sharp
  41. BuildRequires: gconf-sharp2
  42. BuildRequires: rsvg2-sharp
  43. Requires(pre): GConf2
  44. Requires(post): GConf2
  45. Requires(preun):GConf2
  46. Requires: gnome-keyring-sharp, gnome-desktop-sharp2
  47. Requires: pkgconfig
  48. Packager: kazutaka
  49. %description
  50. GNOME Do (Do) is an intelligent launcher tool that makes performing
  51. common tasks on your computer simple and efficient. Do not only
  52. allows you to search for items in your desktop environment
  53. (e.g. applications, contacts, bookmarks, files, music), it also
  54. allows you to specify actions to perform on search results
  55. (e.g. run, open, email, chat, play).
  56. %description -l ja
  57. GNOME Do (Do) は高機能なランチャーツールです。 PC を使った一
  58. 般的なタスクをシンプルかつ効率的に実行できるようにします。Do
  59. はデスクトップ環境の様々なアイテム(例えばアプリケーションや
  60. 連絡先、ブックマーク、ファイル、音楽等)の検索だけでなく、検索
  61. した結果をどう操作するのか(例えば開く、メールに添付、チャット、
  62. 再生する等)を指定することができます。
  63. %package devel
  64. Summary: Development files for GNOME Do
  65. Summary(ja): GNOME Do の開発用ファイル
  66. Group: Development/Libraries
  67. Requires: %{name} = %{version}-%{release}
  68. Requires: pkgconfig
  69. %description devel
  70. Development files for GNOME Do
  71. %description devel -l ja
  72. GNOME Do の開発用ファイルです。
  73. %prep
  74. %setup -q
  75. #%if !%{build_vine5}
  76. #%patch0 -p0 -b .mono28-fix
  77. #%patch1 -p1 -b .gdkbuild-fix
  78. #%endif
  79. %patch2 -p0 -b .cs0200
  80. # apply cmigemo patch
  81. %{__cp} %{SOURCE2} Do.Platform/src/Do.Platform/Migemo.cs
  82. %patch3 -p1 -b .cmigemo
  83. %build
  84. %configure
  85. make %{?_smp_mflags}
  86. %install
  87. rm -rf ${RPM_BUILD_ROOT}
  88. export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
  89. make install DESTDIR=${RPM_BUILD_ROOT}
  90. desktop-file-install \
  91. --dir ${RPM_BUILD_ROOT}%{_sysconfdir}/xdg/autostart \
  92. --add-only-show-in=GNOME \
  93. %{SOURCE1}
  94. desktop-file-install \
  95. --dir ${RPM_BUILD_ROOT}%{_datadir}/applications \
  96. --remove-category Application \
  97. %{SOURCE1}
  98. #own this dir:
  99. mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/%{name}
  100. %find_lang %{name}
  101. %pre
  102. if [ "$1" -gt 1 ]; then
  103. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  104. gconftool-2 --makefile-uninstall-rule \
  105. %{_sysconfdir}/gconf/schemas/%{name}.schemas >/dev/null || :
  106. fi
  107. %post
  108. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  109. gconftool-2 --makefile-install-rule \
  110. %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || :
  111. touch --no-create %{_datadir}/icons/hicolor
  112. if [ -x %{_bindir}/gtk-update-icon-cache ] ; then
  113. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  114. fi
  115. %preun
  116. if [ "$1" -eq 0 ]; then
  117. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  118. gconftool-2 --makefile-uninstall-rule \
  119. %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || :
  120. fi
  121. %postun
  122. touch --no-create %{_datadir}/icons/hicolor
  123. if [ -x %{_bindir}/gtk-update-icon-cache ] ; then
  124. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  125. fi
  126. %clean
  127. rm -rf ${RPM_BUILD_ROOT}
  128. %files -f %{name}.lang
  129. %defattr(-,root,root,-)
  130. %doc AUTHORS COPYING COPYRIGHT
  131. %{_bindir}/gnome-do/
  132. %{_libdir}/gnome-do/
  133. %{_datadir}/gnome-do/
  134. %config(noreplace) %{_sysconfdir}/xdg/autostart/gnome-do.desktop
  135. %config(noreplace) %{_sysconfdir}/gconf/schemas/*
  136. %{_datadir}/icons/hicolor/*/apps/gnome-do.*
  137. %{_datadir}/applications/*
  138. %files devel
  139. %defattr(-,root,root,-)
  140. %{_libdir}/pkgconfig/*
  141. %changelog
  142. * Thu Jun 23 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 0.8.4-3
  143. - update Patch2 to fix Bad quantifier error of regex
  144. * Wed Jun 22 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 0.8.4-2
  145. - add Source1 and Patch2: add cmigemo support
  146. * Thu Jan 13 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 0.8.4-1
  147. - new upstream release
  148. - drop Patch0 & 1
  149. - add Patch2: fix compilation error (cs0200)
  150. - add Source1: temporary fix for desktop-file-install failure.
  151. (Comment[kk] contains a bogus linebreak)
  152. * Sat Nov 06 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.8.3.1-4
  153. - add Patch0 & 1 to fix compilation error (Seed only)
  154. * Sat Sep 25 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.8.3.1-3
  155. - rebuild with rpm-4.8.1 for pkg-config file
  156. - add BuildRequires: gconf-sharp2, rsvg2-sharp
  157. * Mon Jul 26 2010 Shu KONNO <owa@bg.wakwak.com> 0.8.3.1-2
  158. - rebuilt with mono-addins-0.5
  159. * Sun Jan 10 2010 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.8.3.1-1
  160. - new upstream release
  161. * Fri Jul 10 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.8.2-1
  162. - new upstream release
  163. - drop Patch0 (merged in upstream)
  164. * Fri Jun 12 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.8.1.3-3
  165. - change Group to Applications/Accessories
  166. * Fri Jun 12 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.8.1.3-2
  167. - add BuildRequires: wnck-sharp
  168. * Thu Jun 11 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.8.1.3-1
  169. - initial build for Vine Linux based on fedora development
  170. * Fri Apr 10 2009 Sindre Pedersen Bj淡rdal <sindrepb@fedoraproject.org> - 0.8.1.3-5
  171. - Fix .desktop issue, install in both autostart and applications
  172. - Rebuild for new gnome-desktop-sharp
  173. - Add missing gnome-desktop-sharp requires
  174. - Fix Ndesk-dbus Requires
  175. * Wed Apr 01 2009 Sindre Pedersen Bj淡rdal <sindrepb@fedoraproject.org> - 0.8.1.3-3
  176. - Add patch to fix issue where applications wasn't being indexed
  177. * Tue Mar 17 2009 Sindre Pedersen Bj淡rdal <sindrepb@fedoraproject.org> - 0.8.1.3-2
  178. - New upstream release
  179. * Tue Mar 3 2009 Sindre Pedersen Bj淡rdal <sindrepb@fedoraproject.org> - 0.8.0-4
  180. - Own _datadir/gnome-do
  181. * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.0-3
  182. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  183. * Sat Feb 7 2009 Michel Salim <salimma@fedoraproject.org> - 0.8.0-2
  184. - Rebuild against new mono-addins
  185. * Fri Jan 30 2009 Sindre Pedersen Bj淡rdal <sindrepb@fedoraproject.org> - 0.8.0-1
  186. - New upstream release
  187. * Thu Jan 29 2009 Michel Salim <salimma@fedoraproject.org> - 0.6.1.0-3
  188. - Remove Tomboy dependency (bz #481183)
  189. - Updated description, from Do
  190. * Mon Oct 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.6.1.0-2
  191. - rebuild against new gnome-sharp
  192. * Wed Oct 08 2008 Sindre Pedersen Bj淡rdal <sindrepb@fedoraproject.org> - 0.6.1.0-1
  193. - New Upstream Release
  194. * Fri Oct 03 2008 Sindre Pedersen Bj淡rdal <sindrepb@fedoraproject.org> - 0.6.0.1-1
  195. - New upstream release
  196. * Wed Jun 11 2008 Sindre Pedersen Bj淡rdal <sindrepb@fedoraproject.org> - 0.6.0.0-1
  197. - New upstream release
  198. * Wed Jun 11 2008 Sindre Pedersen Bj淡rdal <sindrepb@fedoraproject.org> - 0.5.0.1-4
  199. - New upstream release
  200. - Add gnome-desktop-sharp dependency
  201. * Wed Jun 04 2008 Caol叩n McNamara <caolanm@redhat.com> - 0.4.2.0-2
  202. - rebuild for dependancies
  203. * Tue Apr 22 2008 Sindre Pedersen Bj淡rdal <sindrepb@fedoraproject.org> - 0.4.2.0-1
  204. - New upstream release
  205. * Tue Apr 01 2008 David Nielsen <gnomeuser@gmail.com> - 0.4.0.1-2
  206. - #439793 - correct URL
  207. * Sat Mar 29 2008 David Nielsen <gnomeuser@gmail.com> - 0.4.0.1-1
  208. - Bump to 0.4.0.1
  209. - Hopefully bring an end to the endless dups of 432201
  210. * Thu Feb 21 2008 David Nielsen <david@lovesunix.net> - 0.3.1-2
  211. - Fix 432201
  212. * Thu Feb 21 2008 David Nielsen <david@lovesunix.net> - 0.3.1-1
  213. - Bump to 0.3.1
  214. * Wed Feb 06 2008 David Nielsen <david@lovesunix.net> - 0.3.0.1-5
  215. - #431589 - Force runtime dependency on ndesk-dbus(-glib)
  216. * Mon Feb 04 2008 David Nielsen <david@lovesunix.net> - 0.3.0.1-4
  217. - #431462 - Correctly pull in Tomboy runtime dependency
  218. * Fri Jan 25 2008 David Nielsen <david@lovesunix.net> - 0.3.0.1-3
  219. - autostart gnome-do in quiet mode with the user session
  220. - to invoke gnome-do use super+space
  221. * Tue Jan 22 2008 David Nielsen <david@lovesunix.net> - 0.3.0.1-2
  222. - Fix BuildRequires
  223. * Tue Jan 22 2008 David Nielsen <david@lovesunix.net> - 0.3.0.1-1
  224. - bump to 0.3.0.1
  225. - update patches
  226. * Sat Nov 17 2007 David Nielsen <david@lovesunix.net> - 0.0.2-2
  227. - updated libdir patch
  228. - cleaned up desktop-file-install invocation
  229. - correct BuildRequires
  230. * Mon Nov 12 2007 David Nielsen <david@lovesunix.net> - 0.0.2-1
  231. - Initial package