/[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.9 - (show annotations) (download)
Tue Apr 22 09:32:03 2008 UTC (16 years, 1 month ago) by snetram
Branch: MAIN
Changes since 1.8: +3 -3 lines
Fixed email address in spec file... sigh

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

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