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