2 |
%define name smeserver-geneweb |
%define name smeserver-geneweb |
3 |
Name: %{name} |
Name: %{name} |
4 |
%define version 2.1.0 |
%define version 2.1.0 |
5 |
%define release 1 |
%define release 5 |
6 |
Version: %{version} |
Version: %{version} |
7 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
8 |
License: GPL |
License: GPL |
9 |
Group: Applications/Internet |
Group: Applications/Internet |
10 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
11 |
#Patch0: smeserver-geneweb-2.1.0-init.patch |
Patch1: smeserver-geneweb-2.1.0-locale-2019-12-07.patch |
12 |
|
Patch2: smeserver-geneweb-2.1.0-proxypass_services.patch |
13 |
|
Patch3: smeserver-geneweb-2.1.0-locale-2020-07-30.patch |
14 |
|
|
15 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
16 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
24 |
to complete the integration for SME Server. |
to complete the integration for SME Server. |
25 |
|
|
26 |
%changelog |
%changelog |
27 |
|
* Thu Jul 30 2020 SME Translation Server <translations@contribs.org> 2.1.0-5.sme |
28 |
|
- apply locale 2020-07-30 patch |
29 |
|
|
30 |
|
* Sat Jul 11 2020 Michel Begue <mab974@gmail.com> 2.1.0-4.sme |
31 |
|
- geneweb and gwsetup services thru proxypass [SME: 10930] |
32 |
|
|
33 |
|
* Sat Dec 07 2019 SME Translation Server <translations@contribs.org> 2.1.0-2.sme |
34 |
|
- apply locale 2019-12-07 patch |
35 |
|
|
36 |
* Wed Apr 03 2019 Michel Begue <mab974@gmail.com> 2.1-1.sme |
* Wed Apr 03 2019 Michel Begue <mab974@gmail.com> 2.1-1.sme |
37 |
- first import in sme9 for geneweb v6.08 |
- first import in sme9 for geneweb v6.08 |
38 |
- geneweb service not started [SME: 6371] |
- geneweb service not started [SME: 6371] |
45 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
46 |
|
|
47 |
%setup |
%setup |
48 |
#%patch0 -p1 |
# tmp fix before creating a new source archive 2.1.0-3 |
49 |
|
rm -f root/etc/e-smith/events/geneweb-modify/services2adjust/* |
50 |
|
%patch1 -p1 |
51 |
|
%patch2 -p1 |
52 |
|
%patch3 -p1 |
53 |
|
|
54 |
%build |
%build |
55 |
perl createlinks |
perl createlinks |
70 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |
71 |
|
|
72 |
%defattr(-,root,root) |
%defattr(-,root,root) |
73 |
|
%attr(755, root, root) /var/service/geneweb/log/run |
74 |
|
%attr(755, root, root) /var/service/gwsetup/log/run |
75 |
|
|
76 |
|
|
77 |
%clean |
%clean |
78 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
80 |
%pre |
%pre |
81 |
|
|
82 |
%post |
%post |
83 |
ln -s /etc/rc.d/init.d/geneweb /etc/rc.d/rc7.d/S99geneweb |
ln -s /var/service/geneweb /service/geneweb |
84 |
|
touch /var/service/geneweb/down |
85 |
|
ln -s /etc/rc.d/init.d/daemontools /etc/rc.d/init.d/supervise/geneweb |
86 |
|
##ln -s /etc/rc.d/init.d/e-smith-service /etc/rc.d/rc7.d/S98geneweb |
87 |
|
mkdir -p /var/log/geneweb |
88 |
|
chown smelog:smelog /var/log/geneweb |
89 |
|
ln -s /var/service/gwsetup /service/gwsetup |
90 |
|
touch /var/service/gwsetup/down |
91 |
|
ln -s /etc/rc.d/init.d/daemontools /etc/rc.d/init.d/supervise/gwsetup |
92 |
|
##ln -s /etc/rc.d/init.d/e-smith-service /etc/rc.d/rc7.d/S98gwsetup |
93 |
|
mkdir -p /var/log/gwsetup |
94 |
|
chown smelog:smelog /var/log/gwsetup |
95 |
|
|
96 |
%preun |
%preun |
97 |
/sbin/e-smith/db configuration setprop geneweb status disabled |
/sbin/e-smith/db configuration setprop geneweb status disabled |
98 |
/etc/rc.d/init.d/gwd stop |
/sbin/e-smith/db configuration setprop gwsetup status disabled |
99 |
|
#/etc/rc.d/init.d/geneweb stop |
100 |
|
#/etc/rc.d/init.d/gwsetup stop |
101 |
|
/usr/bin/sv stop geneweb |
102 |
|
/usr/bin/sv stop gwsetup |
103 |
|
|
104 |
%postun |
%postun |
|
/sbin/e-smith/expand-template /etc/rc.d/init.d/masq |
|
|
#/etc/rc.d/init.d/masq restart |
|