update-watch-vl.spec 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. %define build_vine5 0
  2. %if "%{?_dist_release}" == "vl5"
  3. %define build_vine5 1
  4. %endif
  5. Summary: Application which notifies about package updates
  6. Summary(ja): パッケージの更新を通知するアプリケーション
  7. Name: update-watch
  8. Version: 2.0.0
  9. Release: 1%{?_dist_release}
  10. Source0: %{name}-%{version}.tar.bz2
  11. License: GPL
  12. Group: Applications/System
  13. #URL:
  14. Requires: gambas2-runtime >= 1.9.48
  15. Requires: gambas2-gb-gui >= 1.9.48
  16. Requires: gambas2-gb-form >= 1.9.48
  17. Requires: gambas2-gb-gtk >= 1.9.48
  18. Requires: gksu
  19. Requires: wget
  20. BuildRequires: gambas2-ide >= 1.9.48
  21. AutoReqProv: no
  22. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  23. Vendor: Project Vine
  24. Distribution: Vine Linux
  25. Packager: kazutaka
  26. %description
  27. Update-watch will check for the availability of new packages for
  28. your system on a daily basis. When it detects new versions of the
  29. packages installed on the system are available, it will add an
  30. icon on the desktop notification area.
  31. This program is developed with Gambas.
  32. If you are using KDE, install gambas2-gb-qt sub package and then
  33. this program switch to use Qt toolkit.
  34. %description -l ja
  35. update-watch は更新可能なパッケージがないか1日1回自動的にチェック
  36. します。
  37. システムにインストールされたパッケージのより新しいバージョンを
  38. 検出すると、デスクトップの通知エリアにアイコンを表示します。
  39. このプログラムは Gambas で開発されています。
  40. KDE を使っている場合は、gambas2-gb-qt サブパッケージをインストール
  41. すると、ツールキットに Qt が使用されるようになります。
  42. %prep
  43. %setup -q
  44. touch run-apt-update
  45. %build
  46. pushd src/%{name}
  47. %{_bindir}/gbc2 -a -t -p
  48. %{_bindir}/gba2
  49. popd
  50. %install
  51. %{__rm} -rf ${RPM_BUILD_ROOT}
  52. %{__install} -d ${RPM_BUILD_ROOT}/%{_bindir}
  53. %{__install} -d ${RPM_BUILD_ROOT}/%{_sysconfdir}/apt/apt.conf.d
  54. %{__install} -d ${RPM_BUILD_ROOT}/%{_sysconfdir}/cron.daily
  55. %{__install} -d ${RPM_BUILD_ROOT}/%{_sysconfdir}/rc.d/init.d
  56. %{__install} -d ${RPM_BUILD_ROOT}/%{_sysconfdir}/rc.d/rc0.d
  57. %{__install} -d ${RPM_BUILD_ROOT}/%{_sysconfdir}/rc.d/rc6.d
  58. %{__install} -d ${RPM_BUILD_ROOT}/%{_sysconfdir}/xdg/autostart
  59. %{__install} -d ${RPM_BUILD_ROOT}/%{_prefix}/lib/update-watch
  60. %{__install} -d ${RPM_BUILD_ROOT}/%{_datadir}/apt/scripts
  61. %{__install} -d ${RPM_BUILD_ROOT}/%{_datadir}/pixmaps
  62. %{__install} -d ${RPM_BUILD_ROOT}/%{_localstatedir}/lib/update-watch
  63. %{__install} -m 755 src/%{name}/update-watch.gambas ${RPM_BUILD_ROOT}/%{_bindir}/update-watch
  64. %{__install} -m 644 src/%{name}/%{name}.png ${RPM_BUILD_ROOT}/%{_datadir}/pixmaps/
  65. %{__install} -m 755 delayed_launch_update-watch.sh ${RPM_BUILD_ROOT}/%{_bindir}/
  66. %{__install} -m 644 update-watch.conf ${RPM_BUILD_ROOT}/%{_sysconfdir}/apt/apt.conf.d/
  67. %{__install} -m 755 update-watch.lua ${RPM_BUILD_ROOT}/%{_datadir}/apt/scripts/
  68. %{__install} -m 755 check-reboot.lua ${RPM_BUILD_ROOT}/%{_datadir}/apt/scripts/
  69. %if %{build_vine5}
  70. %{__install} -m 755 check-upgrades5.lua ${RPM_BUILD_ROOT}/%{_prefix}/lib/update-watch/check-upgrades.lua
  71. %else
  72. %{__install} -m 755 check-upgrades.lua ${RPM_BUILD_ROOT}/%{_prefix}/lib/update-watch/check-upgrades.lua
  73. %endif
  74. %{__install} -m 755 apt-update.sh ${RPM_BUILD_ROOT}/%{_prefix}/lib/update-watch/
  75. %{__install} -m 644 reboot.list ${RPM_BUILD_ROOT}/%{_prefix}/lib/update-watch/
  76. %{__install} -m 755 update-watch-cleanup ${RPM_BUILD_ROOT}/%{_sysconfdir}/rc.d/init.d
  77. %{__install} -m 755 update-watch.cron ${RPM_BUILD_ROOT}/%{_sysconfdir}/cron.daily/
  78. %{__install} -m 755 update-watch.desktop ${RPM_BUILD_ROOT}/%{_sysconfdir}/xdg/autostart/
  79. %{__install} -m 644 run-apt-update ${RPM_BUILD_ROOT}/%{_localstatedir}/lib/update-watch
  80. %{__install} -m 644 update-watch-red.png ${RPM_BUILD_ROOT}/%{_datadir}/pixmaps/
  81. %{__install} -m 644 update-watch-orange.png ${RPM_BUILD_ROOT}/%{_datadir}/pixmaps/
  82. # crete symlink
  83. ( cd ${RPM_BUILD_ROOT}/%{_sysconfdir}/rc.d/rc0.d
  84. %{__ln_s} ../init.d/update-watch-cleanup ./S00update-watch-cleanup
  85. cd ${RPM_BUILD_ROOT}/%{_sysconfdir}/rc.d/rc6.d
  86. %{__ln_s} ../init.d/update-watch-cleanup ./S00update-watch-cleanup
  87. )
  88. %clean
  89. %{__rm} -rf ${RPM_BUILD_ROOT}
  90. %files
  91. %defattr(-,root,root)
  92. %doc AUTHORS COPYING README ChangeLog help
  93. %{_bindir}/update-watch
  94. %{_bindir}/delayed_launch_update-watch.sh
  95. %{_sysconfdir}/apt/apt.conf.d/update-watch.conf
  96. %{_sysconfdir}/cron.daily/update-watch.cron
  97. %{_sysconfdir}/rc.d/init.d/update-watch-cleanup
  98. %{_sysconfdir}/rc.d/rc0.d/S00update-watch-cleanup
  99. %{_sysconfdir}/rc.d/rc6.d/S00update-watch-cleanup
  100. %{_sysconfdir}/xdg/autostart/update-watch.desktop
  101. %{_prefix}/lib/update-watch
  102. %dir %{_localstatedir}/lib/update-watch
  103. %ghost %{_localstatedir}/lib/update-watch/run-apt-update
  104. %{_datadir}/apt/scripts/update-watch.lua
  105. %{_datadir}/apt/scripts/check-reboot.lua
  106. %{_datadir}/pixmaps/%{name}.png
  107. %{_datadir}/pixmaps/update-watch-red.png
  108. %{_datadir}/pixmaps/update-watch-orange.png
  109. %changelog
  110. * Sun Jul 17 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 2.0.0-1
  111. - source udpate
  112. * Tue Jul 05 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 1.9.3-1
  113. - source udpate
  114. * Sun May 22 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 1.9.2-1
  115. - source udpate
  116. - update check-reboot.lua to fix rpm lua segv when apt-get upgrade again
  117. (import from 1.2.0-6vl5. Thanks iwamoto-san and daisuke-san)
  118. * Thu May 05 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 1.9.1-1
  119. - source udpate
  120. - add Vendor and Distribution tags
  121. * Wed May 04 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 1.9.0-1
  122. - source udpate
  123. * Mon Aug 30 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 1.2.0-3
  124. - source udpate: adjust default button for new dialog
  125. * Wed Aug 18 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 1.2.0-2
  126. - source udpate: update help document
  127. * Sun Aug 15 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 1.2.0-1
  128. - source udpate
  129. - add Requires: wget for update-watch.cron script
  130. - set %%{_localstatedir}/lib/update-watch/run-apt-update as %%ghost
  131. * Tue May 18 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 1.1.2-1
  132. - source udpate
  133. - add update-watch-orange.png (missing accidentlly)
  134. - add conditional build for check-upgrade.lua script
  135. * Mon Jan 18 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 1.1.1-3
  136. - change %%{_libdir} to %%{_prefix}/lib (to use same directory on x86_64)
  137. * Mon Jan 18 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 1.1.1-2
  138. - remove BuildArch: noarch (<BTS:VineLinux:883>)
  139. * Sun Aug 09 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.1.1-1
  140. - source udpate
  141. * Sat Aug 08 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.1.0-1
  142. - source udpate
  143. * Sun Aug 02 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.0.5-1
  144. - source udpate
  145. - add apt-update.sh in %install: fix for <BTS:VineLinux:0741&0743>
  146. * Tue Jul 28 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.0.4-1
  147. - source update
  148. * Sun Jul 26 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.0.3-1
  149. - source update
  150. - change source archive structure
  151. - add documents
  152. * Thu Jul 23 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.0.2-1
  153. - source update
  154. - change trayicon menu name to "Upgrade all" <BTS:VineLinux:0730>
  155. - update help file (Source11)
  156. - update reboot.list (Source7): add dbus
  157. * Fri Jun 26 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.0.1-1
  158. - source update
  159. * Thu May 07 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.0.0-1
  160. - source update
  161. - add html help file
  162. * Thu May 07 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.5.1-1
  163. - source update
  164. * Mon May 04 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.5.0-1
  165. - source update
  166. - update Source3 (to fix multiple user environment problem)
  167. - add application icon
  168. * Fri Apr 24 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.4.4-1
  169. - source update
  170. - add Packager: kazutaka
  171. * Sat Mar 21 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.4.3-1
  172. - source update
  173. - drop Source21 reboot icons (user stock icon instead)
  174. * Sun Oct 19 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.4.2-1
  175. - source update
  176. - add icons as Source20 & 21
  177. - add shell script Sourced9 for delayed autostart
  178. * Thu Sep 25 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.4.1-1
  179. - source update
  180. * Thu Jul 31 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.4.0-1
  181. - source update
  182. * Fri Jul 25 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.3.2-1
  183. - source update
  184. - add Source8 (update-watch-cleanup) to fix reboot notification error
  185. * Wed Jul 23 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.3.1-1
  186. - source update
  187. - update Source3 "check-upgrade.lua" to handle allow-duplicated
  188. packages correctly
  189. * Mon Jul 21 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.3.0-1
  190. - source update
  191. - update update-watch.conf
  192. - add check-reboot.lua and reboot.list as Source6 & Source7
  193. * Mon Jun 30 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.2.4-1
  194. - source upate
  195. * Mon Jun 23 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.2.3-1
  196. - source upate
  197. * Fri Jun 20 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.2.2-1
  198. - source upate
  199. * Wed Jun 18 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.2.1-1
  200. - source upate
  201. * Wed Jun 18 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.2.0-1
  202. - source upate
  203. * Tue Jun 17 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.1.3-1
  204. - source upate
  205. * Sat Jun 14 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.1.2-2
  206. - change directory of run-apt-update to %%{_localstatedir}/lib/update-watch
  207. * Wed Jun 13 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.1.2-1
  208. - source upate
  209. - add update-watch.desktop to start automatically
  210. * Thu Jun 12 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.1.1-1
  211. - initial build for Vine Linux