/[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.28 - (show annotations) (download)
Mon Dec 29 15:40:22 2008 UTC (15 years, 4 months ago) by marcohess
Branch: MAIN
CVS Tags: smeserver-trac-0_4-55_el4_sme
Changes since 1.27: +7 -4 lines
Fixed up bug references in spec file.

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

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