/[smecontribs]/rpms/smeserver-vacation/contribs7/smeserver-vacation-1.0.spec
ViewVC logotype

Diff of /rpms/smeserver-vacation/contribs7/smeserver-vacation-1.0.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.6 by slords, Sun Dec 23 21:08:35 2007 UTC Revision 1.10 by dungog, Wed Dec 26 05:04:32 2007 UTC
# Line 1  Line 1 
 Summary: SME Server enhancement to enable vacation messages for users.  
1  %define name smeserver-vacation  %define name smeserver-vacation
 Name: %{name}  
2  %define version 1.0  %define version 1.0
3  %define release 13  %define release 14
4    Summary: SME Server enhancement to enable vacation messages for users.
5    Name: %{name}
6  Version: %{version}  Version: %{version}
7  Release: %{release}%{?dist}  Release: %{release}%{?dist}
8  Distribution: SME Server  License: GNU GPL version 2
 License: GPL  
9  URL: http://www.dungog.net/sme  URL: http://www.dungog.net/sme
10  Group: SMEserver/addon  Group: SMEserver/addon
11  Source: %{name}-%{version}.tar.gz  Source: %{name}-%{version}.tar.gz
12  Patch0: smeserver-vacation-1.0-frMenuSplit.patch  Patch0: smeserver-vacation-1.0-frMenuSplit.patch
13  Patch1: smeserver-vacation-1.0-esLocale.patch  Patch1: smeserver-vacation-1.0-esLocale2.patch
14  BuildArchitectures: noarch  BuildArchitectures: noarch
15  BuildRoot: /var/tmp/%{name}-%{version}  BuildRoot: /var/tmp/%{name}-%{version}
16  Requires: e-smith-release >= 7.0,  Requires: e-smith-release >= 7.0,
# Line 24  Optionally provides a user-manager panel Line 23  Optionally provides a user-manager panel
23  enable vacation for themselves and to modify their own message  enable vacation for themselves and to modify their own message
24    
25  %changelog  %changelog
26    * Wed Dec 26 2007 Stephen Noble <support@dungog.net> 1.0-14
27    - fix spanish translation
28    
29  * Mon Oct 29 2007 Stephen Noble <support@dungog.net> 1.0-13  * Mon Oct 29 2007 Stephen Noble <support@dungog.net> 1.0-13
30  - add spanish translation, thanks Normando Hall [SME 3503]  - add spanish translation, thanks Normando Hall [SME 3503]
31    
# Line 136  enable vacation for themselves and to mo Line 138  enable vacation for themselves and to mo
138  %build  %build
139  perl createlinks  perl createlinks
140    
141  LEXICONS1=$(find root/etc/e-smith/locale/ -type f )  LEXICONS=$(find root/etc/e-smith/{locale/,web/functions/} -type f )
 LEXICONS2=$(find root/etc/e-smith/web/functions/uservacations -type f )  
 LEXICONS2=$(find root/etc/e-smith/web/functions/userpanel-vacation -type f )  
142    
143  for lexicon in $LEXICONS1 $LEXICONS2 $LEXICONS3  for lexicon in $LEXICONS
144  do  do
145      /sbin/e-smith/validate-lexicon $lexicon      /sbin/e-smith/validate-lexicon $lexicon
146  done  done
147    
148  #  it sv  #todo  it sv
149  for LINK in en-us fr de es  for LINK in en-us fr de es
150  do  do
151  #  if [ -z "/etc/e-smith/locale/$LINK/etc/e-smith/web/functions/uservacations"] ; then   /bin/ln -s uservacations root/etc/e-smith/locale/$LINK/etc/e-smith/web/functions/userpanel-vacation
      /bin/ln -s uservacations \  
             root/etc/e-smith/locale/$LINK/etc/e-smith/web/functions/userpanel-vacation  
 #  fi              
152  done  done
153    
154  %install  %install
# Line 164  rm -f %{name}-%{version}-filelist Line 161  rm -f %{name}-%{version}-filelist
161  echo "%doc COPYING"  >> %{name}-%{version}-filelist  echo "%doc COPYING"  >> %{name}-%{version}-filelist
162    
163  %clean  %clean
164  cd ..  rm -rf $RPM_BUILD_ROOT
 rm -rf %{name}-%{version}  
165    
166  %pre  %pre
167  %preun  %preun
168    
169  %post  %post
 #new installs  
 #if [ $1 = 1 ] ; then  
   
 #fi  
   
 #upgrades (and new installs)  
 #/etc/e-smith/events/actions/navigation-conf 2>/dev/null  
   
170  if [ -d /etc/e-smith/events/conf-userpanel ] ; then  if [ -d /etc/e-smith/events/conf-userpanel ] ; then
171     /sbin/e-smith/signal-event conf-userpanel     /sbin/e-smith/signal-event conf-userpanel
172  fi  fi
173    
 #/bin/chmod a+x /usr/local/bin/vacation  
   
174  %postun  %postun
175  #uninstall  #uninstall
176  if [ $1 = 0 ] ; then  if [ $1 = 0 ] ; then
# Line 203  fi Line 189  fi
189    
190  %files -f %{name}-%{version}-filelist  %files -f %{name}-%{version}-filelist
191  %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