/[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.40 - (hide annotations) (download)
Tue Mar 20 15:39:19 2012 UTC (12 years, 7 months ago) by slords
Branch: MAIN
CVS Tags: smeserver-trac-0_4-67_el4_sme, HEAD
Changes since 1.39: +7 -2 lines
* Tue Mar 20 2012 SME Translation Server <translations@contribs.org> 0.4-67.el6
- apply locale 2012-03-20 patch

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

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