/[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.21 - (hide annotations) (download)
Tue Oct 14 14:47:04 2008 UTC (16 years ago) by snetram
Branch: MAIN
CVS Tags: smeserver-trac-0_4-50_el4_sme
Changes since 1.20: +7 -2 lines
* Tue Oct 14 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 0.4-50
- Apply 14 Oct 2008 locale patch

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

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