/[smecontribs]/rpms/smeserver-trac/contribs7/smeserver-trac.spec
ViewVC logotype

Contents of /rpms/smeserver-trac/contribs7/smeserver-trac.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.10 - (show annotations) (download)
Wed Apr 23 18:34:48 2008 UTC (16 years, 1 month ago) by snetram
Branch: MAIN
CVS Tags: smeserver-trac-0_4-40_el4_sme
Changes since 1.9: +7 -2 lines
* Wed Apr 23 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 0.4-40
- Apply 23 April 2008 locale patch

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

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed