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