update-watch-vl.spec 7.8 KB

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