/[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.38 - (hide annotations) (download)
Sun Mar 6 15:28:39 2011 UTC (13 years, 8 months ago) by slords
Branch: MAIN
Changes since 1.37: +7 -2 lines
Apply updates

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

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