/[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.2 by unnilennium, Thu Nov 28 22:35:28 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.1 2013/02/07 02:23:23 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 12
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    * Thu Nov 28 2013 JP Pialasse <tests@pialasse.com>  0.9-12.sme
36    - NFR: logout button  [SME: 8022]
37    - NFR: show username [SME: 8025]
38    - should fix 500 error by adding action in most events [SME: 7667]
39    - spec file tidying
40    
41  * Sun Feb 17 2008 Stephen Noble <support@dungog.net> 0.9-11  * Sun Feb 17 2008 Stephen Noble <support@dungog.net> 0.9-11
42  - remove pleasewait hack [SME: 126]  - remove pleasewait hack [SME: 126]
43    
# Line 313  Panels can be delegated at user, group o Line 321  Panels can be delegated at user, group o
321  %prep  %prep
322  %setup  %setup
323  %patch0 -p1  %patch0 -p1
324    %patch1 -p1
325    %patch2 -p1
326    
327  %build  %build
328  perl createlinks  perl createlinks
# Line 323  mkdir -p root/etc/e-smith/web/panels/use Line 333  mkdir -p root/etc/e-smith/web/panels/use
333  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
334  (cd root   ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)  (cd root   ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
335  rm -f %{name}-%{version}-filelist  rm -f %{name}-%{version}-filelist
336  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
337    |grep -v 'logout-user'> %{name}-%{version}-filelist
338  echo "%doc COPYING"  >> %{name}-%{version}-filelist  echo "%doc COPYING"  >> %{name}-%{version}-filelist
339    echo '%attr(0755,root,admin) /etc/e-smith/web/common/cgi-bin/logout-user'>> %{name}-%{version}-filelist
340    
341  %clean  %clean
342  cd ..  #cd ..
343  rm -rf %{name}-%{version}  #rm -rf %{name}-%{version}
344    
345  %pre  %pre
346  %preun  %preun
347    
348  %post  %post
349    
350  /sbin/e-smith/expand-template /etc/httpd/admin-conf/httpd.conf  #/sbin/e-smith/expand-template /etc/httpd/admin-conf/httpd.conf
351  /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf  #/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
352  /usr/local/bin/svc -h /service/httpd-admin  #/usr/local/bin/svc -h /service/httpd-admin
353  /usr/local/bin/svc -h /service/httpd-e-smith  #/usr/local/bin/svc -h /service/httpd-e-smith
354    
355  #needs script to find existing languages  #needs script to find existing languages
356  #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
357  #should have in build not post  #should have in build not post
358  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
359  do  #do
360  /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
361  /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
362  done  #done
363    
364  /sbin/e-smith/signal-event conf-userpanel  #/sbin/e-smith/signal-event conf-userpanel
365    
366  %postun  %postun
367  #uninstall  #uninstall
368  if [ $1 = 0 ] ; then  #if [ $1 = 0 ] ; then
369   /sbin/e-smith/expand-template /etc/httpd/admin-conf/httpd.conf  # /sbin/e-smith/expand-template /etc/httpd/admin-conf/httpd.conf
370   /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf  # /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
371   /usr/local/bin/svc -h /service/httpd-admin  # /usr/local/bin/svc -h /service/httpd-admin
372   /usr/local/bin/svc -h /service/httpd-e-smith  # /usr/local/bin/svc -h /service/httpd-e-smith
373    
374   #this has moved ?fixme?  # #this has moved ?fixme?
375   DBS=`find /home/e-smith/db/navigation -type f -name "navigation.*"`  # DBS=`find /home/e-smith/db/navigation -type f -name "navigation.*"`
376   for db in $DBS ; do  # for db in $DBS ; do
377     /sbin/e-smith/db $db delete userpanelaccess  #   /sbin/e-smith/db $db delete userpanelaccess
378   done  # done
379  fi  #fi
380    
381  %files -f %{name}-%{version}-filelist  %files -f %{name}-%{version}-filelist
382  %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