/[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.21 - (show annotations) (download)
Tue Oct 14 14:47:04 2008 UTC (15 years, 7 months ago) by snetram
Branch: MAIN
CVS Tags: smeserver-trac-0_4-50_el4_sme
Changes since 1.20: +7 -2 lines
* Tue Oct 14 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 0.4-50
- Apply 14 Oct 2008 locale patch

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

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