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