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