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