/[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.3 - (hide annotations) (download)
Wed Mar 12 04:19:48 2008 UTC (16 years, 8 months ago) by marcohess
Branch: MAIN
CVS Tags: smeserver-trac-0_4-36_el4_sme
Changes since 1.2: +10 -1 lines
minor lexicon spelling updates

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

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