/[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.16 - (hide annotations) (download)
Wed May 21 20:27:23 2008 UTC (16 years ago) by snetram
Branch: MAIN
Changes since 1.15: +7 -2 lines
* Thu May 21 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 0.4-45
- Apply 21 May 2008 locale patch

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

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