/[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.3 by unnilennium, Mon Dec 2 15:37:27 2013 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.2 2013/11/28 22:35:28 unnilennium 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 13
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  BuildArchitectures: noarch  BuildArchitectures: noarch
20  BuildRoot: /var/tmp/%{name}-%{version}  BuildRoot: /var/tmp/%{name}-%{version}
21  Requires: e-smith-release >= 7.1.1  Requires: e-smith-release >= 7.1.1
# Line 30  userpanels available in seperate rpms. Line 32  userpanels available in seperate rpms.
32  Panels can be delegated at user, group or global levels  Panels can be delegated at user, group or global levels
33    
34  %changelog  %changelog
35    * Mon Dec 2 2013  JP Pialasse <tests@pialasse.com>  0.9-13.sme
36    - reverting language links creation in post as temp fix. see Bugs 8032 and 8022
37    - final fix will depends on 8032 int he future
38    
39    * Thu Nov 28 2013 JP Pialasse <tests@pialasse.com>  0.9-12.sme
40    - NFR: logout button  [SME: 8022]
41    - NFR: show username [SME: 8025]
42    - should fix 500 error by adding action in most events [SME: 7667]
43    - spec file tidying
44    
45  * Sun Feb 17 2008 Stephen Noble <support@dungog.net> 0.9-11  * Sun Feb 17 2008 Stephen Noble <support@dungog.net> 0.9-11
46  - remove pleasewait hack [SME: 126]  - remove pleasewait hack [SME: 126]
47    
# Line 313  Panels can be delegated at user, group o Line 325  Panels can be delegated at user, group o
325  %prep  %prep
326  %setup  %setup
327  %patch0 -p1  %patch0 -p1
328    %patch1 -p1
329    %patch2 -p1
330    
331  %build  %build
332  perl createlinks  perl createlinks
# Line 323  mkdir -p root/etc/e-smith/web/panels/use Line 337  mkdir -p root/etc/e-smith/web/panels/use
337  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
338  (cd root   ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)  (cd root   ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
339  rm -f %{name}-%{version}-filelist  rm -f %{name}-%{version}-filelist
340  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
341    |grep -v 'logout-user'> %{name}-%{version}-filelist
342  echo "%doc COPYING"  >> %{name}-%{version}-filelist  echo "%doc COPYING"  >> %{name}-%{version}-filelist
343    echo '%attr(0755,root,admin) /etc/e-smith/web/common/cgi-bin/logout-user'>> %{name}-%{version}-filelist
344    
345  %clean  %clean
346  cd ..  #cd ..
347  rm -rf %{name}-%{version}  #rm -rf %{name}-%{version}
348    
349  %pre  %pre
350  %preun  %preun
351    
352  %post  %post
353    
354  /sbin/e-smith/expand-template /etc/httpd/admin-conf/httpd.conf  #/sbin/e-smith/expand-template /etc/httpd/admin-conf/httpd.conf
355  /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf  #/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
356  /usr/local/bin/svc -h /service/httpd-admin  #/usr/local/bin/svc -h /service/httpd-admin
357  /usr/local/bin/svc -h /service/httpd-e-smith  #/usr/local/bin/svc -h /service/httpd-e-smith
358    
359  #needs script to find existing languages  #needs script to find existing languages
360  #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
361  #should have in build not post  #should have in build not post
362    # or better move as action in events, this way we could update any languages.
363  for lang in en-us fr es it de sv pt sl nl #el id  for lang in en-us fr es it de sv pt sl nl #el id
364  do  do
365  /bin/mkdir -p /etc/e-smith/locale/$lang/etc/e-smith/web/panels/user  /bin/mkdir -p /etc/e-smith/locale/$lang/etc/e-smith/web/panels/user
366  /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/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
367  done  done
368    
369  /sbin/e-smith/signal-event conf-userpanel  #/sbin/e-smith/signal-event conf-userpanel
370    
371  %postun  %postun
372  #uninstall  #uninstall
373  if [ $1 = 0 ] ; then  #if [ $1 = 0 ] ; then
374   /sbin/e-smith/expand-template /etc/httpd/admin-conf/httpd.conf  # /sbin/e-smith/expand-template /etc/httpd/admin-conf/httpd.conf
375   /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf  # /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
376   /usr/local/bin/svc -h /service/httpd-admin  # /usr/local/bin/svc -h /service/httpd-admin
377   /usr/local/bin/svc -h /service/httpd-e-smith  # /usr/local/bin/svc -h /service/httpd-e-smith
378    
379   #this has moved ?fixme?  # #this has moved ?fixme?
380   DBS=`find /home/e-smith/db/navigation -type f -name "navigation.*"`  # DBS=`find /home/e-smith/db/navigation -type f -name "navigation.*"`
381   for db in $DBS ; do  # for db in $DBS ; do
382     /sbin/e-smith/db $db delete userpanelaccess  #   /sbin/e-smith/db $db delete userpanelaccess
383   done  # done
384  fi  #fi
385    
386  %files -f %{name}-%{version}-filelist  %files -f %{name}-%{version}-filelist
387  %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