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