1 |
# $Id: smeserver-geneweb.spec,v 1.23 2009/04/27 16:11:20 slords Exp $ |
2 |
# Authority: fetcher |
3 |
# Name: Craig D. Jensen |
4 |
|
5 |
Summary: Package to integrate GeneWeb (V5) into SME Server |
6 |
%define name smeserver-geneweb |
7 |
Name: %{name} |
8 |
%define version 2.0 |
9 |
%define release 20 |
10 |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
12 |
License: GPL |
13 |
Group: Applications/Internet |
14 |
Source: %{name}-%{version}.tar.gz |
15 |
Patch1: smeserver-geneweb-2.0-pod-corrections.patch |
16 |
Patch2: smeserver-geneweb-2.0-ip_number-validation.patch |
17 |
Patch3: smeserver-geneweb-2.0-locale-2008-03-11.patch |
18 |
Patch4: smeserver-geneweb-2.0-locale-2008-04-01.patch |
19 |
Patch5: smeserver-geneweb-2.0-locale-2008-04-22.patch |
20 |
Patch6: smeserver-geneweb-2.0-locale-2008-05-21.patch |
21 |
Patch7: smeserver-geneweb-2.0-locale-2008-06-27.patch |
22 |
Patch8: smeserver-geneweb-2.0-locale-2008-07-01.patch |
23 |
Patch9: smeserver-geneweb-2.0-locale-2008-10-14.patch |
24 |
Patch10: smeserver-geneweb-2.0-locale-2009-01-01.patch |
25 |
Patch11: smeserver-geneweb-2.0-locale-2009-01-31.patch |
26 |
Patch12: smeserver-geneweb-2.0-locale-2009-03-01.patch |
27 |
Patch13: smeserver-geneweb-2.0-locale-2009-03-03.patch |
28 |
Patch14: smeserver-geneweb-2.0-locale-2009-04-27.patch |
29 |
Patch15: smeserver-geneweb-2.0-locale-2009-08-24.patch |
30 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
31 |
BuildArchitectures: noarch |
32 |
Requires: geneweb >= 5.00 |
33 |
Requires: smeserver-release >= 7.0 |
34 |
Requires: e-smith-formmagick >= 1.4.0-10 |
35 |
BuildRequires: e-smith-devtools |
36 |
|
37 |
%description |
38 |
This RPM must be installed after the geneweb*.el4.sme.i386.rpm package |
39 |
to complete the integration for SME Server. |
40 |
|
41 |
%changelog |
42 |
* Mon Aug 24 2009 SME Translation Server <translations@contribs.org> 2.0-20.sme |
43 |
- apply locale 2009-08-24 patch |
44 |
|
45 |
* Mon Apr 27 2009 SME Translation Server <translations@contribs.org> 2.0-19.sme |
46 |
- apply locale 2009-04-27 patch |
47 |
|
48 |
* Tue Mar 03 2009 SME Translation Server |
49 |
- apply locale 2009-03-03 patch |
50 |
|
51 |
* Sun Mar 1 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 2.0-17 |
52 |
- Apply 1 Mar 2009 locale patch [SME: 5018] |
53 |
|
54 |
* Sat Jan 31 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 2.0-16 |
55 |
- Apply 31 Jan 2009 locale patch [SME: 4951] |
56 |
|
57 |
* Thu Jan 1 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 2.0-15 |
58 |
- Apply 1 Jan 2009 locale patch [SME: 4900] |
59 |
|
60 |
* Tue Oct 14 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 2.0-14 |
61 |
- Apply 14 Oct 2008 locale patch |
62 |
|
63 |
* Tue Jul 1 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 2.0-13 |
64 |
- Apply 1 July 2008 locale patch |
65 |
|
66 |
* Fri Jun 27 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 2.0-12 |
67 |
- Apply 27 Jun 2008 locale patch |
68 |
- Fix version number in previous changelog entry |
69 |
|
70 |
* Thu May 21 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 2.0-11 |
71 |
- Apply 21 May 2008 locale patch |
72 |
|
73 |
* Tue Apr 22 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 2.0-10 |
74 |
- Forgot to apply patch |
75 |
|
76 |
* Tue Apr 22 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 2.0-9 |
77 |
- Added 22 April 2008 locale |
78 |
|
79 |
* Tue Apr 1 2008 Shad L. Lords <slords@mail.com> 2.0-8 |
80 |
- Update to UTF-8 translations |
81 |
|
82 |
* Wed Mar 12 2008 Shad L. Lords <slords@mail.com> - 2.0-7 |
83 |
- Add requires for e-smith-formmagick for UTF-8 support [SME: 3858] |
84 |
|
85 |
* Tue Mar 11 2008 Stephen Noble <support@dungog.net> - 2.0-6 |
86 |
- add locale patch, validate lexicon in spec |
87 |
|
88 |
* Tue Jan 15 2008 Craig Jensen <craig.d.jensen@gmail.com> 2.0-5 |
89 |
- geneweb.pm fix to correctly validate IP numbers 'and' localIP |
90 |
|
91 |
* Sun Jan 13 2008 Craig Jensen <craig.d.jensen@gmail.com> 2.0-4 |
92 |
- geneweb.pm edited for pod corrections (pass podchecker) |
93 |
|
94 |
* Thu Apr 12 2007 Craig D. Jensen <craig.d.jensen@gmail.com> |
95 |
- [2.0-1] First companion to Geneweb v5 w/panel for admin allowing |
96 |
for setting the desired IP on the LAN for Geneweb administrative |
97 |
access. |
98 |
|
99 |
%prep |
100 |
|
101 |
rm -rf $RPM_BUILD_ROOT |
102 |
|
103 |
%setup |
104 |
%patch1 -p1 |
105 |
%patch2 -p1 |
106 |
%patch3 -p1 |
107 |
%patch4 -p1 |
108 |
%patch5 -p1 |
109 |
%patch6 -p1 |
110 |
%patch7 -p1 |
111 |
%patch8 -p1 |
112 |
%patch9 -p1 |
113 |
%patch10 -p1 |
114 |
%patch11 -p1 |
115 |
%patch12 -p1 |
116 |
%patch13 -p1 |
117 |
%patch14 -p1 |
118 |
%patch15 -p1 |
119 |
|
120 |
%build |
121 |
perl createlinks |
122 |
DEFAULTS=root/etc/e-smith/db/configuration/defaults/geneweb |
123 |
mkdir -p $DEFAULTS |
124 |
echo "service" > $DEFAULTS/type |
125 |
echo "disabled" > $DEFAULTS/status |
126 |
echo "127.0.0.1" >$DEFAULTS/only |
127 |
|
128 |
LEXICONS=$(find root/etc/e-smith/{locale/,web/functions/} -type f ) |
129 |
for lexicon in $LEXICONS |
130 |
do |
131 |
/sbin/e-smith/validate-lexicon $lexicon |
132 |
done |
133 |
|
134 |
%install |
135 |
/bin/rm -rf $RPM_BUILD_ROOT |
136 |
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
137 |
/bin/rm -f %{name}-%{version}-filelist |
138 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
139 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
140 |
|
141 |
%files -f %{name}-%{version}-filelist |
142 |
|
143 |
%defattr(-,root,root) |
144 |
|
145 |
%clean |
146 |
rm -rf $RPM_BUILD_ROOT |
147 |
|
148 |
%pre |
149 |
|
150 |
%post |
151 |
/etc/e-smith/events/actions/navigation-conf |
152 |
#/etc/e-smith/events/actions/initialize-default-databases |
153 |
#mkdir -p /etc/e-smith/templates/etc/rc.d/init.d/masq |
154 |
#/bin/chmod 644 /etc/e-smith/templates/etc/rc.d/init.d/masq/45AllowGeneWeb |
155 |
/sbin/e-smith/expand-template /etc/rc.d/init.d/masq |
156 |
#/etc/rc.d/init.d/masq restart |
157 |
true |
158 |
|
159 |
%preun |
160 |
/sbin/e-smith/db configuration setprop geneweb status disabled |
161 |
/etc/rc.d/init.d/gwd stop |
162 |
true |
163 |
|
164 |
%postun |
165 |
/sbin/e-smith/expand-template /etc/rc.d/init.d/masq |
166 |
#/etc/rc.d/init.d/masq restart |