/[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.20 - (show annotations) (download)
Tue Sep 23 09:34:19 2008 UTC (16 years, 1 month ago) by dungog
Branch: MAIN
CVS Tags: smeserver-trac-0_4-49_el4_sme
Changes since 1.19: +7 -2 lines
* Tue Sep 23 2008 Stephen Noble <support@dungog.net> 0.4-49
- Apply 23 Sep 2008 locale patch

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

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