/[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.32 - (show annotations) (download)
Mon Apr 27 16:11:21 2009 UTC (15 years ago) by slords
Branch: MAIN
Changes since 1.31: +7 -2 lines
Apply locale changes

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

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