/[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.29 - (show annotations) (download)
Thu Jan 1 11:42:40 2009 UTC (15 years, 10 months ago) by snetram
Branch: MAIN
CVS Tags: smeserver-trac-0_4-56_el4_sme
Changes since 1.28: +7 -2 lines
* Thu Jan  1 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 0.4-56
- Apply  1 Jan 2009 locale patch [SME: 4900]

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

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