update-watch-vl.spec 8.8 KB

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