/[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.26 - (hide annotations) (download)
Mon Dec 29 14:28:09 2008 UTC (15 years, 10 months ago) by marcohess
Branch: MAIN
Changes since 1.25: +7 -2 lines
removed the superfluous <entry> tag in the lexicon file. This fixed Bug #4902

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

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