/[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.28 - (hide annotations) (download)
Mon Dec 29 15:40:22 2008 UTC (15 years, 10 months ago) by marcohess
Branch: MAIN
CVS Tags: smeserver-trac-0_4-55_el4_sme
Changes since 1.27: +7 -4 lines
Fixed up bug references in spec file.

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

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