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