/[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.34 - (hide annotations) (download)
Mon Aug 24 17:58:13 2009 UTC (15 years, 2 months ago) by slords
Branch: MAIN
Changes since 1.33: +7 -2 lines
Translation updates

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

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