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