/[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.31 - (show annotations) (download)
Tue Mar 3 21:37:00 2009 UTC (15 years, 2 months ago) by slords
Branch: MAIN
CVS Tags: smeserver-trac-0_4-58_el4_sme
Changes since 1.30: +7 -2 lines
Locale updates

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

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