/[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.24 - (show annotations) (download)
Tue Nov 25 16:20:32 2008 UTC (15 years, 11 months ago) by slords
Branch: MAIN
Changes since 1.23: +0 -0 lines
Restore

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

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