/[smeserver]/rpms/smeserver-manager/sme10/smeserver-manager.spec
ViewVC logotype

Diff of /rpms/smeserver-manager/sme10/smeserver-manager.spec

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

Revision 1.4 by jcrisp, Mon Dec 17 12:01:03 2018 UTC Revision 1.33 by michel, Mon Oct 5 15:43:13 2020 UTC
# Line 1  Line 1 
1  # $Id: smeserver-manager.spec,v 1.3 2018/02/04 18:11:07 jpp Exp $  # $Id: smeserver-manager.spec,v 1.32 2020/08/17 17:17:11 michel Exp $
2    
3  Summary: smeserver manager 2 navigation module  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 2  %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: smeserver-manager-0.1.0-bz10506.patch  Patch0: %{name}-0.1.0-bz10506.patch
14  Patch1: smeserver-manager-add-basic-files.patch  Patch1: %{name}-add-basic-files.patch
15    Patch2: %{name}-0.1.0-mojo_struct.patch
16    Patch3: %{name}-0.1.0-setuid_groups.patch
17    Patch4: %{name}-0.1.0-reboot_ibays_theme.patch
18    Patch5: %{name}-0.1.0-add-adminlte.patch
19    Patch6: %{name}-0.1.0-navigation_header_listes.patch
20    Patch7: %{name}-0.1.0-navigation_errors.patch
21    Patch8: %{name}-0.1.0-theme_navig_message.patch
22    Patch9: %{name}-0.1.0-domains_pseudos_hosts.patch
23    Patch10: %{name}-0.1.0-remotax_users_logs.patch
24    Patch11: %{name}-0.1.0-localnetworks-panel-remove-adminlte.patch
25    Patch12: %{name}-0.1.0-localnetworks-remove-db-call-from-del.patch
26    Patch13: %{name}-0.1.0-portforwarding-localnetwork-cleanup.patch
27    Patch14: %{name}-0.1.0-portforwarding-rule-comment-missing.patch
28    Patch15: %{name}-0.1.0-yum_backup_email_cleanup.patch
29    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
60    Requires:  perl(Net::Netmask) >= 1.9
61    #Requires: js-jquery > 2.2.4-3 (optional)
62  Requires: pwauth  Requires: pwauth
63  Requires: perl(Apache::AuthTkt)  #Requires: perl(Apache::AuthTkt)
64  Requires: smeserver-manager-html  
65  Provides: server-manager2  Provides: server-manager
66  AutoReqProv: no  AutoReqProv: no
67    
68    %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
224    - Remove tests : useraccounts, wbl
225    
226    * Sat Apr 11 2020 Michel Begue <mab974@gmail.com> 0.1.0-18.sme
227    - Add panels : emailaccess, yum, backup
228    - Fix Rendering comments in portforwarding & localnetworks panels
229    - Css and images files added (from manager).
230    - Initial javascript in navigation added (jQuery) -optional-
231    - Add 'Heading...'  navigation informations in controllers
232    - Show Themes_switch if there is more than one theme
233    
234    * Tue Apr 07 2020 Brian Read <brianr@bjsystems.co.uk> 0.1.0-15.sme
235    - Sort out rule comment in portforwarding add panel
236    
237    * Tue Apr 07 2020 Brian Read <brianr@bjsystems.co.uk> 0.1.0-14.sme
238    - Add in portforwarding panel
239    - Clean up localnetwork panel code
240    
241    * Sun Mar 29 2020 Brian Read <brianr@bjsystems.co.uk> 0.1.0-13.sme
242    - Remove Db call in LN_del template
243    - Use Sme-error css class and make sure parameters applied to error message
244    - Remove creation of AdminLTE directories on install
245    
246    * Fri Mar 20 2020 Brian Read <brianr@bjsystems.co.uk> 0.1.0-12.sme
247    - Add panels : localnetworks
248    - Delete AdminLTE code  - will get added into new rpm
249    
250    * Sat Feb 29 2020 Michel Begue <mab974@gmail.com> 0.1.0-11.sme
251    - Add panels : remoteaccess, useraccounts and viewlogfiles
252    - Fix 'bugreport' download
253    - css enhancement in default theme
254    - Fix warnings and typos
255    
256    * Wed Feb 19 2020 Michel Begue <mab974@gmail.com> 0.1.0-10.sme
257    - add panels : domains, hostentries and pseudonyms
258    - remove old navigation menu
259    
260    * Mon Jan 27 2020 Michel Begue <mab974@gmail.com> 0.1.0-9.sme
261    - Fix messages without variables expansion
262    - add a theme switcher
263    - split navigation menu between controller and template
264    - template + event for .conf file
265    
266    * Thu Jan 23 2020 Michel Begue <mab974@gmail.com> 0.1.0-8.sme
267    - Fix errors in Navigation
268    
269    * Wed Jan 22 2020 Michel Begue <mab974@gmail.com> 0.1.0-7.sme
270    - Fix link between Navigation and Theme
271    - Add System and Domain names to available data (header)
272    - Move some data lists from template to controller (select_field)
273    - Integrate last Brian's changes in server-manager2.css (AdminLTE)
274    - Fix some warnings and typos
275    
276    * Fri Jan 17 2020 Brian Read <brianr@bjsystems.co.uk> 0.1.0-6.sme
277    - Add in theme based on AdminLTE html template
278    - Fixes Server name in header (Needs Template expansion - added to Console-Save
279    
280    * Sun Jan 12 2020 Michel Begue <mab974@gmail.com> 0.1.0-5.sme
281    - new theme to come
282    - css enhancement (thanks to B. Read)
283    - panels: reboot and ibays
284    
285    * Wed Jan 01 2020 Michel Begue <mab974@gmail.com> 0.1.0-4.sme
286    - fix setuid with wrapper (remove sudo)
287    - panels quota and groups
288    
289    * Mon Dec 16 2019 Michel Begue <mab974@gmail.com> 0.1.0-3.sme
290    - simple architecture : basic mojolicious app running
291    - some panels
292    - requires perl-Mojolicious-Plugin-I18N
293    
294  * Tue Feb 06 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1.0-2.sme  * Tue Feb 06 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1.0-2.sme
295  - Start adding some template files  - Start adding some template files
296    
# Line 746  AutoReqProv: no Line 1011  AutoReqProv: no
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  
   
 %build  
 perl createlinks  
 #gcc -o root/etc/e-smith/web/functions/wrapper manager.c  
 #mkdir -p root/home/e-smith/db/navigation  
 #mkdir -p root/etc/e-smith/web/common/css  
   
 #mkdir -p root/usr/share/locale/en_US/LC_MESSAGES/  
 #xgettext -o root/usr/share/locale/en_US/LC_MESSAGES/foot.tmpl.po root/etc/e-smith/templates/etc/e-smith/web/common/foot.tmpl/25Copyright  
 ## make header/footer symlinks  
 #ln -s head.tmpl root/etc/e-smith/web/common/userpassword_head.tmpl  
 #ln -s head.tmpl root/etc/e-smith/web/common/noframes_head.tmpl  
 #ln -s foot.tmpl root/etc/e-smith/web/common/noframes_foot.tmpl  
   
 #mkdir -p  root/etc/e-smith/web/panels/manager/html  
 #for file in index initial  
 #do  
 #    ln -s ../../../functions/wrapper root/etc/e-smith/web/panels/manager/html/${file}.cgi  
 #done  
   
 # Force creation of potentially empty directories  
 #mkdir -p root/etc/e-smith/web/{common,functions}  
 #mkdir -p root/etc/e-smith/web/panels/manager/{cgi-bin,html}  
 #mkdir -p root/etc/e-smith/web/panels/password/{cgi-bin,html}  
 #mkdir -p root/etc/httpd/admin-conf  
 mkdir -p root/etc/e-smith/web/panels/manager2/{cgi-bin,html}  
   
 #mkdir -p root/service  
 #mkdir -p root/etc/rc.d/init.d/supervise  
 #for service in httpd-admin  
 #do  
 #  ln -s /var/service/$service root/service/$service  
 #  mkdir -p root/var/service/$service/supervise  
 #  touch root/var/service/$service/down  
 #  if [ -d root/var/service/$service/log ]  
 #  then  
 #    mkdir -p root/var/service/$service/log/supervise  
 #    mkdir -p root/var/log/$service  
 #  fi  
 #  ln -s ../daemontools root/etc/rc.d/init.d/supervise/$service  
 #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 \  
 --file /etc/e-smith/web/panels/manager2/cgi-bin/wbl 'attr(4750,root,admin)' \  
 --file /etc/e-smith/web/panels/manager2/cgi-bin/useraccounts 'attr(4750,root,admin)' \  
 --dir /etc/e-smith/web/panels/manager2 'attr(0755,root,root)' \  
 > %{name}-%{version}-%{release}-filelist  
 echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist  
   
   
 # Samples only  
 #    --file /etc/e-smith/web/common/cgi-bin/login 'attr(0755,root,root)' \  
 #    --file /etc/e-smith/web/common/cgi-bin/logout 'attr(0755,root,root)' \  
 #    --file /etc/e-smith/web/functions/wrapper 'attr(4750,root,admin)' \  
 #    --dir /var/service/httpd-admin 'attr(01755,root,root)' \  
 #    --file /var/service/httpd-admin/down 'attr(0644,root,root)' \  
 #    --file /var/service/httpd-admin/run 'attr(0755,root,root)' \  
 #    --dir /var/service/httpd-admin/log 'attr(0755,root,root)' \  
 #    --dir /var/service/httpd-admin/log/supervise 'attr(0700,root,root)' \  
 #    --dir /var/service/httpd-admin/supervise 'attr(0700,root,root)' \  
 #    --file /var/service/httpd-admin/log/run 'attr(0755,root,root)' \  
 #    --dir /var/log/httpd-admin 'attr(0750,smelog,smelog)' \  
 #    > %{name}-%{version}-%{release}-filelist  
   
 %clean  
 rm -rf $RPM_BUILD_ROOT  
   
 %pre  
 %preun  
 %post  
 #find /etc/e-smith/web/panels/manager/cgi-bin/ -type f | \  
 #    sed -n '/\/[0-9a-z]\{32\}$/p' | \  
 #    xargs grep -l Persisten | \  
 #    xargs rm -f  
   
 %postun  
   
 %files -f %{name}-%{version}-%{release}-filelist  
 %defattr(-,root,root)  


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