/[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.19 - (hide annotations) (download)
Tue Jul 1 21:21:29 2008 UTC (15 years, 10 months ago) by slords
Branch: MAIN
CVS Tags: smeserver-trac-0_4-48_el4_sme
Changes since 1.18: +7 -2 lines
* Tue Jul 1 2008 Shad L. Lords <slords@mail.com> 0.4-48
- Remove comment header from locale file

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

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