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