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