This repository has been archived by the owner on Dec 15, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 88
/
nodejs-cantas.spec
356 lines (326 loc) · 15.4 KB
/
nodejs-cantas.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
%global npmname cantas
%global npminstdir %{_libdir}/node_modules/%{npmname}
%global deplist express jade mongoose socket.io redis connect-redis passport passport-local async moment node-krb5 nodemailer forever
Summary: Cantas is a task management tool
Name: nodejs-%{npmname}
Version: 1.0.0
Release: 1%{?dist}
Group: Development/Languages
License: MIT
URL: https://github.com/onepiecejs/nodejs-cantas
Source0: https://github.com/onepiecejs/%{name}/archive/v%{version}.tar.gz
BuildArch: noarch
Requires(pre): /usr/sbin/useradd
Requires(post): chkconfig
Requires(preun): chkconfig
# This is for /sbin/service
Requires(preun): initscripts
Requires: nodejs >= 0.10.22
Requires: nodejs-express >= 2.5.8
Requires: nodejs-jade >= 0.28.2
Requires: nodejs-mongoose >= 3.6.5
Requires: nodejs-socket.io >= 0.9.14
Requires: nodejs-redis >= 0.7.3
Requires: nodejs-connect-redis >= 1.4.5
Requires: nodejs-passport >= 0.1.16
Requires: nodejs-passport-local >= 0.1.6-1
Requires: nodejs-async >= 0.1.16
Requires: nodejs-moment >= 2.0.0
Requires: nodejs-node-krb5 >= 0.0.3-4
Requires: nodejs-nodemailer >= 0.4.1
Requires: nodejs-forever >= 0.10.9
Requires: nodejs-markdown >= 0.4.0
Requires: nodejs-xmlrpc >= 1.1.0
Requires: nodejs-easyimage >= 0.1.3
Requires: nodejs-requestify >= 0.1.16
Provides: nodejs-%{npmname} = %{version}
%description
Cantas is a task management tool. All the tasks and the action items are able to
be accessed from the system. That carries out the tool of Cantas. The task
management of Cantas tracks the process of how to well organize the task, time,
and people.
%prep
%setup -q
%build
%pre
if [ $1 -eq 1 ]; then
getent group %{npmname} >/dev/null || groupadd -r %{npmname};
getent passwd %{npmname} >/dev/null || \
useradd -r -g %{npmname} -d %{_sharedstatedir}/%{npmname} -s /sbin/nologin \
-c "Cantas Service" %{npmname} &>/dev/null || :;
fi
%install
mkdir -p %{buildroot}%{_sharedstatedir}/%{npmname}
# Setup upload folder
mkdir -p %{buildroot}%{_sharedstatedir}/%{npmname}/uploads
mkdir -p %{buildroot}%{_sharedstatedir}/%{npmname}/attachments
# Setup and copy packages over
mkdir -p %{buildroot}/%{npminstdir}
mkdir -p %{buildroot}/%{_sysconfdir}/sysconfig
cp -pr app.js models Gruntfile.js package.json public routes services settings.js sockets spec views scripts %{buildroot}/%{npminstdir}
cp -pr settings.json %{buildroot}/%{_sysconfdir}/sysconfig/cantas-settings.json
# attachments is a soft link in production environment
rm -rf %{buildroot}/%{npminstdir}/public/attachments
# Setup the dependancies
cd %{buildroot}/%{npminstdir}
mkdir node_modules
for depend in %{deplist}
do
ln -s %{_libdir}/node_modules/$depend node_modules/$depend
done
# Back to previous directory
cd -
# Setup Binaries
# Setup log
install -d -m 755 %{buildroot}%{_localstatedir}/log/%{npmname}
# Setup control script in /etc/init.d
init_d=%{buildroot}%{_sysconfdir}/init.d
install -d $init_d
cp scripts/cantas.rc ${init_d}/cantas
%clean
rm -rf %{buildroot}
%post
if [ $1 -eq 1 ]; then
ln -sf %{_sysconfdir}/sysconfig/cantas-settings.json %{npminstdir}/settings.json 2>/dev/null || :;
ln -sf %{npminstdir}/scripts/cantas-init.sh %{_bindir}/cantas-init.sh 2>/dev/null || :;
# This adds the proper /etc/rc*.d links for the script
/sbin/chkconfig --add %{npmname} &> /dev/null || :;
# Setup upload folder soft link
ln -sf %{_sharedstatedir}/%{npmname}/uploads %{npminstdir}/uploads 2>/dev/null || :;
ln -sf %{_sharedstatedir}/%{npmname}/attachments %{npminstdir}/public/attachments 2>/dev/null || :;
fi
%preun
if [ $1 -eq 0 ]; then
/sbin/service %{npmname} stop &> /dev/null || :;
/sbin/chkconfig --del %{npmname} &> /dev/null || :;
fi
%postun
if [ $1 -eq 0 ]; then
rm -rf %{npminstdir}/settings.json 2>/dev/null || :;
rm -rf %{_bindir}/cantas-init.sh 2>/dev/null || :;
/usr/sbin/userdel -f %{npmname} 2>/dev/null || :;
rm -rf %{npminstdir}/uploads 2>/dev/null || :;
rm -rf %{npminstdir}/public/attachments 2>/dev/null || :;
fi
%files
%defattr(-, root, root, -)
%doc README.md
%{npminstdir}
%config(noreplace) %dir %attr(0755, %{npmname}, root) %{_sharedstatedir}/%{npmname}
%config(noreplace) %dir %attr(0755, %{npmname}, root) %{_sharedstatedir}/%{npmname}/uploads
%config(noreplace) %dir %attr(0755, %{npmname}, root) %{_sharedstatedir}/%{npmname}/attachments
%dir %attr(0755, %{npmname}, root) %{_localstatedir}/log/%{npmname}
%attr(755, root, root) %{_sysconfdir}/init.d/cantas
%config(noreplace) %{_sysconfdir}/sysconfig/cantas-settings.json
%changelog
* Fri Feb 07 2014 Xiao Deshi <[email protected]> 1.0.0-1
- bumped verion to 1.0.0
* Wed Dec 04 2013 Xiao Deshi <[email protected]> 0.7.0-5
- FIX: rebuild the package ([email protected])
* Wed Dec 04 2013 Xiao Deshi <[email protected]> 0.7.0-4
- REV: add dependencies version to spec file ([email protected])
* Fri Nov 29 2013 Xiao Deshi <[email protected]> 0.7.0-3
- bumped version to 0.7.0-3 ([email protected])
- FIX: ignore CA validation process in request SSL ([email protected])
* Thu Nov 07 2013 Zheng Liu <[email protected]> 0.7.0-2
- update version info and minify files for 0.7.0-2 ([email protected])
- Automatic commit of package [nodejs-cantas] release [0.6.0-3].
- REV: generate rpm package info ([email protected])
- Initialized to use tito. ([email protected])
- FIX: update bootstrap 3 modal hidden event ([email protected])
- FIX: new list show proper order when move list to another board
- REV: cantas-620 ([email protected])
- REV: change tab to space based on dev convention ([email protected])
- FIX: can not add card after move list to other board ([email protected])
- FIX: jshint syntax fixed. ([email protected])
- FIX: send one socket to client when archive all cards of a list
- FIX: reduce the content of fetch label data. ([email protected])
- REV: modify the stop-sync button's style ([email protected])
- WebUI: Update help doc ([email protected])
- REV:replace old bootstrap to new version. ([email protected])
- WebUI: modify markdown link description ([email protected])
- FIX: server error when archive all cards of a list ([email protected])
- FIX: Bug 1018466 - [Board] Scroll bar cannot auto-move to the bottom of the
list after sync BZURL to a list, if there are hundreds of bugs
- REV: sync-all and stop-sync ([email protected])
- REV: set the caption of the attachment-upload button to Attach
- FIX: Bugfix cantas-618 ([email protected])
- FIX: Bugfix 1022416 ([email protected])
- WebUI: fix bug 984461 - card detail left button hidden ([email protected])
- WebUI: fix bug-999285 help page blank issue ([email protected])
- WebUI: fix - bug 983839 - email style overflow ([email protected])
- FIX: syncAll/sync button should be disabled after click ([email protected])
- WebUI: markdown link is added. ([email protected])
- FIX: As a board member I can sync all BZ URL~List mapping at once
- FIX: bug 507 ([email protected])
- FIX: bug576-577 ([email protected])
- FIX: when sync bugzilla, card with bugs have no initial lables
- FIX: Bugfix 1020157 ([email protected])
- FIX: lables can not be syncronized correctly when the user enters into the
LabelAssign Window to edit selected status of the labels on the second time.
- FIX: [mapping to bug-1006239]as a cantas user, when I move a card/list, the
card/list position options should be the expect target position
- FIX: modify the font-color of the browser support matrix ([email protected])
- REV: git a support matrix based on testing Cantas on different versions of
Firefox ([email protected])
- REV: set the mini version of Firefox as 10.0 ([email protected])
- FIX: Bugfix 953011 ([email protected])
- FIX: user enter any board, all list shadow fade in and fade out and scrollbar
scrolls automaticly ([email protected])
- WebUI: fix bug 982491 --- admin picture isn't shown in firefox 10.0.5
- REV: refactor the code of adding sync config mapping ([email protected])
- FIX: Bugfix 999435 ([email protected])
- FIX: Bugfix 989296 ([email protected])
- FIX: Bugfix 983913 ([email protected])
- FIX: Bugfix 993523 ([email protected])
- FIX: Bugfix 1009329 ([email protected])
- FIX: Bug 1009290 - [attachment] delete btn in attachment is unavailable
- FIX: Bug 1009296 - [card] Card details are not shown after add a caver
picture to this card ([email protected])
- FIX: Bug 1008843 - [archive] 'Add a card' is not at the bottom of the list
- FIX: adjust the position of modal window ([email protected])
- WebUI: larger the margin of comments ([email protected])
- WebUI: fix some UI issues ([email protected])
- FIX: when the move card page is opened, user can not see the current items of
cantas ([email protected])
- REV: sync mapping should not save when queryUrl/listName is invalid
- FIX: Auto complete option list order(Bug # 977239) ([email protected])
- FIX:Auto complete option list order(Bug # 977239) ([email protected])
- FIX: when the move card page is opened, user can not see the current items of
cantas ([email protected])
- FIX: Auto complete option list order(Bug # 977239) ([email protected])
- REV: change content of msg. ([email protected])
- REV: can not save when queryUrl/listName is invalid ([email protected])
- REV: providing the Delete functionality of syncconfig info
- REV:providing Edit functionality of syncconfig info ([email protected])
- FIX: Bug 1012724 fix ([email protected])
- WebUI: Fix the bug - confirm dialog display wrong ([email protected])
- WebUI: loading bug fix ([email protected])
- WebUI: add mapping loading styles ([email protected])
- WebUI: change delete and disable styles ([email protected])
- REV: Auto complete option list order(Bug # 977239) ([email protected])
- REV: creating the bug mapping item based on a new list ([email protected])
- FIX: card will back to list when sync second time ([email protected])
- REV: update card info when sync the second time ([email protected])
- REV: sync one mapping relation by click ([email protected])
- REV: add BZ-URL get informed the content in my url ([email protected])
- REV: modify the sync bug key ([email protected])
- REV: the syncconfig item view(without validation) ([email protected])
- FIX: missing syncConfig.js to Grunt concat step ([email protected])
- REV: create card based on bug list got from bugzilla ([email protected])
- WebUI: Import Bugzilla function prototype ([email protected])
- FIX: missing syncConfig.js in jasmine track files ([email protected])
- FIX: enable import from bugzilla modal close event ([email protected])
- WIP: providing the model and CRUD js filefor saving the sync config info
- FIX: sonar-project.properties config restore ([email protected])
- FIX: sonar.exclusions can't support regex array ([email protected])
- FIX: vote model socket bind many times. ([email protected])
- FIX: sonar exclusions have not effective ([email protected])
- REV: providing a modal window for import bugs from bugzilla action
- FIX: modify the version checkout of safari in login page ([email protected])
- FIX: modify the version checktout of safari browser ([email protected])
- FIX:when the move card page is opened, user can not see the current items of
cantas ([email protected])
- REV: syncConfig mapping is active by default ([email protected])
- REV: bugzilla api wrapper ([email protected])
- REV: modify field name of syncConfig ([email protected])
- REV: add db schema for bugzilla integration ([email protected])
- REV: Clickable links in comments ([email protected])
- REV: Support Markdown format in Card's description ([email protected])
- FIX: clean duplicate socket binds to views ([email protected])
- FIX: modify auto complete option list order ([email protected])
- FIX: when the move card page is opened, user can not see the current items of
cantas ([email protected])
* Fri Sep 13 2013 Zheng Liu <[email protected]> 0.6.0-3
- new package built with tito
* Mon Aug 26 2013 Xiao Deshi <[email protected]> 0.5.1-1
- REV: 0.5.1 bump version ([email protected])
- REV: apply piwik url to settgins.json ([email protected])
* Tue Aug 13 2013 Xiao Deshi <[email protected]> 0.5.0-1
- new package built with tito
- cantas 0.5 package
* Fri Jul 19 2013 Xiao Deshi <[email protected]> 0.3.2-4
- FIX: servie script correct ([email protected])
* Fri Jul 19 2013 Xiao Deshi <[email protected]> 0.3.2-3
- FIX: 0.3.2-3 ([email protected])
- 0.3.0 assets ([email protected])
- FIX: init.d correct the behavior ([email protected])
- Automatic commit of package [nodejs-cantas] release [0.3.2-1].
* Fri Jul 19 2013 Xiao Deshi <[email protected]>
- 0.3.0 assets ([email protected])
- FIX: init.d correct the behavior ([email protected])
- Automatic commit of package [nodejs-cantas] release [0.3.2-1].
* Mon Jul 15 2013 Xiao Deshi <[email protected]> 0.3.2-1
- FIX: remove invited member function correct ([email protected])
- FIX: remove annoying socket connect status checkflag ([email protected])
- FIX: bug 983337 ([email protected])
- FIX: correctly username usage in user query ([email protected])
- FIX: bug 982229 ([email protected])
- Automatic commit of package [nodejs-cantas] release [0.3.1-2].
- FIX: Add success status code ([email protected])
- REV: udpate nodejs-cantas spec ([email protected])
- add migration script to 0.3 ([email protected])
- bundle to production js ([email protected])
- Automatic commit of package [nodejs-cantas] release [0.3.1-1].
* Mon Jul 08 2013 Xiao Deshi <[email protected]> 0.3.1-2
- FIX: Add success status code ([email protected])
- REV: udpate nodejs-cantas spec ([email protected])
- add migration script to 0.3 ([email protected])
- bundle to production js ([email protected])
- REV: update spec ([email protected])
- REV: remove test task from default task list ([email protected])
- FIX: remote_user should not contain email suffix ([email protected])
- REV: update support link url ([email protected])
- Automatic commit of package [nodejs-cantas] release [0.3.0-1].
- REV: update spec ([email protected])
* Mon Jul 08 2013 Xiao Deshi <[email protected]> 0.3.1-2
- bundle to production js ([email protected])
- REV: update spec ([email protected])
- REV: remove test task from default task list ([email protected])
- FIX: remote_user should not contain email suffix ([email protected])
- REV: update support link url ([email protected])
- Automatic commit of package [nodejs-cantas] release [0.3.0-1].
- REV: update spec ([email protected])
* Wed Jul 03 2013 Xiao Deshi <[email protected]> 0.3.0-1
- new package built with tito
- 0.3.0
* Thu Jun 13 2013 Deshi Xiao <[email protected]> - 0.2.1-4
- Dynamic allocation service user: cantas
- REV: minify javascript request
- bug fix: Bug 970250, 974504, 970254
* Thu Jun 13 2013 Deshi Xiao <[email protected]> - 0.2.0-1
- bumped to git hash 206202d
* Wed May 15 2013 Deshi Xiao <[email protected] - 0.1.0-6
- init script clean
* Wed May 08 2013 Chenxiong Qi <[email protected]> - 0.1.0-5
- rc script to control Cantas service
* Fri Apr 26 2013 Deshi Xiao <[email protected]> - 0.1.0-4
- fix release version typo
* Fri Apr 26 2013 Deshi Xiao <[email protected]> - 0.1.0-3
- update source code
* Fri Apr 26 2013 Deshi Xiao <[email protected]> - 0.1.0-2
- put settings to sysconfig path, fix deplist typo
* Thu Apr 25 2013 Deshi Xiao <[email protected]> - 0.1.0-1
- Initial build