/[smecontribs]/rpms/smeserver-trac/contribs7/smeserver-trac.spec
ViewVC logotype

Contents of /rpms/smeserver-trac/contribs7/smeserver-trac.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.39 - (show annotations) (download)
Wed Apr 27 16:48:45 2011 UTC (13 years, 6 months ago) by slords
Branch: MAIN
CVS Tags: smeserver-trac-0_4-66_el4_sme
Changes since 1.38: +7 -2 lines
* Wed Apr 27 2011 SME Translation Server <translations@contribs.org> 0.4-66.sme
- apply locale 2011-04-27 patch

1 # $Id: smeserver-trac.spec,v 1.38 2011/03/06 15:28:39 slords Exp $
2 # Authority: marcohess
3 # Name: Marco Hess
4
5 %define name smeserver-trac
6 %define version 0.4
7 %define release 66
8
9 Name: %{name}
10 Summary: Trac for SME Server
11 Version: %{version}
12 Release: %{release}%{?dist}
13 License: GPL
14 Group: Applications/Internet
15 Source: %{name}-%{version}.tgz
16 Patch1: smeserver-trac-0.4-lexicon-spelling-update.patch
17 Patch2: smeserver-trac-0.4-locale-2008-04-01.patch
18 Patch3: smeserver-trac-0.4-locale-2008-04-22.patch
19 Patch4: smeserver-trac-0.4-locale-2008-04-23.patch
20 Patch5: smeserver-trac-0.4-newlines.patch
21 Patch6: smeserver-trac-0.4-add2general.patch
22 Patch7: smeserver-trac-0.4-locale-2008-05-05.patch
23 Patch8: smeserver-trac-0.4-locale-2008-05-07.patch
24 Patch9: smeserver-trac-0.4-locale-2008-05-21.patch
25 Patch10: smeserver-trac-0.4-locale-2008-06-27.patch
26 Patch11: smeserver-trac-0.4-locale-2008-07-01.patch
27 Patch12: smeserver-trac-0.4-comment.patch
28 Patch13: smeserver-trac-0.4-locale-2008-09-23.patch
29 Patch14: smeserver-trac-0.4-locale-2008-10-14.patch
30 Patch15: smeserver-trac-0.4-locale-2008-11-05.patch
31 Patch16: smeserver-trac-0.4-locale-2008-11-30.patch
32 Patch17: smeserver-trac-0.4-lexicon-extra-entry-tag-fix.patch
33 Patch18: smeserver-trac-0.4-trac-ini-ownership.patch
34 Patch19: smeserver-trac-0.4-locale-2009-01-01.patch
35 Patch20: smeserver-trac-0.4-locale-2009-03-01.patch
36 Patch21: smeserver-trac-0.4-locale-2009-03-03.patch
37 Patch22: smeserver-trac-0.4-locale-2009-04-27.patch
38 Patch23: smeserver-trac-0.4-locale-2009-05-20.patch
39 Patch24: smeserver-trac-0.4-locale-2009-08-24.patch
40 Patch25: smeserver-trac-0.4-locale-2009-10-27.patch
41 Patch26: smeserver-trac-0.4-locale-2010-03-02.patch
42 Patch27: smeserver-trac-0.4-locale-2010-05-23.patch
43 Patch28: smeserver-trac-0.4-locale-2011-03-06.patch
44 Patch29: smeserver-trac-0.4-locale-2011-04-27.patch
45 BuildArch: noarch
46 BuildRequires: e-smith-devtools
47 BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
48 Requires: trac >= 0.10.3
49 Requires: smeserver-mod_python
50 Requires: perl-Config-IniFiles
51 Requires: python-docutils >= 0.4
52 Requires: python-silvercity >= 0.9.5
53 Requires: python-setuptools >= 0.6
54 Requires: smeserver-subversion >= 1.2
55 Requires: subversion-python
56 Requires: smeserver-release >= 7
57 Requires: httpd >= 2
58 Requires: e-smith-formmagick >= 1.4.0-12
59
60
61 %description
62 Trac project environments integration for SME Server 7
63
64 %changelog
65 * Wed Apr 27 2011 SME Translation Server <translations@contribs.org> 0.4-66.sme
66 - apply locale 2011-04-27 patch
67
68 * Sun Mar 06 2011 SME Translation Server <translations@contribs.org> 0.4-65.sme
69 - apply locale 2011-03-06 patch
70
71 * Sun May 23 2010 SME Translation Server <translations@contribs.org> 0.4-64.sme
72 - apply locale 2010-05-23 patch
73
74 * Tue Mar 02 2010 SME Translation Server <translations@contribs.org> 0.4-63.sme
75 - apply locale 2010-03-02 patch
76
77 * Tue Oct 27 2009 SME Translation Server <translations@contribs.org> 0.4-62.sme
78 - apply locale 2009-10-27 patch
79
80 * Mon Aug 24 2009 SME Translation Server <translations@contribs.org> 0.4-61.sme
81 - apply locale 2009-08-24 patch
82
83 * Wed May 20 2009 SME Translation Server <translations@contribs.org> 0.4-60.sme
84 - apply locale 2009-05-20 patch
85
86 * Mon Apr 27 2009 SME Translation Server <translations@contribs.org> 0.4-59.sme
87 - apply locale 2009-04-27 patch
88
89 * Tue Mar 03 2009 SME Translation Server
90 - apply locale 2009-03-03 patch
91
92 * Sun Mar 1 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 0.4-57
93 - Apply 1 Mar 2009 locale patch [SME: 5018]
94
95 * Thu Jan 1 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 0.4-56
96 - Apply 1 Jan 2009 locale patch [SME: 4900]
97
98 * Tue Dec 30 2008 Marco Hess <marco.hess@through-ip.com> 0.4-55
99 - Updated bug references in spec file.
100
101 * Tue Dec 30 2008 Marco Hess <marco.hess@through-ip.com> 0.4-54
102 - Fixed trac.ini file ownership problem after trac-project-modify for [SME: 4428]
103
104 * Tue Dec 30 2008 Marco Hess <marco.hess@through-ip.com> 0.4-53
105 - Fixed error in lexicon file wich had an extra <entry> tag for [SME: 4902]
106
107 * Sun Nov 30 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 0.4-52
108 - Apply 30 Nov 2008 locale patch
109
110 * Wed Nov 5 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 0.4-51
111 - Apply 5 Nov 2008 locale patch
112
113 * Tue Oct 14 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 0.4-50
114 - Apply 14 Oct 2008 locale patch
115
116 * Tue Sep 23 2008 Stephen Noble <support@dungog.net> 0.4-49
117 - Apply 23 Sep 2008 locale patch
118
119 * Tue Jul 1 2008 Shad L. Lords <slords@mail.com> 0.4-48
120 - Remove comment header from locale file
121
122 * Tue Jul 1 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 0.4-47
123 - Apply 1 July 2008 locale patch
124
125 * Fri Jun 27 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 0.4-46
126 - Apply 27 Jun 2008 locale patch
127
128 * Thu May 21 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 0.4-45
129 - Apply 21 May 2008 locale patch
130
131 * Wed May 7 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 0.4-44
132 - Apply 7 May 2008 locale patch
133
134 * Mon May 5 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 0.4-43
135 - Apply 5 May 2008 locale patch
136
137 * Sat Apr 26 2008 Shad L. Lords <slords@mail.com> 0.4-42
138 - Fix patch to not include locales
139 - Add patch to fix newlines
140
141 * Sat Apr 26 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 0.4-41
142 - Add common <base> tags to e-smith-formmagick's general
143
144 * Wed Apr 23 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 0.4-40
145 - Apply 23 April 2008 locale patch
146
147 * Tue Apr 22 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 0.4-39
148 - Fix commit date in changelog entry
149
150 * Tue Apr 22 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 0.4-38
151 - Apply 22 April 2008 locale patch
152
153 * Tue Apr 1 2008 Shad L. Lords <slords@mail.com> 0.4-37
154 - Update to UTF-8 translations
155
156 * Wed Mar 12 2008 Marco Hess <marco.hess@through-ip.com>
157 - 0.4-36
158 Update the trac lexicon file for some minor spelling errors and
159 a minor updates for consistency.
160
161 * Wed Dec 5 2007 Marco Hess <marco.hess@through-ip.com>
162 - 0.4-35
163 Removed patch again, as using sighup seems to be creating more
164 problems than it solved.
165
166 * Wed Dec 5 2007 Marco Hess <marco.hess@through-ip.com>
167 - 0.4-34
168 Added dependency so that subversion-python bindings package is
169 installed. Changed the create links script so that the trac updates
170 use sighup to restart httpd services instead of sigusr1
171
172 * Tue Aug 14 2007 Marco Hess <marco.hess@through-ip.com>
173 - 0.4-33
174 Updated spec file with new release tag.
175 Made further changes to spec file as per smeserver-mod_python
176 spec file.
177
178 * Mon Aug 13 2007 Marco Hess <marco.hess@through-ip.com>
179 - 0.4-32
180 Updated the Wiki default start page to no longer
181 mention the Trac version number in preparation for use
182 with trac 0.10.4
183
184 * Sat Jul 13 2007 Marco Hess <marco.hess@through-ip.com>
185 - 0.4-31
186 Fixed bugzilla bug 3129 as per indicated patch
187 (Corrected 'neq' to 'ne' in trac-project-repository-modify)
188
189 * Sat Apr 7 2007 Marco Hess <marco.hess@through-ip.com>
190 - 0.4-1
191 Implemented a mechanism whereby when there are more than
192 one domain configured on the server, it is possible to
193 select in which domains the Trac environment will be
194 visible.
195
196 * Sat Apr 7 2007 Marco Hess <marco.hess@through-ip.com>
197 - 0.3-2
198 Removed the hack for the perl Config IniFiles and replaced
199 with proper rpm perl-Config-IniFiles
200
201 * Mon Apr 2 2007 Marco Hess <marco.hess@through-ip.com>
202 - 0.3-1
203 Added python-docutils as a required package to support
204 ReStructuredText formatting in the Trac Wiki.
205
206 * Mon Apr 2 2007 Marco Hess <marco.hess@through-ip.com>
207 - 0.3-0
208 Readied package for import in smeserver-contribs CVS space.
209 and removed the hack for the true http basic authentication
210 logout (Trac Ticket 3577) as this patch is now applied
211 in the trac rpm.
212
213 * Wed Mar 28 2007 Marco Hess <marco.hess@through-ip.com>
214 - 0.2-10
215 Included an option in the httpd template to include a
216 PythonOption TracLocale. The language is pulled from the
217 configuration database sysconfig->Language entry so it
218 reflects the installed system locale.
219
220 * Tue Mar 27 2007 Marco Hess <marco.hess@through-ip.com>
221 - 0.2-9
222 Bumped the number to test upgrades not deleting the
223 existing trac project environments.
224
225 * Tue Mar 27 2007 Marco Hess <marco.hess@through-ip.com>
226 - 0.2-8
227 Still a small error :-) in the uninstall that still
228 removed existing trac project environments.
229
230 * Tue Mar 27 2007 Marco Hess <marco.hess@through-ip.com>
231 - 0.2-7
232 Bumped the number to test upgrades not deleting the
233 existing trac project environments.
234
235 * Tue Mar 27 2007 Marco Hess <marco.hess@through-ip.com>
236 - 0.2-6
237 Fixed the spec file so that on upgrades of the
238 smeserver-trac package we don't throw away the
239 existing Trac project environments :-(
240 Also added missing account name error message to
241 en-us locale.
242
243 * Tue Mar 27 2007 Marco Hess <marco.hess@through-ip.com>
244 - 0.2-5
245 Added a View action to the Trac projects table in the
246 server-manager panel so the admin can quickly view the
247 Trac project page from there.
248
249 * Tue Mar 27 2007 Marco Hess <marco.hess@through-ip.com>
250 - 0.2-4
251 Added requirement for python-silvercity so more syntax
252 highlighting comes pre-installed with Trac on SME :-)
253
254 * Mon Mar 26 2007 Marco Hess <marco.hess@through-ip.com>
255 - 0.2-3
256 Fixed error in setting up syslog logging in trac.ini
257
258 * Mon Mar 26 2007 Marco Hess <marco.hess@through-ip.com>
259 - 0.2-2
260 Added requirement for python-setuptools as this is
261 needed to get the WebAdmin plugin to work.
262
263 * Mon Mar 26 2007 Marco Hess <marco.hess@through-ip.com>
264 - 0.2-1
265 Removed the creation of a link to the Trac project site as this
266 caused problems with the Modify and Remove links in the
267 server-manager panel.
268
269 * Mon Mar 26 2007 Marco Hess <marco.hess@through-ip.com>
270 - 0.2-0
271 Converted for Mezzanine build and extracted the mod_python
272 requirements into smeserver-mod_python.
273
274 * Wed Mar 21 2007 Marco Hess <marco.hess@through-ip.com>
275 - 0.1
276 Initial package
277
278 %prep
279
280 %setup
281 %patch1 -p1
282 %patch2 -p1
283 %patch3 -p1
284 %patch4 -p1
285 %patch5 -p1
286 %patch6 -p1
287 %patch7 -p1
288 %patch8 -p1
289 %patch9 -p1
290 %patch10 -p1
291 %patch11 -p1
292 %patch12 -p1
293 %patch13 -p1
294 %patch14 -p1
295 %patch15 -p1
296 %patch16 -p1
297 %patch17 -p1
298 %patch18 -p1
299 %patch19 -p1
300 %patch20 -p1
301 %patch21 -p1
302 %patch22 -p1
303 %patch23 -p1
304 %patch24 -p1
305 %patch25 -p1
306 %patch26 -p1
307 %patch27 -p1
308 %patch28 -p1
309 %patch29 -p1
310
311 %build
312 perl createlinks
313
314 DEFAULTS=root/etc/e-smith/db/configuration/defaults/maxTracNameLength
315 mkdir -p $DEFAULTS
316 echo "31" > $DEFAULTS/type
317
318 %install
319 rm -rf $RPM_BUILD_ROOT
320 (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
321 rm -f %{name}-%{version}-filelist
322 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
323
324 %clean
325 rm -rf $RPM_BUILD_ROOT
326
327 %post
328 if [ "$1" = "1" ] ; then # first install
329
330 echo "Creating trac projects parent directory ..."
331 mkdir -p /home/e-smith/files/trac
332
333 echo "Inserting SME Powered logo in Trac Footer ..."
334 cp /usr/share/trac/templates/footer.cs.sme-patched /usr/share/trac/templates/footer.cs
335 chown www:www /usr/share/trac/templates/footer.cs
336
337 echo "Creating custom SME WikeStart page ..."
338 mv /usr/share/trac/wiki-default/WikiStart.sme-patched /usr/share/trac/wiki-default/WikiStart
339
340 echo "Enabling mod_python for webserver ..."
341 /sbin/e-smith/db configuration set modPython service status enabled
342
343 echo "Setting maximum trac projects name length to 31 ..."
344 /sbin/e-smith/db configuration set maxTracNameLength 31
345
346 echo "You need to create an pseudonym or a group called 'trac'"
347 echo " to support the reply-to address in the trac email notifications ..."
348
349 echo "Expanding templates ..."
350 /sbin/e-smith/signal-event trac-modify
351
352 echo "Rebuilding server-manager (this can take a while) ..."
353
354 /etc/e-smith/events/actions/initialize-default-databases
355 /etc/e-smith/events/actions/navigation-conf
356 /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
357 /etc/rc7.d/S86httpd-e-smith sighup
358 fi
359 true
360
361 %preun
362 if [ "$1" = "0" ] ; then # last uninstall
363 /sbin/e-smith/signal-event trac-delete
364 /sbin/e-smith/signal-event trac-modify
365 fi
366 true
367
368 %postun
369 if [ "$1" = "0" ] ; then # last uninstall
370 # Remove the parent directory
371 echo "Removing trac projects parent directory ..."
372 /bin/rmdir /home/e-smith/files/trac
373 fi
374 true
375
376 # Expand the server-manager templates to update/remove
377 # references to the smeserver-trac panel
378 echo "Rebuilding server-manager (this can take a while) ..."
379 /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
380 /etc/e-smith/events/actions/navigation-conf
381 /etc/rc7.d/S86httpd-e-smith sighup
382
383 %files -f %{name}-%{version}-filelist
384 %defattr(-,root,root)

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed