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