/[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.31 - (hide annotations) (download)
Tue Mar 3 21:37:00 2009 UTC (15 years, 2 months ago) by slords
Branch: MAIN
CVS Tags: smeserver-trac-0_4-58_el4_sme
Changes since 1.30: +7 -2 lines
Locale updates

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

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