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

Contents of /rpms/geneweb/contribs7/geneweb.spec

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


Revision 1.4 - (show annotations) (download)
Wed Apr 23 19:18:54 2008 UTC (16 years, 7 months ago) by slords
Branch: MAIN
Changes since 1.3: +1 -2 lines
Spec cleanup

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

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