/[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.29 - (hide annotations) (download)
Thu Jan 1 11:42:40 2009 UTC (15 years, 4 months ago) by snetram
Branch: MAIN
CVS Tags: smeserver-trac-0_4-56_el4_sme
Changes since 1.28: +7 -2 lines
* Thu Jan  1 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 0.4-56
- Apply  1 Jan 2009 locale patch [SME: 4900]

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

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