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