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