/[smeserver]/rpms/php-pear-Date-Holidays-Australia/sme10/php-pear-Date_Holidays_Australia.spec
ViewVC logotype

Diff of /rpms/php-pear-Date-Holidays-Australia/sme10/php-pear-Date_Holidays_Australia.spec

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

Revision 1.2 by unnilennium, Thu Jun 16 06:52:41 2016 UTC Revision 1.3 by unnilennium, Thu Jun 16 07:16:46 2016 UTC
# Line 20  BuildRequires:  php-pear(PEAR) >= 1.4.7 Line 20  BuildRequires:  php-pear(PEAR) >= 1.4.7
20  Requires: php-pear(Date_Holidays) >= 0.18.0  Requires: php-pear(Date_Holidays) >= 0.18.0
21  Requires: php-pear(PEAR) >= 1.4.0b1  Requires: php-pear(PEAR) >= 1.4.0b1
22  Provides:       php-pear(%{pear_name}) = %{version}  Provides:       php-pear(%{pear_name}) = %{version}
 BuildRequires: e-smith-devtools >= 1.11.0-12  
23    
24  #BuildRequires: PEAR::PEAR >= 1.4.7  #BuildRequires: PEAR::PEAR >= 1.4.7
25  #Requires: PEAR::Date_Holidays >= 0.18.0  #Requires: PEAR::Date_Holidays >= 0.18.0
# Line 55  rm pearrc Line 54  rm pearrc
54  rm %{buildroot}/%{peardir}/.filemap  rm %{buildroot}/%{peardir}/.filemap
55  rm %{buildroot}/%{peardir}/.lock  rm %{buildroot}/%{peardir}/.lock
56  rm -rf %{buildroot}/%{peardir}/.registry  rm -rf %{buildroot}/%{peardir}/.registry
57  rm -rf %{buildroot}%{peardir}/.channels  rm -rf %{buildroot}/%{peardir}/.channels
58  if [[ -f %{buildroot}%{peardir}/.depdb ]] ;then  rm %{buildroot}/%{xmldir}/.filemap
59  rm %{buildroot}%{peardir}/.depdb  rm %{buildroot}/%{xmldir}/.lock
60    rm -rf %{buildroot}/%{xmldir}/.registry
61    rm -rf %{buildroot}/%{xmldir}/.channels
62    if [[ -f %{buildroot}%{xmldir}/.depdb ]] ;then
63    rm %{buildroot}%{xmldir}/.depdb
64  fi  fi
65  if [[ -f  %{buildroot}%{peardir}/.depdblock ]] ;then  if [[ -f  %{buildroot}{xmldir}/.depdblock ]] ;then
66  rm %{buildroot}%{peardir}/.depdblock  rm %{buildroot}%{xmldir}/.depdblock
67  fi  fi
68    
69    
# Line 68  fi Line 71  fi
71  # Install XML package description  # Install XML package description
72  mkdir -p %{buildroot}%{xmldir}  mkdir -p %{buildroot}%{xmldir}
73  tar -xzf %{SOURCE0} package.xml  tar -xzf %{SOURCE0} package.xml
74  mv  package.xml %{buildroot}%{xmldir}/Date_Holidays_Australia.xml  cp -p  package.xml %{buildroot}%{xmldir}/Date_Holidays_Australia.xml
   
 rm -f %{name}-%{version}-%{release}-filelist  
 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \  
   > %{name}-%{version}-%{release}-filelist  
75    
76  %clean  %clean
77  #rm -rf %{buildroot}  rm -rf %{buildroot}
78    
79  %post  %post
80  pear install --nodeps --soft --force --register-only %{xmldir}/Date_Holidays_Australia.xml >/dev/null || :  pear install --nodeps --soft --force --register-only %{xmldir}/Date_Holidays_Australia.xml >/dev/null || :
# Line 85  if [ "$1" -eq "0" ]; then Line 84  if [ "$1" -eq "0" ]; then
84      pear uninstall --nodeps --ignore-errors --register-only pear.php.net/Date_Holidays_Australia >/dev/null || :      pear uninstall --nodeps --ignore-errors --register-only pear.php.net/Date_Holidays_Australia >/dev/null || :
85  fi  fi
86    
87  %files -f %{name}-%{version}-%{release}-filelist  %files
88  %defattr(-,root,root)  %defattr(-,root,root)
89    
90  #%{peardir}/*  %{peardir}/*
91  #%{xmldir}/Date_Holidays_Australia.xml  %{xmldir}/Date_Holidays_Australia.xml
92    
93  %changelog  %changelog
94  * Thu Jun 16 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.2.2-2.sme  * Thu Jun 16 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.2.2-2.sme


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