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

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

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


Revision 1.6 - (show annotations) (download)
Wed Jul 15 15:03:44 2020 UTC (4 years, 3 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 Summary: Package to integrate GeneWeb (V6) into SME Server
2 %define name smeserver-geneweb
3 Name: %{name}
4 %define version 2.1.0
5 %define release 4
6 Version: %{version}
7 Release: %{release}%{?dist}
8 License: GPL
9 Group: Applications/Internet
10 Source: %{name}-%{version}.tar.gz
11 Patch1: smeserver-geneweb-2.1.0-locale-2019-12-07.patch
12 Patch2: smeserver-geneweb-2.1.0-proxypass_services.patch
13
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 * Sat Jul 11 2020 Michel Begue <mab974@gmail.com> 2.1.0-4.sme
27 - geneweb and gwsetup services thru proxypass [SME: 10930]
28
29 * Sat Dec 07 2019 SME Translation Server <translations@contribs.org> 2.1.0-2.sme
30 - apply locale 2019-12-07 patch
31
32 * 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 - normalize template and .spec
38
39 %prep
40
41 rm -rf $RPM_BUILD_ROOT
42
43 %setup
44 # tmp fix before creating a new source archive 2.1.0-3
45 rm -f root/etc/e-smith/events/geneweb-modify/services2adjust/*
46 %patch1 -p1
47 %patch2 -p1
48
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 %attr(755, root, root) /var/service/geneweb/log/run
69 %attr(755, root, root) /var/service/gwsetup/log/run
70
71
72 %clean
73 rm -rf $RPM_BUILD_ROOT
74
75 %pre
76
77 %post
78 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
91 %preun
92 /sbin/e-smith/db configuration setprop geneweb status disabled
93 /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
99 %postun

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