/[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.30 - (hide annotations) (download)
Sun Mar 1 19:29:15 2009 UTC (15 years, 8 months ago) by snetram
Branch: MAIN
CVS Tags: smeserver-trac-0_4-57_el4_sme
Changes since 1.29: +7 -2 lines
* Sun Mar  1 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 0.4-57
- Apply  1 Mar 2009 locale patch [SME: 5018]

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

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