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

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

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


Revision 1.33 - (hide annotations) (download)
Wed May 20 18:16:28 2009 UTC (15 years ago) by slords
Branch: MAIN
Changes since 1.32: +7 -2 lines
Apply patches

1 slords 1.33 # $Id: smeserver-trac.spec,v 1.32 2009/04/27 16:11:21 slords Exp $
2 slords 1.5 # Authority: marcohess
3     # Name: Marco Hess
4    
5 slords 1.1 %define name smeserver-trac
6     %define version 0.4
7 slords 1.33 %define release 60
8 slords 1.1
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 slords 1.4 Patch1: smeserver-trac-0.4-lexicon-spelling-update.patch
17     Patch2: smeserver-trac-0.4-locale-2008-04-01.patch
18 snetram 1.6 Patch3: smeserver-trac-0.4-locale-2008-04-22.patch
19 snetram 1.10 Patch4: smeserver-trac-0.4-locale-2008-04-23.patch
20 slords 1.12 Patch5: smeserver-trac-0.4-newlines.patch
21     Patch6: smeserver-trac-0.4-add2general.patch
22 snetram 1.14 Patch7: smeserver-trac-0.4-locale-2008-05-05.patch
23 snetram 1.15 Patch8: smeserver-trac-0.4-locale-2008-05-07.patch
24 snetram 1.16 Patch9: smeserver-trac-0.4-locale-2008-05-21.patch
25 snetram 1.17 Patch10: smeserver-trac-0.4-locale-2008-06-27.patch
26 snetram 1.18 Patch11: smeserver-trac-0.4-locale-2008-07-01.patch
27 slords 1.19 Patch12: smeserver-trac-0.4-comment.patch
28 dungog 1.20 Patch13: smeserver-trac-0.4-locale-2008-09-23.patch
29 snetram 1.21 Patch14: smeserver-trac-0.4-locale-2008-10-14.patch
30 snetram 1.22 Patch15: smeserver-trac-0.4-locale-2008-11-05.patch
31 snetram 1.25 Patch16: smeserver-trac-0.4-locale-2008-11-30.patch
32 marcohess 1.26 Patch17: smeserver-trac-0.4-lexicon-extra-entry-tag-fix.patch
33 marcohess 1.27 Patch18: smeserver-trac-0.4-trac-ini-ownership.patch
34 snetram 1.29 Patch19: smeserver-trac-0.4-locale-2009-01-01.patch
35 snetram 1.30 Patch20: smeserver-trac-0.4-locale-2009-03-01.patch
36 slords 1.31 Patch21: smeserver-trac-0.4-locale-2009-03-03.patch
37 slords 1.32 Patch22: smeserver-trac-0.4-locale-2009-04-27.patch
38 slords 1.33 Patch23: smeserver-trac-0.4-locale-2009-05-20.patch
39 slords 1.1 BuildArch: noarch
40     BuildRequires: e-smith-devtools
41     BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
42     Requires: trac >= 0.10.3
43     Requires: smeserver-mod_python
44     Requires: perl-Config-IniFiles
45     Requires: python-docutils >= 0.4
46     Requires: python-silvercity >= 0.9.5
47     Requires: python-setuptools >= 0.6
48     Requires: smeserver-subversion >= 1.2
49 slords 1.2 Requires: subversion-python
50 slords 1.1 Requires: smeserver-release >= 7
51     Requires: httpd >= 2
52 slords 1.13 Requires: e-smith-formmagick >= 1.4.0-12
53 slords 1.1
54 marcohess 1.3
55 slords 1.1 %description
56     Trac project environments integration for SME Server 7
57    
58     %changelog
59 slords 1.33 * Wed May 20 2009 SME Translation Server <translations@contribs.org> 0.4-60.sme
60     - apply locale 2009-05-20 patch
61    
62 slords 1.32 * Mon Apr 27 2009 SME Translation Server <translations@contribs.org> 0.4-59.sme
63     - apply locale 2009-04-27 patch
64    
65 slords 1.31 * Tue Mar 03 2009 SME Translation Server
66     - apply locale 2009-03-03 patch
67    
68 snetram 1.30 * Sun Mar 1 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 0.4-57
69     - Apply 1 Mar 2009 locale patch [SME: 5018]
70    
71 snetram 1.29 * Thu Jan 1 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 0.4-56
72     - Apply 1 Jan 2009 locale patch [SME: 4900]
73    
74 marcohess 1.28 * Tue Dec 30 2008 Marco Hess <marco.hess@through-ip.com> 0.4-55
75     - Updated bug references in spec file.
76    
77 marcohess 1.27 * Tue Dec 30 2008 Marco Hess <marco.hess@through-ip.com> 0.4-54
78 marcohess 1.28 - Fixed trac.ini file ownership problem after trac-project-modify for [SME: 4428]
79 marcohess 1.27
80 marcohess 1.26 * Tue Dec 30 2008 Marco Hess <marco.hess@through-ip.com> 0.4-53
81 marcohess 1.28 - Fixed error in lexicon file wich had an extra <entry> tag for [SME: 4902]
82 marcohess 1.26
83 snetram 1.25 * Sun Nov 30 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 0.4-52
84     - Apply 30 Nov 2008 locale patch
85    
86 snetram 1.22 * Wed Nov 5 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 0.4-51
87     - Apply 5 Nov 2008 locale patch
88    
89 snetram 1.21 * Tue Oct 14 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 0.4-50
90     - Apply 14 Oct 2008 locale patch
91    
92 dungog 1.20 * Tue Sep 23 2008 Stephen Noble <support@dungog.net> 0.4-49
93     - Apply 23 Sep 2008 locale patch
94    
95 slords 1.19 * Tue Jul 1 2008 Shad L. Lords <slords@mail.com> 0.4-48
96     - Remove comment header from locale file
97    
98 snetram 1.18 * Tue Jul 1 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 0.4-47
99     - Apply 1 July 2008 locale patch
100    
101 snetram 1.17 * Fri Jun 27 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 0.4-46
102     - Apply 27 Jun 2008 locale patch
103    
104 snetram 1.16 * Thu May 21 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 0.4-45
105     - Apply 21 May 2008 locale patch
106    
107 snetram 1.15 * Wed May 7 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 0.4-44
108     - Apply 7 May 2008 locale patch
109    
110 snetram 1.14 * Mon May 5 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 0.4-43
111     - Apply 5 May 2008 locale patch
112    
113 slords 1.12 * Sat Apr 26 2008 Shad L. Lords <slords@mail.com> 0.4-42
114     - Fix patch to not include locales
115     - Add patch to fix newlines
116    
117 snetram 1.11 * Sat Apr 26 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 0.4-41
118     - Add common <base> tags to e-smith-formmagick's general
119    
120 snetram 1.10 * Wed Apr 23 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 0.4-40
121     - Apply 23 April 2008 locale patch
122    
123 snetram 1.9 * Tue Apr 22 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 0.4-39
124 snetram 1.8 - Fix commit date in changelog entry
125    
126 snetram 1.9 * Tue Apr 22 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 0.4-38
127 snetram 1.6 - Apply 22 April 2008 locale patch
128    
129 slords 1.4 * Tue Apr 1 2008 Shad L. Lords <slords@mail.com> 0.4-37
130     - Update to UTF-8 translations
131    
132 marcohess 1.3 * Wed Mar 12 2008 Marco Hess <marco.hess@through-ip.com>
133     - 0.4-36
134     Update the trac lexicon file for some minor spelling errors and
135     a minor updates for consistency.
136    
137 slords 1.2 * Wed Dec 5 2007 Marco Hess <marco.hess@through-ip.com>
138     - 0.4-35
139     Removed patch again, as using sighup seems to be creating more
140     problems than it solved.
141    
142     * Wed Dec 5 2007 Marco Hess <marco.hess@through-ip.com>
143     - 0.4-34
144     Added dependency so that subversion-python bindings package is
145     installed. Changed the create links script so that the trac updates
146     use sighup to restart httpd services instead of sigusr1
147    
148 slords 1.1 * Tue Aug 14 2007 Marco Hess <marco.hess@through-ip.com>
149     - 0.4-33
150     Updated spec file with new release tag.
151     Made further changes to spec file as per smeserver-mod_python
152     spec file.
153    
154     * Mon Aug 13 2007 Marco Hess <marco.hess@through-ip.com>
155     - 0.4-32
156     Updated the Wiki default start page to no longer
157     mention the Trac version number in preparation for use
158     with trac 0.10.4
159    
160     * Sat Jul 13 2007 Marco Hess <marco.hess@through-ip.com>
161     - 0.4-31
162     Fixed bugzilla bug 3129 as per indicated patch
163     (Corrected 'neq' to 'ne' in trac-project-repository-modify)
164    
165     * Sat Apr 7 2007 Marco Hess <marco.hess@through-ip.com>
166     - 0.4-1
167     Implemented a mechanism whereby when there are more than
168     one domain configured on the server, it is possible to
169     select in which domains the Trac environment will be
170     visible.
171    
172     * Sat Apr 7 2007 Marco Hess <marco.hess@through-ip.com>
173     - 0.3-2
174     Removed the hack for the perl Config IniFiles and replaced
175     with proper rpm perl-Config-IniFiles
176    
177     * Mon Apr 2 2007 Marco Hess <marco.hess@through-ip.com>
178     - 0.3-1
179     Added python-docutils as a required package to support
180     ReStructuredText formatting in the Trac Wiki.
181    
182     * Mon Apr 2 2007 Marco Hess <marco.hess@through-ip.com>
183     - 0.3-0
184     Readied package for import in smeserver-contribs CVS space.
185     and removed the hack for the true http basic authentication
186     logout (Trac Ticket 3577) as this patch is now applied
187     in the trac rpm.
188    
189     * Wed Mar 28 2007 Marco Hess <marco.hess@through-ip.com>
190     - 0.2-10
191     Included an option in the httpd template to include a
192     PythonOption TracLocale. The language is pulled from the
193     configuration database sysconfig->Language entry so it
194     reflects the installed system locale.
195    
196     * Tue Mar 27 2007 Marco Hess <marco.hess@through-ip.com>
197     - 0.2-9
198     Bumped the number to test upgrades not deleting the
199     existing trac project environments.
200    
201     * Tue Mar 27 2007 Marco Hess <marco.hess@through-ip.com>
202     - 0.2-8
203     Still a small error :-) in the uninstall that still
204     removed existing trac project environments.
205    
206     * Tue Mar 27 2007 Marco Hess <marco.hess@through-ip.com>
207     - 0.2-7
208     Bumped the number to test upgrades not deleting the
209     existing trac project environments.
210    
211     * Tue Mar 27 2007 Marco Hess <marco.hess@through-ip.com>
212     - 0.2-6
213     Fixed the spec file so that on upgrades of the
214     smeserver-trac package we don't throw away the
215     existing Trac project environments :-(
216     Also added missing account name error message to
217     en-us locale.
218    
219     * Tue Mar 27 2007 Marco Hess <marco.hess@through-ip.com>
220     - 0.2-5
221     Added a View action to the Trac projects table in the
222     server-manager panel so the admin can quickly view the
223     Trac project page from there.
224    
225     * Tue Mar 27 2007 Marco Hess <marco.hess@through-ip.com>
226     - 0.2-4
227     Added requirement for python-silvercity so more syntax
228     highlighting comes pre-installed with Trac on SME :-)
229    
230     * Mon Mar 26 2007 Marco Hess <marco.hess@through-ip.com>
231     - 0.2-3
232     Fixed error in setting up syslog logging in trac.ini
233    
234     * Mon Mar 26 2007 Marco Hess <marco.hess@through-ip.com>
235     - 0.2-2
236     Added requirement for python-setuptools as this is
237     needed to get the WebAdmin plugin to work.
238    
239     * Mon Mar 26 2007 Marco Hess <marco.hess@through-ip.com>
240     - 0.2-1
241     Removed the creation of a link to the Trac project site as this
242     caused problems with the Modify and Remove links in the
243     server-manager panel.
244    
245     * Mon Mar 26 2007 Marco Hess <marco.hess@through-ip.com>
246     - 0.2-0
247     Converted for Mezzanine build and extracted the mod_python
248     requirements into smeserver-mod_python.
249    
250     * Wed Mar 21 2007 Marco Hess <marco.hess@through-ip.com>
251     - 0.1
252     Initial package
253    
254     %prep
255    
256     %setup
257 slords 1.4 %patch1 -p1
258     %patch2 -p1
259 snetram 1.6 %patch3 -p1
260 snetram 1.10 %patch4 -p1
261 snetram 1.11 %patch5 -p1
262 slords 1.12 %patch6 -p1
263 snetram 1.14 %patch7 -p1
264 snetram 1.15 %patch8 -p1
265 snetram 1.16 %patch9 -p1
266 snetram 1.17 %patch10 -p1
267 snetram 1.18 %patch11 -p1
268 slords 1.19 %patch12 -p1
269 dungog 1.20 %patch13 -p1
270 snetram 1.21 %patch14 -p1
271 snetram 1.22 %patch15 -p1
272 snetram 1.25 %patch16 -p1
273 marcohess 1.26 %patch17 -p1
274 marcohess 1.27 %patch18 -p1
275 snetram 1.29 %patch19 -p1
276 snetram 1.30 %patch20 -p1
277 slords 1.31 %patch21 -p1
278 slords 1.32 %patch22 -p1
279 slords 1.33 %patch23 -p1
280 marcohess 1.3
281 slords 1.1 %build
282     perl createlinks
283    
284     DEFAULTS=root/etc/e-smith/db/configuration/defaults/maxTracNameLength
285     mkdir -p $DEFAULTS
286     echo "31" > $DEFAULTS/type
287    
288     %install
289     rm -rf $RPM_BUILD_ROOT
290     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
291     rm -f %{name}-%{version}-filelist
292     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
293    
294     %clean
295     rm -rf $RPM_BUILD_ROOT
296    
297     %post
298     if [ "$1" = "1" ] ; then # first install
299    
300     echo "Creating trac projects parent directory ..."
301     mkdir -p /home/e-smith/files/trac
302    
303     echo "Inserting SME Powered logo in Trac Footer ..."
304     cp /usr/share/trac/templates/footer.cs.sme-patched /usr/share/trac/templates/footer.cs
305     chown www:www /usr/share/trac/templates/footer.cs
306    
307     echo "Creating custom SME WikeStart page ..."
308     mv /usr/share/trac/wiki-default/WikiStart.sme-patched /usr/share/trac/wiki-default/WikiStart
309    
310     echo "Enabling mod_python for webserver ..."
311     /sbin/e-smith/db configuration set modPython service status enabled
312    
313     echo "Setting maximum trac projects name length to 31 ..."
314     /sbin/e-smith/db configuration set maxTracNameLength 31
315    
316     echo "You need to create an pseudonym or a group called 'trac'"
317     echo " to support the reply-to address in the trac email notifications ..."
318    
319     echo "Expanding templates ..."
320     /sbin/e-smith/signal-event trac-modify
321    
322     echo "Rebuilding server-manager (this can take a while) ..."
323    
324     /etc/e-smith/events/actions/initialize-default-databases
325     /etc/e-smith/events/actions/navigation-conf
326     /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
327 slords 1.2 /etc/rc7.d/S86httpd-e-smith sighup
328 slords 1.1 fi
329     true
330    
331     %preun
332     if [ "$1" = "0" ] ; then # last uninstall
333     /sbin/e-smith/signal-event trac-delete
334     /sbin/e-smith/signal-event trac-modify
335     fi
336     true
337    
338     %postun
339     if [ "$1" = "0" ] ; then # last uninstall
340     # Remove the parent directory
341     echo "Removing trac projects parent directory ..."
342     /bin/rmdir /home/e-smith/files/trac
343     fi
344     true
345    
346     # Expand the server-manager templates to update/remove
347     # references to the smeserver-trac panel
348     echo "Rebuilding server-manager (this can take a while) ..."
349     /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
350     /etc/e-smith/events/actions/navigation-conf
351 slords 1.2 /etc/rc7.d/S86httpd-e-smith sighup
352 slords 1.1
353     %files -f %{name}-%{version}-filelist
354     %defattr(-,root,root)

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