source: projects/specs/trunk/u/update-watch/update-watch-vl.spec @ 4338

Revision 4338, 9.5 KB checked in by kazutaka, 9 years ago (diff)

update-watch:

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