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

Diff of /rpms/smeserver-geneweb/contribs10/smeserver-geneweb.spec

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

Revision 1.1 by michel, Thu Nov 5 17:12:04 2020 UTC Revision 1.2 by michel, Mon Mar 15 17:11:44 2021 UTC
# Line 2  Summary: Package to integrate GeneWeb (V Line 2  Summary: Package to integrate GeneWeb (V
2  %define name smeserver-geneweb  %define name smeserver-geneweb
3  Name: %{name}  Name: %{name}
4  %define version 2.3.0  %define version 2.3.0
5  %define release 1  %define release 2
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.xz  Source: %{name}-%{version}.tar.xz
11  #Patch0: %{name}-%{version}-init_v10.patch  Patch0: %{name}-%{version}-init_v10_systemd.patch
12    Patch1: %{name}-%{version}-to_smanager.patch
13    
14  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
15  BuildArchitectures: noarch  BuildArchitectures: noarch
# Line 16  Requires: geneweb >= 6.08 Line 17  Requires: geneweb >= 6.08
17  Requires: smeserver-release >= 10.0  Requires: smeserver-release >= 10.0
18  Requires: e-smith-formmagick >= 2.4.0-1  Requires: e-smith-formmagick >= 2.4.0-1
19  BuildRequires: e-smith-devtools  BuildRequires: e-smith-devtools
20    AutoReqProv: no
21    
22  %description  %description
23  This RPM must be installed after the geneweb*.el6.sme package  This RPM must be installed after the geneweb*.el6.sme package
24  to complete the integration for SME Server.  to complete the integration for SME Server.
25    
26  %changelog  %changelog
27    * Mon Mar 15 2021 Michel Begue <mab974@gmail.com> 2.3.0-2.sme
28    - change geneweb & gwsetup to systemd services
29    - add smeserver-geneweb-update event
30    - add template and controller for smanager
31    
32  * Thu Nov 05 2020 Michel Begue <mab974@gmail.com> 2.3.0-1.sme  * Thu Nov 05 2020 Michel Begue <mab974@gmail.com> 2.3.0-1.sme
33  - first import to sme 10 for geneweb v6.08  - first import to sme 10 for geneweb v6.08
34    
# Line 46  to complete the integration for SME Serv Line 53  to complete the integration for SME Serv
53  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
54    
55  %setup  %setup
56  #%patch0 -p1  %patch0 -p1
57    %patch1 -p1
58    
59  %build  %build
60  perl createlinks  perl createlinks
# Line 67  echo "%doc COPYING" >> %{name}-%{version Line 75  echo "%doc COPYING" >> %{name}-%{version
75  %files -f %{name}-%{version}-filelist  %files -f %{name}-%{version}-filelist
76    
77  %defattr(-,root,root)  %defattr(-,root,root)
78  %attr(755, root, root) /var/service/geneweb/log/run  %attr(755, root, root) /usr/lib/systemd/systemd-geneweb
79  %attr(755, root, root) /var/service/gwsetup/log/run  %attr(755, root, root) /usr/lib/systemd/systemd-gwsetup
80    
81    
82  %clean  %clean
# Line 77  rm -rf $RPM_BUILD_ROOT Line 85  rm -rf $RPM_BUILD_ROOT
85  %pre  %pre
86    
87  %post  %post
 ln -s /var/service/geneweb /service/geneweb  
 touch /var/service/geneweb/down  
 ln -s /etc/rc.d/init.d/daemontools /etc/rc.d/init.d/supervise/geneweb  
 ##ln -s /etc/rc.d/init.d/e-smith-service /etc/rc.d/rc7.d/S98geneweb  
88  mkdir -p /var/log/geneweb  mkdir -p /var/log/geneweb
89  chown smelog:smelog /var/log/geneweb  chown geneweb:geneweb /var/log/geneweb
 ln -s /var/service/gwsetup /service/gwsetup  
 touch /var/service/gwsetup/down  
 ln -s /etc/rc.d/init.d/daemontools /etc/rc.d/init.d/supervise/gwsetup  
 ##ln -s /etc/rc.d/init.d/e-smith-service /etc/rc.d/rc7.d/S98gwsetup  
90  mkdir -p /var/log/gwsetup  mkdir -p /var/log/gwsetup
91  chown smelog:smelog /var/log/gwsetup  chown geneweb:geneweb /var/log/gwsetup
92    
93  %preun  %preun
94  /sbin/e-smith/db configuration setprop geneweb status disabled  /sbin/e-smith/db configuration setprop geneweb status disabled
95  /sbin/e-smith/db configuration setprop gwsetup status disabled  /sbin/e-smith/db configuration setprop gwsetup status disabled
96  #/etc/rc.d/init.d/geneweb stop  /usr/bin/systemctl stop geneweb gwsetup
 #/etc/rc.d/init.d/gwsetup stop  
 /usr/bin/sv stop geneweb  
 /usr/bin/sv stop gwsetup  
97    
98  %postun  %postun


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

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