/[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.36 - (show annotations) (download)
Wed Mar 3 04:03:57 2010 UTC (14 years, 2 months ago) by slords
Branch: MAIN
CVS Tags: smeserver-trac-0_4-63_el4_sme
Changes since 1.35: +7 -2 lines
* Tue Mar 02 2010 SME Translation Server <translations@contribs.org> 0.4-63.sme
- apply locale 2010-03-02 patch

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

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