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

Annotation of /rpms/geneweb/contribs7/geneweb.spec

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


Revision 1.1 - (hide annotations) (download)
Tue Feb 26 01:05:31 2008 UTC (16 years, 9 months ago) by slords
Branch: MAIN
CVS Tags: geneweb-5_01-3_el4_sme
Remove version from spec

1 slords 1.1 # $Id: geneweb.spec,v 4.4 2002/02/27 19:02:58 ddr Exp $
2     %define _unpackaged_files_terminate_build 0
3     Summary: Genealogy software with a Web interface for SME
4     %define name geneweb
5     Name: %{name}
6     %define version 5.01
7     %define release 3
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-5.01.patch
17     BuildRequires: ocaml >= 3.09, ocaml-labltk >= 3.09, ocaml-camlp4 >= 3.09, tcl >= 8.4, tk >= 8.4
18     BuildRequires: cpp >= 3.4, glibc-kernheaders >= 2.4, glibc-headers >= 2.3.4, glibc-devel >= 2.3.4, gcc >= 3.4.6-9
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     * Fri Feb 22 2008 Craig D. Jensen <craig.d.jensen@gmail.com>
146     - Correct BuildRequires for new version. Camlp5 now required as
147     - much of 5.00->5.01 revisions included use of the new pre-processor's
148     - capabilities. Camlp5 is not (yet) compiled in rpm for CentOS
149     - so it was manually compiled for this build (todo: build rpm for CentOS).
150     - [5.01-3]
151    
152     * Thu Feb 21 2008 Craig D. Jensen <craig.d.jensen@gmail.com>
153     - Init change (from /home to /opt) for binary locations
154     - [5.01-2]
155    
156     * Wed Feb 20 2008 Craig D. Jensen <craig.d.jensen@gmail.com>
157     - Upstream version upgrade -> 5.01
158     - [5.01-1]
159    
160     * Sun Aug 19 2007 Craig D. Jensen <craig.d.jensen@gmail.com>
161     - Removed startup of service 'gwd' as advised by SME Server dev
162    
163     * Thu Apr 12 2007 Craig D. Jensen <craig.d.jensen@gmail.com>
164     - V5.00-7 Changed Group to 'SME Server/addon'
165    
166     * Thu Apr 12 2007 Craig D. Jensen <craig.d.jensen@gmail.com>
167     - V5.00-6 BuildRequires statement added
168     -> ocaml ocaml-labltk ocaml-camlp4
169    
170     * Fri Mar 02 2007 Craig D. Jensen <craig.d.jensen@gmail.com>
171     - V5.00-5 changed Group. Added GPG signature
172    
173     * Fri Mar 02 2007 Craig D. Jensen <craig.d.jensen@gmail.com>
174     - V5.00-3 corrected case (Geneweb->geneweb) for defines
175    
176     * Fri Mar 02 2007 Craig D. Jensen <craig.d.jensen@gmail.com>
177     - V5.00-2 added %defines and user creation/verification lines
178    
179     * Wed Feb 28 2007 Craig D. Jensen <craig.d.jensen@gmail.com>
180     - V5.00-1 upgrade of Geneweb base to V.5
181    
182     * Tue Nov 14 2006 Craig D. Jensen <craig.d.jensen@gmail.com>
183     - V 4.10-1 upgrade of Geneweb base
184     - Revised .spec for new rpm req (all files must be listed in the spec
185     - or build errors and rpmbuild failure results)
186    
187     * Tue Mar 02 2004 Craig D. Jensen <craig.d.jensen@gmail.com>
188     - Version 4.10
189     - SME Server build with newest src. Compat with SME Server 6.x
190    
191     * Sun Dec 15 2002 John Cusick
192     - Rebuild of geneweb for SME 5.1.2, 5.5, 5.6
193    
194     * Sat Nov 10 2000 Daniel de Rauglaudre
195     - Used chkconfig (Eddie Bindt's hint)
196    
197     * Thu Nov 9 2000 Ludovic Ledieu
198     - Simplified files list (a directory includes its contents). It's thus easier
199     to maintain the list.
200     - Removed doc in /usr/doc/geneweb-<version>
201    
202     * Tue Nov 7 2000 Daniel de Rauglaudre
203     Version 3.10
204     - No more installation of geneweb-initrc.sh in SOURCES: it is directly
205     copied from BUILD/geneweb-xx/rpm. In that file, added -log for gwd and
206     gwsetup.
207     - Added /etc/logrotate.d/gwd
208    
209     * Sun Apr 9 2000 Daniel de Rauglaudre
210     Version 3.03-2
211     - added set user id bit also for gwc gwu ged2gwb gwb2ged consang because
212     were not launched as geneweb user (seemed to depend on the Linux version)
213    
214     * Tue Dec 7 1999 Daniel de Rauglaudre
215     Version 3.01
216     - updated the file list
217    
218     * Mon Oct 4 1999 Daniel de Rauglaudre
219     Version 2.07-2
220     - added RPM_BUILD_ROOT to install the package in /tmp
221    
222     * Sun Sep 6 1999 Daniel de Rauglaudre
223     Version 2.06-5
224     - updated file list
225    
226     * Sun Sep 5 1999 Daniel de Rauglaudre
227     Version 2.06-4
228     Deleted option -r in useradd (Redhat specific)
229    
230     * Sat Aug 14 1999 Dan Kegel <dank@alumni.caltech.edu>
231     Created.

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