update-watch-vl.spec 9.1 KB

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