/[smecontribs]/rpms/geneweb/contribs10/geneweb.spec
ViewVC logotype

Contents of /rpms/geneweb/contribs10/geneweb.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Thu Nov 5 15:59:28 2020 UTC (3 years, 11 months ago) by michel
Branch: MAIN
CVS Tags: geneweb-6_08-12_el7_sme, HEAD
Changes since 1.1: +2 -2 lines
* Wed Nov 04 2020 Michel Begue <mab974@gmail.com> 6.08-12
- first import to sme10 tree (geneweb-6.08) [SME: 11082]

1 Summary: Genealogy software with a Web interface for SME
2 %define name geneweb
3 Name: %{name}
4 %define version 6.08
5 %define release 12
6 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 Patch0: geneweb-6.08-init2.patch
15 BuildRequires: ocaml = 3.12.1
16 BuildRequires: camlp5 = 6.17
17 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 mkdir -p $RPM_BUILD_ROOT/opt/geneweb/bases
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 touch $RPM_BUILD_ROOT/var/log/gwd.log
75 touch $RPM_BUILD_ROOT/var/log/gwsetup.log
76 echo "Initial bases directory" > $RPM_BUILD_ROOT/opt/geneweb/bases/README.txt
77
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 /usr/sbin/useradd -s /sbin/nologin -c "Geneweb Geneology DB Manager" -d %{gwdir} -u %{gwuserid} -g %{gwgroupid} %{gwuser} 2> /dev/null || :
96 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 %attr(6750, geneweb, geneweb) /opt/geneweb/bases/README.txt
118 %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 * Wed Nov 04 2020 Michel Begue <mab974@gmail.com> 6.08-12
161 - first import to sme10 tree (geneweb-6.08) [SME: 11082]
162
163 * Wed Oct 02 2019 Michel Begue <mab974@gmail.com>
164 - first import to sme9 tree [geneweb-6.08]
165 - versions ocaml-3.12.1 camlp5-6.17
166 - updated init.patch
167 - alias service: gwd, geneweb
168
169 * Sun Aug 19 2007 Craig D. Jensen <craig.d.jensen@gmail.com>
170 - Removed startup of service 'gwd' as advised by SME Server dev
171
172 * Thu Apr 12 2007 Craig D. Jensen <craig.d.jensen@gmail.com>
173 - V5.00-7 Changed Group to 'SME Server/addon'
174
175 * Thu Apr 12 2007 Craig D. Jensen <craig.d.jensen@gmail.com>
176 - V5.00-6 BuildRequires statement added
177 -> ocaml ocaml-labltk ocaml-camlp4
178
179 * Fri Mar 02 2007 Craig D. Jensen <craig.d.jensen@gmail.com>
180 - V5.00-5 changed Group. Added GPG signature
181
182 * Fri Mar 02 2007 Craig D. Jensen <craig.d.jensen@gmail.com>
183 - V5.00-3 corrected case (Geneweb->geneweb) for defines
184
185 * Fri Mar 02 2007 Craig D. Jensen <craig.d.jensen@gmail.com>
186 - V5.00-2 added %defines and user creation/verification lines
187
188 * Wed Feb 28 2007 Craig D. Jensen <craig.d.jensen@gmail.com>
189 - V5.00-1 upgrade of Geneweb base to V.5
190
191 * Tue Nov 14 2006 Craig D. Jensen <craig.d.jensen@gmail.com>
192 - V 4.10-1 upgrade of Geneweb base
193 - Revised .spec for new rpm req (all files must be listed in the spec
194 - or build errors and rpmbuild failure results)
195
196 * Tue Mar 02 2004 Craig D. Jensen <craig.d.jensen@gmail.com>
197 - Version 4.10
198 - SME Server build with newest src. Compat with SME Server 6.x
199
200 * Sun Dec 15 2002 John Cusick
201 - Rebuild of geneweb for SME 5.1.2, 5.5, 5.6
202
203 * Fri Nov 10 2000 Daniel de Rauglaudre
204 - Used chkconfig (Eddie Bindt's hint)
205
206 * Thu Nov 9 2000 Ludovic Ledieu
207 - Simplified files list (a directory includes its contents). It's thus easier
208 to maintain the list.
209 - Removed doc in /usr/doc/geneweb-<version>
210
211 * Tue Nov 7 2000 Daniel de Rauglaudre
212 Version 3.10
213 - No more installation of geneweb-initrc.sh in SOURCES: it is directly
214 copied from BUILD/geneweb-xx/rpm. In that file, added -log for gwd and
215 gwsetup.
216 - Added /etc/logrotate.d/gwd
217
218 * Sun Apr 9 2000 Daniel de Rauglaudre
219 Version 3.03-2
220 - added set user id bit also for gwc gwu ged2gwb gwb2ged consang because
221 were not launched as geneweb user (seemed to depend on the Linux version)
222
223 * Tue Dec 7 1999 Daniel de Rauglaudre
224 Version 3.01
225 - updated the file list
226
227 * Mon Oct 4 1999 Daniel de Rauglaudre
228 Version 2.07-2
229 - added RPM_BUILD_ROOT to install the package in /tmp
230
231 * Mon Sep 6 1999 Daniel de Rauglaudre
232 Version 2.06-5
233 - updated file list
234
235 * Sun Sep 5 1999 Daniel de Rauglaudre
236 Version 2.06-4
237 Deleted option -r in useradd (Redhat specific)
238
239 * Sat Aug 14 1999 Dan Kegel <dank@alumni.caltech.edu>
240 Created.

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed