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