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