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