1 |
# $Id: smeserver-manager.spec,v 1.21 2020/04/12 09:02:48 michel Exp $ |
# $Id: smeserver-manager.spec,v 1.32 2020/08/17 17:17:11 michel Exp $ |
2 |
|
|
3 |
Summary: Sme server navigation module : manager 2 |
Summary: Sme server navigation module : manager 2 |
4 |
%define name smeserver-manager |
%define name smeserver-manager |
5 |
Name: %{name} |
Name: %{name} |
6 |
%define version 0.1.0 |
%define version 0.1.0 |
7 |
%define release 19 |
%define release 30 |
8 |
Version: %{version} |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
10 |
License: GPL |
License: GPL |
11 |
Group: Networking/Daemons |
Group: Networking/Daemons |
12 |
Source: %{name}-%{version}.tar.xz |
Source: %{name}-0.1.0.tar.xz |
13 |
Patch0: %{name}-0.1.0-bz10506.patch |
Patch0: %{name}-0.1.0-bz10506.patch |
14 |
Patch1: %{name}-add-basic-files.patch |
Patch1: %{name}-add-basic-files.patch |
15 |
Patch2: %{name}-0.1.0-mojo_struct.patch |
Patch2: %{name}-0.1.0-mojo_struct.patch |
27 |
Patch14: %{name}-0.1.0-portforwarding-rule-comment-missing.patch |
Patch14: %{name}-0.1.0-portforwarding-rule-comment-missing.patch |
28 |
Patch15: %{name}-0.1.0-yum_backup_email_cleanup.patch |
Patch15: %{name}-0.1.0-yum_backup_email_cleanup.patch |
29 |
Patch16: %{name}-0.1.0-remove_tests.patch |
Patch16: %{name}-0.1.0-remove_tests.patch |
30 |
|
Patch17: %{name}-0.1.0-routes_locales_navig.patch |
31 |
|
Patch18: %{name}-0.1.0-error_success_routes_locales.patch |
32 |
|
Patch19: %{name}-0.1.0-translation_themes.patch |
33 |
|
Patch20: %{name}-0.1.0-mojo-app_password_menus.patch |
34 |
|
Patch21: %{name}-0.1.0-missing_translations.patch |
35 |
|
Patch22: %{name}-0.1.0-bz9457_bz8903_pseudo_acct_swtheme.patch |
36 |
|
Patch23: %{name}-0.1.0-start_service.patch |
37 |
|
Patch24: %{name}-0.1.0-datetime_quota.patch |
38 |
|
Patch25: %{name}-0.1.0-bz10976_bz10977_others.patch |
39 |
|
Patch26: %{name}-0.1.0-route_lexicon_locales.patch |
40 |
|
Patch27: %{name}-0.1.0-I18N_cleanup_tests.patch |
41 |
|
|
42 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
43 |
|
BuildArchitectures: noarch |
44 |
|
|
45 |
BuildRequires: e-smith-devtools |
BuildRequires: e-smith-devtools |
46 |
BuildRequires: gettext |
BuildRequires: gettext |
47 |
BuildRequires: gcc |
#<Build tests> |
48 |
|
#BuildRequires: perl >= 0:5.016 |
49 |
|
#BuildRequires: perl(Test::More) |
50 |
|
#BuildRequires: perl(Test::Mojo) |
51 |
|
#BuildRequires: perl(Mojolicious) >= 7.56 |
52 |
|
#BuildRequires: perl(Mojolicious::Plugin::I18N) >= 1.6 |
53 |
|
#BuildRequires: perl(Net::Netmask) >= 1.9 |
54 |
|
#</Build tests> |
55 |
|
|
56 |
Requires: e-smith-lib >= 1.18.0-26 |
Requires: e-smith-lib >= 1.18.0-26 |
57 |
Requires: e-smith-manager >= 2.4.0-22 |
Requires: e-smith-manager >= 2.4.0-22 |
58 |
Requires: perl-Mojolicious >= 6.44 |
Requires: perl(Mojolicious) >= 7.56 |
59 |
Requires: perl-Mojolicious-Plugin-I18N >= 1.6 |
Requires: perl(Mojolicious::Plugin::I18N) >= 1.6 |
60 |
Requires: pwauth |
Requires: perl(Net::Netmask) >= 1.9 |
|
Requires: perl(Apache::AuthTkt) |
|
61 |
#Requires: js-jquery > 2.2.4-3 (optional) |
#Requires: js-jquery > 2.2.4-3 (optional) |
62 |
Provides: server-manager2 |
Requires: pwauth |
63 |
|
#Requires: perl(Apache::AuthTkt) |
64 |
|
|
65 |
|
Provides: server-manager |
66 |
AutoReqProv: no |
AutoReqProv: no |
67 |
|
|
68 |
%define dir_mngr /etc/e-smith/web/panels/manager2 |
%define dir_mngr /usr/share/smanager |
69 |
|
|
70 |
|
|
71 |
|
%description |
72 |
|
This RPM contributes the navigation bars for the smeserver-manager. |
73 |
|
|
74 |
|
%prep |
75 |
|
%setup |
76 |
|
%patch0 -p1 |
77 |
|
%patch1 -p1 |
78 |
|
%patch2 -p1 |
79 |
|
%patch3 -p1 |
80 |
|
%patch4 -p1 |
81 |
|
%patch5 -p1 |
82 |
|
%patch6 -p1 |
83 |
|
%patch7 -p1 |
84 |
|
%patch8 -p1 |
85 |
|
%patch9 -p1 |
86 |
|
%patch10 -p1 |
87 |
|
%patch11 -p1 |
88 |
|
%patch12 -p1 |
89 |
|
%patch13 -p1 |
90 |
|
%patch14 -p1 |
91 |
|
%patch15 -p1 |
92 |
|
%patch16 -p1 |
93 |
|
%patch17 -p1 |
94 |
|
%patch18 -p1 |
95 |
|
%patch19 -p1 |
96 |
|
%patch20 -p1 |
97 |
|
%patch21 -p1 |
98 |
|
%patch22 -p1 |
99 |
|
%patch23 -p1 |
100 |
|
%patch24 -p1 |
101 |
|
%patch25 -p1 |
102 |
|
%patch26 -p1 |
103 |
|
%patch27 -p1 |
104 |
|
|
105 |
|
%build |
106 |
|
perl createlinks |
107 |
|
|
108 |
|
# Force creation of potentially empty directories |
109 |
|
mkdir -p root/etc/e-smith/db/routes |
110 |
|
mkdir -p root/home/e-smith/db/navigation2 |
111 |
|
mkdir -p root%{dir_mngr}/themes/default/public/css |
112 |
|
|
113 |
|
%install |
114 |
|
rm -rf $RPM_BUILD_ROOT |
115 |
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
116 |
|
rm -f %{name}-%{version}-%{release}-filelist |
117 |
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
118 |
|
--dir %{dir_mngr} 'attr(0755,root,root)' \ |
119 |
|
--file %{dir_mngr}/log/development.log 'attr(0660,root,admin)' \ |
120 |
|
--file %{dir_mngr}/log/production.log 'attr(0660,root,admin)' \ |
121 |
|
> %{name}-%{version}-%{release}-filelist |
122 |
|
|
123 |
|
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist |
124 |
|
|
125 |
|
%check |
126 |
|
#cd $RPM_BUILD_ROOT/%{dir_mngr} && QUICK_TEST=1 /usr/bin/prove -q -l -r |
127 |
|
|
128 |
|
%clean |
129 |
|
rm -rf $RPM_BUILD_ROOT |
130 |
|
|
131 |
|
%pre |
132 |
|
|
133 |
|
%preun |
134 |
|
if [ -f /usr/share/javascript/jquery/latest/jquery.min.js ] |
135 |
|
then |
136 |
|
unlink %{dir_mngr}/themes/default/public/js/jquery.min.js |
137 |
|
fi |
138 |
|
systemctl disable smanager.service |
139 |
|
true |
140 |
|
|
141 |
|
%post |
142 |
|
if [ -f /usr/share/javascript/jquery/latest/jquery.min.js ] |
143 |
|
then |
144 |
|
mkdir %{dir_mngr}/themes/default/public/js |
145 |
|
ln -s /usr/share/javascript/jquery/latest/jquery.min.js %{dir_mngr}/themes/default/public/js/jquery.min.js |
146 |
|
fi |
147 |
|
/sbin/e-smith/expand-template /usr/share/smanager/conf/srvmngr.conf |
148 |
|
/sbin/e-smith/expand-template /etc/systemd/system/smanager.service |
149 |
|
systemctl enable smanager.service |
150 |
|
systemctl restart smanager.service |
151 |
|
true |
152 |
|
|
153 |
|
%postun |
154 |
|
%files -f %{name}-%{version}-%{release}-filelist |
155 |
|
%defattr(-,root,root) |
156 |
|
|
157 |
%changelog |
%changelog |
158 |
|
* Mon Oct 05 2020 Michel Begue <mab974@gmail.com> 0.1.0-30.sme |
159 |
|
- fix I18N Namespace change for keeping Language |
160 |
|
- clean up emailsettings code |
161 |
|
- remove old global lexicon files |
162 |
|
- add first simple tests |
163 |
|
- add smanager-update event |
164 |
|
|
165 |
|
* Mon Aug 17 2020 Michel Begue <mab974@gmail.com> 0.1.0-29.sme |
166 |
|
- validate lexicon file before install |
167 |
|
- fix route url construction (+) |
168 |
|
- add authentication messages to locales |
169 |
|
|
170 |
|
* Fri Aug 07 2020 Michel Begue <mab974@gmail.com> 0.1.0-28.sme |
171 |
|
- validate netmask in LocalNetworks [SME: 10976] |
172 |
|
- validate netmask in RemoteAccess [SME: 10977] |
173 |
|
- prettier action button |
174 |
|
- accept undescore in lexicon name |
175 |
|
- change route urls for LocalNetworks and Portforwarding |
176 |
|
- add rendering to LocalNetworks notification |
177 |
|
|
178 |
|
* Mon Jul 06 2020 Michel Begue <mab974@gmail.com> 0.1.0-27.sme |
179 |
|
- Fix typo in %post here |
180 |
|
- Complete 'datetime' panel |
181 |
|
- Fix notification in 'quota' panel |
182 |
|
|
183 |
|
* Wed Jul 01 2020 Michel Begue <mab974@gmail.com> 0.1.0-26.sme |
184 |
|
- Fix first start error |
185 |
|
- Fix incorrect messages and various typos in modules |
186 |
|
- Add possibility to hide menu(s) (requires jquery) |
187 |
|
|
188 |
|
* Sat Jun 13 2020 Michel Begue <mab974@gmail.com> 0.1.0-25.sme |
189 |
|
- Remove 'Starterwebsite' panel [SME: 8903] |
190 |
|
- Add choice for creating Pseudonyms [SME: 9457] |
191 |
|
- Change URL in 'useraccounts' templates |
192 |
|
- Change app to smanager in controller 'Swttheme' |
193 |
|
|
194 |
|
* Wed Jun 10 2020 Michel Begue <mab974@gmail.com> 0.1.0-24.sme |
195 |
|
- Fix missing translations for some panels |
196 |
|
|
197 |
|
* Mon Jun 08 2020 Michel Begue <mab974@gmail.com> 0.1.0-23.sme |
198 |
|
- Transform to Mojo application (apache/mod_proxy mode) |
199 |
|
- Add internal login and multi mode menus |
200 |
|
- Add userpassword panel |
201 |
|
|
202 |
|
* Fri May 08 2020 Michel Begue <mab974@gmail.com> 0.1.0-22.sme |
203 |
|
- Fix translation in 'useraccounts' panel |
204 |
|
- Restore theme switcher route |
205 |
|
- Fix theme switcher redirection |
206 |
|
- fix lexicon file not found [SME: 10927] |
207 |
|
|
208 |
|
* Mon Apr 27 2020 Michel Begue <mab974@gmail.com> 0.1.0-21.sme |
209 |
|
- Fix error and success management |
210 |
|
- Optimize Routes (number) |
211 |
|
- Delete share_dir variable |
212 |
|
- Attach Locale lexicon to Panel and Panel? |
213 |
|
- Fix lack of translation of first page |
214 |
|
|
215 |
|
* Wed Apr 15 2020 Michel Begue <mab974@gmail.com> 0.1.0-20.sme |
216 |
|
- Patch the I18N plugin to accept namespace changes |
217 |
|
- Split global locales files to module level |
218 |
|
- Consider additional contrib locales files |
219 |
|
- Consider additional contrib routes and navigation item |
220 |
|
- fix colour button in portforwarding panel |
221 |
|
- fix missing esmith::util in starterwebsite panel |
222 |
|
|
223 |
* Tue Apr 14 2020 Michel Begue <mab974@gmail.com> 0.1.0-19.sme |
* Tue Apr 14 2020 Michel Begue <mab974@gmail.com> 0.1.0-19.sme |
224 |
- Remove tests : useraccounts, wbl |
- Remove tests : useraccounts, wbl |
225 |
|
|
1011 |
* Tue Mar 14 2000 Charlie Brady <charlieb@e-smith.com> |
* Tue Mar 14 2000 Charlie Brady <charlieb@e-smith.com> |
1012 |
Wed Mar 14 2000 --> Wed Mar 08 2000 or Tue Mar 14 2000 or Wed Mar 15 2000 or .... |
Wed Mar 14 2000 --> Wed Mar 08 2000 or Tue Mar 14 2000 or Wed Mar 15 2000 or .... |
1013 |
- initial release |
- initial release |
|
|
|
|
%description |
|
|
This RPM contributes the navigation bars for the smeserver-manager. |
|
|
|
|
|
%prep |
|
|
%setup |
|
|
%patch0 -p1 |
|
|
%patch1 -p1 |
|
|
%patch2 -p1 |
|
|
%patch3 -p1 |
|
|
%patch4 -p1 |
|
|
%patch5 -p1 |
|
|
%patch6 -p1 |
|
|
%patch7 -p1 |
|
|
%patch8 -p1 |
|
|
%patch9 -p1 |
|
|
%patch10 -p1 |
|
|
%patch11 -p1 |
|
|
%patch12 -p1 |
|
|
%patch13 -p1 |
|
|
%patch14 -p1 |
|
|
%patch15 -p1 |
|
|
%patch16 -p1 |
|
|
|
|
|
%build |
|
|
perl createlinks |
|
|
|
|
|
# Force creation of potentially empty directories |
|
|
mkdir -p root/etc/e-smith/web/functions2 |
|
|
mkdir -p root/home/e-smith/db/navigation |
|
|
mkdir -p root%{dir_mngr}/html |
|
|
mkdir -p root%{dir_mngr}/cgi-bin/srvmngr/themes/default/public/css |
|
|
|
|
|
ln -s /etc/e-smith/web/common/cgi-bin/logout root/%{dir_mngr}/cgi-bin/logout |
|
|
ln -s %{dir_mngr}/cgi-bin/srvmngr/conf/srvmngr.conf root/%{dir_mngr}/cgi-bin/srvmngr/srvmngr.conf |
|
|
ln -s %{dir_mngr}/cgi-bin/srvmngr/script/srvmngr.pl root/%{dir_mngr}/cgi-bin/srvmngr/srvmngr.pl |
|
|
|
|
|
gcc -o root/etc/e-smith/web/functions2/wrapper2 manager2.c |
|
|
|
|
|
for file in index #initial |
|
|
do |
|
|
ln -s ../../../functions2/wrapper2 root%{dir_mngr}/html/${file}.cgi |
|
|
done |
|
|
|
|
|
|
|
|
%install |
|
|
rm -rf $RPM_BUILD_ROOT |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
|
|
rm -f %{name}-%{version}-%{release}-filelist |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
|
|
--dir %{dir_mngr} 'attr(0755,root,root)' \ |
|
|
--file /etc/e-smith/web/functions2/wrapper2 'attr(4750,root,admin)' \ |
|
|
--file /etc/e-smith/web/functions2/index.cgi 'attr(0500,root,root)' \ |
|
|
--file %{dir_mngr}/html/index.cgi 'attr(root,admin)' \ |
|
|
--file %{dir_mngr}/cgi-bin/srvmngr/log/development.log 'attr(0660,root,admin)' \ |
|
|
> %{name}-%{version}-%{release}-filelist |
|
|
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist |
|
|
|
|
|
|
|
|
%clean |
|
|
rm -rf $RPM_BUILD_ROOT |
|
|
|
|
|
%pre |
|
|
|
|
|
%preun |
|
|
# js-jquery from epel |
|
|
##if (rpm -q js-jquery > /dev/null 2>&1) |
|
|
if [ -f /usr/share/javascript/jquery/latest/jquery.min.js ] |
|
|
then |
|
|
unlink %{dir_mngr}/cgi-bin/srvmngr/themes/default/public/js/jquery.min.js |
|
|
fi |
|
|
|
|
|
%post |
|
|
# js-jquery from epel |
|
|
##if (rpm -q js-jquery > /dev/null 2>&1) |
|
|
if [ -f /usr/share/javascript/jquery/latest/jquery.min.js ] |
|
|
then |
|
|
mkdir %{dir_mngr}/cgi-bin/srvmngr/themes/default/public/js |
|
|
ln -s /usr/share/javascript/jquery/latest/jquery.min.js %{dir_mngr}/cgi-bin/srvmngr/themes/default/public/js/jquery.min.js |
|
|
fi |
|
|
|
|
|
|
|
|
%postun |
|
|
%files -f %{name}-%{version}-%{release}-filelist |
|
|
%defattr(-,root,root) |
|