/[smecontribs]/rpms/smeserver-userpanel/contribs8/smeserver-userpanel.spec
ViewVC logotype

Diff of /rpms/smeserver-userpanel/contribs8/smeserver-userpanel.spec

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

Revision 1.1 by unnilennium, Thu Feb 7 02:23:23 2013 UTC Revision 1.10 by stephdl, Fri Aug 22 18:58:50 2014 UTC
# Line 1  Line 1 
1  # $Id: smeserver-userpanel.spec,v 1.4 2008/11/25 16:20:33 slords Exp $  # $Id: smeserver-userpanel.spec,v 1.9 2014/08/22 15:00:34 stephdl Exp $
2  # Authority: dungog  # Authority: dungog
3  # Name: Stephen Noble  # Name: Stephen Noble
4    
# Line 6  Summary: Provide a user panel to let use Line 6  Summary: Provide a user panel to let use
6  %define name smeserver-userpanel  %define name smeserver-userpanel
7  Name: %{name}  Name: %{name}
8  %define version 0.9  %define version 0.9
9  %define release 11  %define release 18
10  Version: %{version}  Version: %{version}
11  Release: %{release}%{?dist}  Release: %{release}%{?dist}
12  License: GPL  License: GPL
# Line 14  URL: http://www.dungog.net/sme Line 14  URL: http://www.dungog.net/sme
14  Group: SMEserver/addon  Group: SMEserver/addon
15  Source: %{name}-%{version}.tar.gz  Source: %{name}-%{version}.tar.gz
16  Patch0: smeserver-userpanel-0.9-pleasewait.patch  Patch0: smeserver-userpanel-0.9-pleasewait.patch
17    Patch1:  smeserver-userpanel-0.9-logout-menu.patch
18    Patch2: smeserver-userpanel-0.9-sigevents.patch
19    Patch3: smeserver-userpanel-0.9-linktotranslations.patch
20    Patch4: smeserver-userpanel-0.9_logmeout_called_to_early.patch
21    Patch5: smeserver-userpanel-0.9_telnet_unitialized_values.patch
22  BuildArchitectures: noarch  BuildArchitectures: noarch
23  BuildRoot: /var/tmp/%{name}-%{version}  BuildRoot: /var/tmp/%{name}-%{version}
24  Requires: e-smith-release >= 7.1.1  Requires: e-smith-release >= 7.1.1
# Line 30  userpanels available in seperate rpms. Line 35  userpanels available in seperate rpms.
35  Panels can be delegated at user, group or global levels  Panels can be delegated at user, group or global levels
36    
37  %changelog  %changelog
38    * Fri Aug 22 2014 stephane de Labrusse <stephdl@de-labrusse.fr> 0.9-18.sme
39    - added a default value to $TelnetAccess and $TelnetMode [SME:8537]
40    
41    * Tue Aug 19 2014 stephane de Labrusse <stephdl@de-labrusse.fr> 0.9-17.sme
42    - corrected a prototype called too early [SME:8534]
43    - removed all prototypes of file userpanel-navigation
44    
45    * Sun Dec 15 2013 JP Pialasse <tests@pialasse.com>  0.9-16.sme
46    - move post to an action event [SME: 8032]
47    
48    * Mon Dec 2 2013  JP Pialasse <tests@pialasse.com>  0.9-13.sme
49    - reverting language links creation in post as temp fix. see Bugs 8032 and 8022
50    - final fix will depends on 8032 int he future
51    
52    * Thu Nov 28 2013 JP Pialasse <tests@pialasse.com>  0.9-12.sme
53    - NFR: logout button  [SME: 8022]
54    - NFR: show username [SME: 8025]
55    - should fix 500 error by adding action in most events [SME: 7667]
56    - spec file tidying
57    
58  * Sun Feb 17 2008 Stephen Noble <support@dungog.net> 0.9-11  * Sun Feb 17 2008 Stephen Noble <support@dungog.net> 0.9-11
59  - remove pleasewait hack [SME: 126]  - remove pleasewait hack [SME: 126]
60    
# Line 313  Panels can be delegated at user, group o Line 338  Panels can be delegated at user, group o
338  %prep  %prep
339  %setup  %setup
340  %patch0 -p1  %patch0 -p1
341    %patch1 -p1
342    %patch2 -p1
343    %patch3 -p1
344    %patch4 -p1
345    %patch5 -p1
346    
347    
348  %build  %build
349  perl createlinks  perl createlinks
# Line 323  mkdir -p root/etc/e-smith/web/panels/use Line 354  mkdir -p root/etc/e-smith/web/panels/use
354  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
355  (cd root   ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)  (cd root   ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
356  rm -f %{name}-%{version}-filelist  rm -f %{name}-%{version}-filelist
357  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
358    |grep -v 'logout-user'> %{name}-%{version}-filelist
359  echo "%doc COPYING"  >> %{name}-%{version}-filelist  echo "%doc COPYING"  >> %{name}-%{version}-filelist
360    echo '%attr(0755,root,admin) /etc/e-smith/web/common/cgi-bin/logout-user'>> %{name}-%{version}-filelist
361    
362  %clean  %clean
363  cd ..  #cd ..
364  rm -rf %{name}-%{version}  #rm -rf %{name}-%{version}
365    
366  %pre  %pre
367  %preun  %preun
368    
369  %post  %post
370    
371  /sbin/e-smith/expand-template /etc/httpd/admin-conf/httpd.conf  #/sbin/e-smith/expand-template /etc/httpd/admin-conf/httpd.conf
372  /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf  #/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
373  /usr/local/bin/svc -h /service/httpd-admin  #/usr/local/bin/svc -h /service/httpd-admin
374  /usr/local/bin/svc -h /service/httpd-e-smith  #/usr/local/bin/svc -h /service/httpd-e-smith
375    
376  #needs script to find existing languages  #needs script to find existing languages
377  #upgrades (and new installs) should be in new but existing users may miss some lexicons  #upgrades (and new installs) should be in new but existing users may miss some lexicons
378  #should have in build not post  #should have in build not post
379  for lang in en-us fr es it de sv pt sl nl #el id  # or better move as action in events, this way we could update any languages.
380  do  #for lang in en-us fr es it de sv pt sl nl #el id
381  /bin/mkdir -p /etc/e-smith/locale/$lang/etc/e-smith/web/panels/user  #do
382  /bin/ln -sf /etc/e-smith/locale/$lang/etc/e-smith/web/functions /etc/e-smith/locale/$lang/etc/e-smith/web/panels/user/cgi-bin  #/bin/mkdir -p /etc/e-smith/locale/$lang/etc/e-smith/web/panels/user
383  done  #/bin/ln -sf /etc/e-smith/locale/$lang/etc/e-smith/web/functions /etc/e-smith/locale/$lang/etc/e-smith/web/panels/user/cgi-bin
384    #done
385    
386  /sbin/e-smith/signal-event conf-userpanel  #/sbin/e-smith/signal-event conf-userpanel
387    
388  %postun  %postun
389  #uninstall  #uninstall
390  if [ $1 = 0 ] ; then  #if [ $1 = 0 ] ; then
391   /sbin/e-smith/expand-template /etc/httpd/admin-conf/httpd.conf  # /sbin/e-smith/expand-template /etc/httpd/admin-conf/httpd.conf
392   /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf  # /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
393   /usr/local/bin/svc -h /service/httpd-admin  # /usr/local/bin/svc -h /service/httpd-admin
394   /usr/local/bin/svc -h /service/httpd-e-smith  # /usr/local/bin/svc -h /service/httpd-e-smith
395    
396   #this has moved ?fixme?  # #this has moved ?fixme?
397   DBS=`find /home/e-smith/db/navigation -type f -name "navigation.*"`  # DBS=`find /home/e-smith/db/navigation -type f -name "navigation.*"`
398   for db in $DBS ; do  # for db in $DBS ; do
399     /sbin/e-smith/db $db delete userpanelaccess  #   /sbin/e-smith/db $db delete userpanelaccess
400   done  # done
401  fi  #fi
402    
403  %files -f %{name}-%{version}-filelist  %files -f %{name}-%{version}-filelist
404  %defattr(-,root,root)  %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