/[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.25 - (show annotations) (download)
Sun Nov 30 22:07:33 2008 UTC (15 years, 5 months ago) by snetram
Branch: MAIN
CVS Tags: smeserver-trac-0_4-52_el4_sme
Changes since 1.24: +7 -2 lines
* Sun Nov 30 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 0.4-52
- Apply 30 Nov 2008 locale patch

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

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