/[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.4 - (show annotations) (download)
Tue Apr 1 18:50:09 2008 UTC (16 years, 1 month ago) by slords
Branch: MAIN
CVS Tags: smeserver-trac-0_4-37_el4_sme
Changes since 1.3: +9 -4 lines
* Tue Apr 1 2008 Shad L. Lords <slords@mail.com> 0.4-37
- Update to UTF-8 translations

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

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