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