/[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.37 - (hide annotations) (download)
Sun May 23 19:14:36 2010 UTC (14 years, 5 months ago) by slords
Branch: MAIN
CVS Tags: smeserver-trac-0_4-64_el4_sme
Changes since 1.36: +7 -2 lines
* Sun May 23 2010 SME Translation Server <translations@contribs.org> 0.4-64.sme
- apply locale 2010-05-23 patch

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

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