/[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.17 - (hide annotations) (download)
Fri Jun 27 15:13:26 2008 UTC (15 years, 10 months ago) by snetram
Branch: MAIN
CVS Tags: smeserver-trac-0_4-46_el4_sme
Changes since 1.16: +7 -2 lines
* Fri Jun 27 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 0.4-46
- Apply 27 Jun 2008 locale patch

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

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