/[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.14 - (hide annotations) (download)
Mon May 5 19:27:29 2008 UTC (16 years, 6 months ago) by snetram
Branch: MAIN
Changes since 1.13: +7 -2 lines
* Mon May 5 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 0.4-43
- Apply 5 May 2008 locale patch

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

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