/[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.18 - (hide annotations) (download)
Tue Jul 1 20:12:10 2008 UTC (16 years, 4 months ago) by snetram
Branch: MAIN
CVS Tags: smeserver-trac-0_4-47_el4_sme
Changes since 1.17: +7 -2 lines
* Tue Jul 1 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 0.4-47
- Apply 1 July 2008 locale patch

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

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