/[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.35 - (hide annotations) (download)
Tue Oct 27 17:43:52 2009 UTC (15 years ago) by slords
Branch: MAIN
Changes since 1.34: +7 -2 lines
Translation updates

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

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