update-watch-vl.spec 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  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: 3%{?_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. * Mon Aug 30 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 1.2.0-3
  110. - source udpate: adjust default button for new dialog
  111. * Wed Aug 18 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 1.2.0-2
  112. - source udpate: update help document
  113. * Sun Aug 15 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 1.2.0-1
  114. - source udpate
  115. - add Requires: wget for update-watch.cron script
  116. - set %%{_localstatedir}/lib/update-watch/run-apt-update as %%ghost
  117. * Tue May 18 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 1.1.2-1
  118. - source udpate
  119. - add update-watch-orange.png (missing accidentlly)
  120. - add conditional build for check-upgrade.lua script
  121. * Mon Jan 18 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 1.1.1-3
  122. - change %%{_libdir} to %%{_prefix}/lib (to use same directory on x86_64)
  123. * Mon Jan 18 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 1.1.1-2
  124. - remove BuildArch: noarch (<BTS:VineLinux:883>)
  125. * Sun Aug 09 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.1.1-1
  126. - source udpate
  127. * Sat Aug 08 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.1.0-1
  128. - source udpate
  129. * Sun Aug 02 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.0.5-1
  130. - source udpate
  131. - add apt-update.sh in %install: fix for <BTS:VineLinux:0741&0743>
  132. * Tue Jul 28 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.0.4-1
  133. - source update
  134. * Sun Jul 26 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.0.3-1
  135. - source update
  136. - change source archive structure
  137. - add documents
  138. * Thu Jul 23 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.0.2-1
  139. - source update
  140. - change trayicon menu name to "Upgrade all" <BTS:VineLinux:0730>
  141. - update help file (Source11)
  142. - update reboot.list (Source7): add dbus
  143. * Fri Jun 26 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.0.1-1
  144. - source update
  145. * Thu May 07 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.0.0-1
  146. - source update
  147. - add html help file
  148. * Thu May 07 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.5.1-1
  149. - source update
  150. * Mon May 04 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.5.0-1
  151. - source update
  152. - update Source3 (to fix multiple user environment problem)
  153. - add application icon
  154. * Fri Apr 24 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.4.4-1
  155. - source update
  156. - add Packager: kazutaka
  157. * Sat Mar 21 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.4.3-1
  158. - source update
  159. - drop Source21 reboot icons (user stock icon instead)
  160. * Sun Oct 19 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.4.2-1
  161. - source update
  162. - add icons as Source20 & 21
  163. - add shell script Sourced9 for delayed autostart
  164. * Thu Sep 25 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.4.1-1
  165. - source update
  166. * Thu Jul 31 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.4.0-1
  167. - source update
  168. * Fri Jul 25 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.3.2-1
  169. - source update
  170. - add Source8 (update-watch-cleanup) to fix reboot notification error
  171. * Wed Jul 23 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.3.1-1
  172. - source update
  173. - update Source3 "check-upgrade.lua" to handle allow-duplicated
  174. packages correctly
  175. * Mon Jul 21 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.3.0-1
  176. - source update
  177. - update update-watch.conf
  178. - add check-reboot.lua and reboot.list as Source6 & Source7
  179. * Mon Jun 30 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.2.4-1
  180. - source upate
  181. * Mon Jun 23 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.2.3-1
  182. - source upate
  183. * Fri Jun 20 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.2.2-1
  184. - source upate
  185. * Wed Jun 18 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.2.1-1
  186. - source upate
  187. * Wed Jun 18 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.2.0-1
  188. - source upate
  189. * Tue Jun 17 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.1.3-1
  190. - source upate
  191. * Sat Jun 14 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.1.2-2
  192. - change directory of run-apt-update to %%{_localstatedir}/lib/update-watch
  193. * Wed Jun 13 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.1.2-1
  194. - source upate
  195. - add update-watch.desktop to start automatically
  196. * Thu Jun 12 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.1.1-1
  197. - initial build for Vine Linux