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

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

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


Revision 1.6 - (hide annotations) (download)
Wed Jul 15 15:03:44 2020 UTC (4 years, 4 months ago) by michel
Branch: MAIN
CVS Tags: smeserver-geneweb-2_1_0-4_el6_sme
Changes since 1.5: +2 -2 lines
binary patch

1 michel 1.2 Summary: Package to integrate GeneWeb (V6) into SME Server
2 michel 1.1 %define name smeserver-geneweb
3     Name: %{name}
4 michel 1.3 %define version 2.1.0
5 michel 1.6 %define release 4
6 michel 1.1 Version: %{version}
7     Release: %{release}%{?dist}
8     License: GPL
9     Group: Applications/Internet
10     Source: %{name}-%{version}.tar.gz
11 jpp 1.4 Patch1: smeserver-geneweb-2.1.0-locale-2019-12-07.patch
12 michel 1.5 Patch2: smeserver-geneweb-2.1.0-proxypass_services.patch
13 michel 1.1
14     BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
15     BuildArchitectures: noarch
16     Requires: geneweb >= 6.08
17     Requires: smeserver-release >= 9.0
18     Requires: e-smith-formmagick >= 2.4.0-1
19     BuildRequires: e-smith-devtools
20    
21     %description
22     This RPM must be installed after the geneweb*.el6.sme package
23     to complete the integration for SME Server.
24    
25     %changelog
26 michel 1.6 * Sat Jul 11 2020 Michel Begue <mab974@gmail.com> 2.1.0-4.sme
27 michel 1.5 - geneweb and gwsetup services thru proxypass [SME: 10930]
28    
29 jpp 1.4 * Sat Dec 07 2019 SME Translation Server <translations@contribs.org> 2.1.0-2.sme
30     - apply locale 2019-12-07 patch
31    
32 michel 1.1 * Wed Apr 03 2019 Michel Begue <mab974@gmail.com> 2.1-1.sme
33     - first import in sme9 for geneweb v6.08
34     - geneweb service not started [SME: 6371]
35     - Add "Base directory" input in panel console.
36     - perms corrected in templates.metadata
37 michel 1.3 - normalize template and .spec
38 michel 1.1
39     %prep
40    
41     rm -rf $RPM_BUILD_ROOT
42    
43     %setup
44 michel 1.5 # tmp fix before creating a new source archive 2.1.0-3
45     rm -f root/etc/e-smith/events/geneweb-modify/services2adjust/*
46 jpp 1.4 %patch1 -p1
47 michel 1.5 %patch2 -p1
48 michel 1.1
49     %build
50     perl createlinks
51    
52     LEXICONS=$(find root/etc/e-smith/{locale/,web/functions/} -type f )
53     for lexicon in $LEXICONS
54     do
55     /sbin/e-smith/validate-lexicon $lexicon
56     done
57    
58     %install
59     /bin/rm -rf $RPM_BUILD_ROOT
60     (cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT)
61     /bin/rm -f %{name}-%{version}-filelist
62     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
63     echo "%doc COPYING" >> %{name}-%{version}-filelist
64    
65     %files -f %{name}-%{version}-filelist
66    
67     %defattr(-,root,root)
68 michel 1.5 %attr(755, root, root) /var/service/geneweb/log/run
69     %attr(755, root, root) /var/service/gwsetup/log/run
70    
71 michel 1.1
72     %clean
73     rm -rf $RPM_BUILD_ROOT
74    
75     %pre
76    
77     %post
78 michel 1.5 ln -s /var/service/geneweb /service/geneweb
79     touch /var/service/geneweb/down
80     ln -s /etc/rc.d/init.d/daemontools /etc/rc.d/init.d/supervise/geneweb
81     ##ln -s /etc/rc.d/init.d/e-smith-service /etc/rc.d/rc7.d/S98geneweb
82     mkdir -p /var/log/geneweb
83     chown smelog:smelog /var/log/geneweb
84     ln -s /var/service/gwsetup /service/gwsetup
85     touch /var/service/gwsetup/down
86     ln -s /etc/rc.d/init.d/daemontools /etc/rc.d/init.d/supervise/gwsetup
87     ##ln -s /etc/rc.d/init.d/e-smith-service /etc/rc.d/rc7.d/S98gwsetup
88     mkdir -p /var/log/gwsetup
89     chown smelog:smelog /var/log/gwsetup
90 michel 1.1
91     %preun
92     /sbin/e-smith/db configuration setprop geneweb status disabled
93 michel 1.5 /sbin/e-smith/db configuration setprop gwsetup status disabled
94     #/etc/rc.d/init.d/geneweb stop
95     #/etc/rc.d/init.d/gwsetup stop
96     /usr/bin/sv stop geneweb
97     /usr/bin/sv stop gwsetup
98 michel 1.1
99     %postun

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