/[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.15 - (hide annotations) (download)
Wed May 7 19:48:52 2008 UTC (16 years ago) by snetram
Branch: MAIN
Changes since 1.14: +7 -2 lines
* Wed May 7 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 0.4-44
- Apply 7 May 2008 locale patch

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

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