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

Annotation of /rpms/geneweb/contribs9/geneweb.spec

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


Revision 1.1 - (hide annotations) (download)
Mon Apr 1 17:52:42 2019 UTC (5 years, 7 months ago) by michel
Branch: MAIN
first import to sme9 (1)

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     %define release 1
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-init.patch
15     BuildRequires: ocaml >= 3.12.1
16     #BuildRequires: camlp5 >= 6.12
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
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    
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     chmod -R o-rwx /opt/geneweb/gw
100     chown -R geneweb:geneweb /opt/geneweb/bases
101     chmod -R o-rwx /opt/geneweb/bases
102     ln -s /etc/rc.d/init.d/gwd /etc/rc.d/init.d/geneweb
103     chkconfig --add geneweb
104    
105     %preun
106     /etc/rc.d/init.d/geneweb stop
107     chkconfig --del geneweb
108     rm -f /etc/rc.d/init.d/geneweb
109    
110     %postun
111     # cd /opt/geneweb/gw/gw
112     # rm -rf doc etc images lang setup gwtp_tmp
113    
114     %files
115     %defattr(-,geneweb,geneweb)
116     %attr(6750, geneweb, geneweb) /opt/geneweb/gw/gw/gwd
117     %attr(6750, geneweb, geneweb) /opt/geneweb/gw/gw/gwsetup
118     %attr(6750, geneweb, geneweb) /opt/geneweb/gw/gw/ged2gwb
119     %attr(6750, geneweb, geneweb) /opt/geneweb/gw/gw/ged2gwb2
120     %attr(6750, geneweb, geneweb) /opt/geneweb/gw/gw/gwb2ged
121     %attr(6750, geneweb, geneweb) /opt/geneweb/gw/gw/gwc
122     %attr(6750, geneweb, geneweb) /opt/geneweb/gw/gw/gwu
123     %attr(6750, geneweb, geneweb) /opt/geneweb/gw/gw/consang
124     %attr(6750, geneweb, geneweb) /opt/geneweb/gw/gw/gwtp_tmp/gwtp
125     %attr(6750, geneweb, geneweb) /var/log/gwd.log
126     %attr(6750, geneweb, geneweb) /var/log/gwsetup.log
127     %attr(755, root, root) /etc/rc.d/init.d/gwd
128     %attr(644, root, root) /etc/logrotate.d/gwd
129     /opt/geneweb/gw/CHANGES.txt
130     /opt/geneweb/gw/LICENSE.txt
131     /opt/geneweb/gw/START.htm
132     #/opt/geneweb/gw/LISEZMOI.txt
133     #/opt/geneweb/gw/README.txt
134     #/opt/geneweb/gw/gw/INSTALL.htm
135     #/opt/geneweb/gw/gw/LICENSE.txt
136     #/opt/geneweb/gw/gw/LISEZMOI.txt
137     #/opt/geneweb/gw/gw/README.txt
138     /opt/geneweb/gw/gw/a.gwf
139     #/opt/geneweb/gw/gw/doc
140     /opt/geneweb/gw/gw/etc
141     /opt/geneweb/gw/gw/ged2gwb2
142     /opt/geneweb/gw/gw/gwc1
143     /opt/geneweb/gw/gw/gwc2
144     /opt/geneweb/gw/gw/gwd.arg
145     /opt/geneweb/gw/gw/gwtp_tmp/README
146     /opt/geneweb/gw/gw/gwtp_tmp/lang
147     /opt/geneweb/gw/gw/images
148     /opt/geneweb/gw/gw/lang
149     /opt/geneweb/gw/gw/only.txt
150     /opt/geneweb/gw/gw/setup
151     /opt/geneweb/gw/gw/update_nldb
152     /opt/geneweb/gw/gwd
153     /opt/geneweb/gw/gwsetup
154     %defattr(-,root,root)
155     #%doc doc/*
156    
157     %changelog
158    
159     * Mon Apr 01 2019 Michel Begue <mab974@gmail.com>
160     - first import to sme9 tree [geneweb-6.08]
161     - versions ocaml-3.12.1-1 camlp5-6.12.1
162     - updated init.patch
163     - alias service: gwd, geneweb
164    
165     * Sun Aug 19 2007 Craig D. Jensen <craig.d.jensen@gmail.com>
166     - Removed startup of service 'gwd' as advised by SME Server dev
167    
168     * Thu Apr 12 2007 Craig D. Jensen <craig.d.jensen@gmail.com>
169     - V5.00-7 Changed Group to 'SME Server/addon'
170    
171     * Thu Apr 12 2007 Craig D. Jensen <craig.d.jensen@gmail.com>
172     - V5.00-6 BuildRequires statement added
173     -> ocaml ocaml-labltk ocaml-camlp4
174    
175     * Fri Mar 02 2007 Craig D. Jensen <craig.d.jensen@gmail.com>
176     - V5.00-5 changed Group. Added GPG signature
177    
178     * Fri Mar 02 2007 Craig D. Jensen <craig.d.jensen@gmail.com>
179     - V5.00-3 corrected case (Geneweb->geneweb) for defines
180    
181     * Fri Mar 02 2007 Craig D. Jensen <craig.d.jensen@gmail.com>
182     - V5.00-2 added %defines and user creation/verification lines
183    
184     * Wed Feb 28 2007 Craig D. Jensen <craig.d.jensen@gmail.com>
185     - V5.00-1 upgrade of Geneweb base to V.5
186    
187     * Tue Nov 14 2006 Craig D. Jensen <craig.d.jensen@gmail.com>
188     - V 4.10-1 upgrade of Geneweb base
189     - Revised .spec for new rpm req (all files must be listed in the spec
190     - or build errors and rpmbuild failure results)
191    
192     * Tue Mar 02 2004 Craig D. Jensen <craig.d.jensen@gmail.com>
193     - Version 4.10
194     - SME Server build with newest src. Compat with SME Server 6.x
195    
196     * Sun Dec 15 2002 John Cusick
197     - Rebuild of geneweb for SME 5.1.2, 5.5, 5.6
198    
199     * Sat Nov 10 2000 Daniel de Rauglaudre
200     - Used chkconfig (Eddie Bindt's hint)
201    
202     * Thu Nov 9 2000 Ludovic Ledieu
203     - Simplified files list (a directory includes its contents). It's thus easier
204     to maintain the list.
205     - Removed doc in /usr/doc/geneweb-<version>
206    
207     * Tue Nov 7 2000 Daniel de Rauglaudre
208     Version 3.10
209     - No more installation of geneweb-initrc.sh in SOURCES: it is directly
210     copied from BUILD/geneweb-xx/rpm. In that file, added -log for gwd and
211     gwsetup.
212     - Added /etc/logrotate.d/gwd
213    
214     * Sun Apr 9 2000 Daniel de Rauglaudre
215     Version 3.03-2
216     - added set user id bit also for gwc gwu ged2gwb gwb2ged consang because
217     were not launched as geneweb user (seemed to depend on the Linux version)
218    
219     * Tue Dec 7 1999 Daniel de Rauglaudre
220     Version 3.01
221     - updated the file list
222    
223     * Mon Oct 4 1999 Daniel de Rauglaudre
224     Version 2.07-2
225     - added RPM_BUILD_ROOT to install the package in /tmp
226    
227     * Sun Sep 6 1999 Daniel de Rauglaudre
228     Version 2.06-5
229     - updated file list
230    
231     * Sun Sep 5 1999 Daniel de Rauglaudre
232     Version 2.06-4
233     Deleted option -r in useradd (Redhat specific)
234    
235     * Sat Aug 14 1999 Dan Kegel <dank@alumni.caltech.edu>
236     Created.

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