/[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.38 - (show annotations) (download)
Sun Mar 6 15:28:39 2011 UTC (13 years, 8 months ago) by slords
Branch: MAIN
Changes since 1.37: +7 -2 lines
Apply updates

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

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