1 |
# $Id$ |
2 |
# Authority: fetcher |
3 |
# Name: Craig D. Jensen |
4 |
|
5 |
|
6 |
Summary: Genealogy software with a Web interface for SME |
7 |
%define name geneweb |
8 |
Name: %{name} |
9 |
%define version 5.00 |
10 |
%define release 8 |
11 |
Version: %{version} |
12 |
Release: %{release}%{?dist} |
13 |
License: GPL |
14 |
Vendor: INRIA |
15 |
Group: SME Server/addon |
16 |
Source: %{name}-%{version}.tar.gz |
17 |
#Source: ftp://ftp.inria.fr/INRIA/Projects/cristal/geneweb/Src/geneweb-%{version}.tar.gz |
18 |
URL: http://cristal.inria.fr/~ddr/GeneWeb/ |
19 |
Patch0: smeserver.init.patch |
20 |
BuildRequires: ocaml = 3.09.1, ocaml-labltk = 3.09.1, ocaml-camlp4 = 3.09.1 |
21 |
Requires: smeserver-release >= 7.0 |
22 |
BuildRoot: ../tmp/%{name}-%{version} |
23 |
Prefix: /opt |
24 |
Summary(de): eine genealogische Software mit einem Web-Interface |
25 |
Summary(fr): un logiciel de généalogie doté d'une interface Web |
26 |
Summary(nl): een genealogisch programma met een www-interface |
27 |
Summary(se): ett genealogi program med ett webbinterface |
28 |
|
29 |
# Aditions (defines) below to set up user/group for Geneweb. |
30 |
# Previous versions required user creation separately |
31 |
%define gwuser geneweb |
32 |
%define gwuserid 51 |
33 |
%define gwgroup geneweb |
34 |
%define gwgroupid 51 |
35 |
%define gwdir /opt/%{name} |
36 |
|
37 |
%description |
38 |
GeneWeb is a genealogy software with a Web interface. It can be used |
39 |
off-line or as a Web service. |
40 |
|
41 |
%description -l de |
42 |
GeneWeb ist eine genealogische Software mit einem Web-Interface. |
43 |
Sie kann off-line oder als ein Web-Service genutzt werden. |
44 |
|
45 |
%description -l fr |
46 |
GeneWeb est un logiciel de généalogie doté d'une interface Web. Il |
47 |
peut être utilisé non connecté au réseau ou comme un service Web. |
48 |
|
49 |
%description -l nl |
50 |
GeneWeb is een genealogisch programma met een www-interface, dat kan |
51 |
gebruikt worden op computers met of zonder permanente verbinding met |
52 |
het Internet. |
53 |
|
54 |
%description -l se |
55 |
GeneWeb är ett genealogi program med ett webbinterface. Det kan användas |
56 |
nedkopplad eller som en webbtjänst. |
57 |
|
58 |
%prep |
59 |
|
60 |
rm -rf $RPM_BUILD_ROOT |
61 |
|
62 |
%setup |
63 |
%patch0 -p1 |
64 |
|
65 |
%build |
66 |
make opt |
67 |
make distrib |
68 |
|
69 |
%install |
70 |
mkdir -p $RPM_BUILD_ROOT/opt/geneweb |
71 |
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d |
72 |
mkdir -p $RPM_BUILD_ROOT/etc/logrotate.d |
73 |
cp -r distribution $RPM_BUILD_ROOT/opt/geneweb/gw |
74 |
cp rpm/geneweb-initrc.sh $RPM_BUILD_ROOT/etc/rc.d/init.d/gwd |
75 |
cp rpm/geneweb-logrotate $RPM_BUILD_ROOT/etc/logrotate.d/gwd |
76 |
|
77 |
%clean |
78 |
make clean |
79 |
rm -rf $RPM_BUILD_ROOT |
80 |
|
81 |
%pre |
82 |
mkdir -p /opt/geneweb |
83 |
chmod a+rx /opt/geneweb |
84 |
|
85 |
# Make sure we have a geneweb user to chown/run our app [geneweb-user.patch] |
86 |
if grep -q "^geneweb:" /etc/group 2> /dev/null ; then |
87 |
/usr/sbin/groupmod -g %{gwgroupid} -n %{gwgroup} %{gwgroup} 2> /dev/null || : |
88 |
else |
89 |
/usr/sbin/groupadd -g %{gwgroupid} %{gwgroup} 2> /dev/null || : |
90 |
fi |
91 |
if grep -q "^geneweb:" /etc/passwd 2> /dev/null ; then |
92 |
/usr/sbin/usermod -s /sbin/nologin -c "Geneweb Geneology DB Manager" -d %{gwdir} -u %{gwuserid} -g %{gwgroupid} %{gwuser} 2> /dev/null || : |
93 |
else |
94 |
/usr/sbin/useradd -s /sbin/nologin -c "Geneweb Geneology DB Manager" -d %{gwdir} -u %{gwuserid} -g %{gwgroupid} %{gwuser} 2> /dev/null || : |
95 |
fi |
96 |
# |
97 |
%post |
98 |
chown -R geneweb.geneweb /opt/geneweb/gw |
99 |
chkconfig --add gwd |
100 |
#/etc/rc.d/init.d/gwd start |
101 |
|
102 |
%preun |
103 |
/etc/rc.d/init.d/gwd stop |
104 |
chkconfig --del gwd |
105 |
|
106 |
%postun |
107 |
# cd /opt/geneweb/gw/gw |
108 |
# rm -rf doc etc images lang setup gwtp_tmp |
109 |
|
110 |
%files |
111 |
%defattr(-,geneweb,geneweb) |
112 |
%attr(6750, geneweb, geneweb) /opt/geneweb/gw/gw/gwd |
113 |
%attr(6750, geneweb, geneweb) /opt/geneweb/gw/gw/gwsetup |
114 |
%attr(6750, geneweb, geneweb) /opt/geneweb/gw/gw/ged2gwb |
115 |
%attr(6750, geneweb, geneweb) /opt/geneweb/gw/gw/gwb2ged |
116 |
%attr(6750, geneweb, geneweb) /opt/geneweb/gw/gw/gwc |
117 |
%attr(6750, geneweb, geneweb) /opt/geneweb/gw/gw/gwu |
118 |
%attr(6750, geneweb, geneweb) /opt/geneweb/gw/gw/consang |
119 |
%attr(6750, geneweb, geneweb) /opt/geneweb/gw/gw/gwtp_tmp/gwtp |
120 |
%attr(755, root, root) /etc/rc.d/init.d/gwd |
121 |
%attr(644, root, root) /etc/logrotate.d/gwd |
122 |
/opt/geneweb/gw/LICENSE.txt |
123 |
/opt/geneweb/gw/LISEZMOI.txt |
124 |
/opt/geneweb/gw/README.txt |
125 |
/opt/geneweb/gw/gw/CHANGES.txt |
126 |
/opt/geneweb/gw/gw/INSTALL.htm |
127 |
/opt/geneweb/gw/gw/LICENSE.txt |
128 |
/opt/geneweb/gw/gw/LISEZMOI.txt |
129 |
/opt/geneweb/gw/gw/README.txt |
130 |
/opt/geneweb/gw/gw/a.gwf |
131 |
/opt/geneweb/gw/gw/doc |
132 |
/opt/geneweb/gw/gw/etc |
133 |
/opt/geneweb/gw/gw/gwtp_tmp/README |
134 |
/opt/geneweb/gw/gw/gwtp_tmp/lang |
135 |
/opt/geneweb/gw/gw/gwd.arg |
136 |
/opt/geneweb/gw/gw/images |
137 |
/opt/geneweb/gw/gw/lang |
138 |
/opt/geneweb/gw/gw/only.txt |
139 |
/opt/geneweb/gw/gw/setup |
140 |
/opt/geneweb/gw/gwd |
141 |
/opt/geneweb/gw/gwsetup |
142 |
/opt/geneweb/gw/START.htm |
143 |
%defattr(-,root,root) |
144 |
#%doc doc/* |
145 |
|
146 |
%changelog |
147 |
* Sun Aug 19 2007 Craig D. Jensen <craig.d.jensen@gmail.com> |
148 |
- Removed startup of service 'gwd' as advised by SME Server dev |
149 |
|
150 |
* Thu Apr 12 2007 Craig D. Jensen <craig.d.jensen@gmail.com> |
151 |
- V5.00-7 Changed Group to 'SME Server/addon' |
152 |
|
153 |
* Thu Apr 12 2007 Craig D. Jensen <craig.d.jensen@gmail.com> |
154 |
- V5.00-6 BuildRequires statement added |
155 |
-> ocaml ocaml-labltk ocaml-camlp4 |
156 |
|
157 |
* Fri Mar 02 2007 Craig D. Jensen <craig.d.jensen@gmail.com> |
158 |
- V5.00-5 changed Group. Added GPG signature |
159 |
|
160 |
* Fri Mar 02 2007 Craig D. Jensen <craig.d.jensen@gmail.com> |
161 |
- V5.00-3 corrected case (Geneweb->geneweb) for defines |
162 |
|
163 |
* Fri Mar 02 2007 Craig D. Jensen <craig.d.jensen@gmail.com> |
164 |
- V5.00-2 added %defines and user creation/verification lines |
165 |
|
166 |
* Wed Feb 28 2007 Craig D. Jensen <craig.d.jensen@gmail.com> |
167 |
- V5.00-1 upgrade of Geneweb base to V.5 |
168 |
|
169 |
* Tue Nov 14 2006 Craig D. Jensen <craig.d.jensen@gmail.com> |
170 |
- V 4.10-1 upgrade of Geneweb base |
171 |
- Revised .spec for new rpm req (all files must be listed in the spec |
172 |
- or build errors and rpmbuild failure results) |
173 |
|
174 |
* Tue Mar 02 2004 Craig D. Jensen <craig.d.jensen@gmail.com> |
175 |
- Version 4.10 |
176 |
- SME Server build with newest src. Compat with SME Server 6.x |
177 |
|
178 |
* Sun Dec 15 2002 John Cusick |
179 |
- Rebuild of geneweb for SME 5.1.2, 5.5, 5.6 |
180 |
|
181 |
* Sat Nov 10 2000 Daniel de Rauglaudre |
182 |
- Used chkconfig (Eddie Bindt's hint) |
183 |
|
184 |
* Thu Nov 9 2000 Ludovic Ledieu |
185 |
- Simplified files list (a directory includes its contents). It's thus easier |
186 |
to maintain the list. |
187 |
- Removed doc in /usr/doc/geneweb-<version> |
188 |
|
189 |
* Tue Nov 7 2000 Daniel de Rauglaudre |
190 |
Version 3.10 |
191 |
- No more installation of geneweb-initrc.sh in SOURCES: it is directly |
192 |
copied from BUILD/geneweb-xx/rpm. In that file, added -log for gwd and |
193 |
gwsetup. |
194 |
- Added /etc/logrotate.d/gwd |
195 |
|
196 |
* Sun Apr 9 2000 Daniel de Rauglaudre |
197 |
Version 3.03-2 |
198 |
- added set user id bit also for gwc gwu ged2gwb gwb2ged consang because |
199 |
were not launched as geneweb user (seemed to depend on the Linux version) |
200 |
|
201 |
* Tue Dec 7 1999 Daniel de Rauglaudre |
202 |
Version 3.01 |
203 |
- updated the file list |
204 |
|
205 |
* Mon Oct 4 1999 Daniel de Rauglaudre |
206 |
Version 2.07-2 |
207 |
- added RPM_BUILD_ROOT to install the package in /tmp |
208 |
|
209 |
* Sun Sep 6 1999 Daniel de Rauglaudre |
210 |
Version 2.06-5 |
211 |
- updated file list |
212 |
|
213 |
* Sun Sep 5 1999 Daniel de Rauglaudre |
214 |
Version 2.06-4 |
215 |
Deleted option -r in useradd (Redhat specific) |
216 |
|
217 |
* Sat Aug 14 1999 Dan Kegel <dank@alumni.caltech.edu> |
218 |
Created. |