/[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.1 by unnilennium, Thu Jun 16 06:14:55 2016 UTC Revision 1.2 by unnilennium, Thu Jun 16 06:52:41 2016 UTC
# Line 2  Line 2 
2  %define xmldir  /var/lib/pear  %define xmldir  /var/lib/pear
3  %global pear_name Date_Holidays_Australia  %global pear_name Date_Holidays_Australia
4    
5    %define name php-pear-Date-Holidays-Australia
6    %define version 0.2.2
7    %define release 2
8    
9  Summary: Driver based class to calculate holidays in Australia  Summary: Driver based class to calculate holidays in Australia
10  Name: php-pear-Date-Holidays-Australia  Name: %{name}
11  Version: 0.2.2  Version: %{version}
12  Release: 1%{?dist}  Release: %{release}%{?dist}
13  License: PHP License  License: PHP License
14  Group: Development/Libraries  Group: Development/Libraries
15  Source0: http://pear.php.net/get/Date_Holidays_Australia-%{version}.tgz  Source0: http://pear.php.net/get/Date_Holidays_Australia-%{version}.tgz
# Line 16  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}
23    BuildRequires: e-smith-devtools >= 1.11.0-12
24    
25  #BuildRequires: PEAR::PEAR >= 1.4.7  #BuildRequires: PEAR::PEAR >= 1.4.7
26  #Requires: PEAR::Date_Holidays >= 0.18.0  #Requires: PEAR::Date_Holidays >= 0.18.0
# Line 51  rm %{buildroot}/%{peardir}/.filemap Line 56  rm %{buildroot}/%{peardir}/.filemap
56  rm %{buildroot}/%{peardir}/.lock  rm %{buildroot}/%{peardir}/.lock
57  rm -rf %{buildroot}/%{peardir}/.registry  rm -rf %{buildroot}/%{peardir}/.registry
58  rm -rf %{buildroot}%{peardir}/.channels  rm -rf %{buildroot}%{peardir}/.channels
59    if [[ -f %{buildroot}%{peardir}/.depdb ]] ;then
60  rm %{buildroot}%{peardir}/.depdb  rm %{buildroot}%{peardir}/.depdb
61    fi
62    if [[ -f  %{buildroot}%{peardir}/.depdblock ]] ;then
63  rm %{buildroot}%{peardir}/.depdblock  rm %{buildroot}%{peardir}/.depdblock
64    fi
65    
66    
67    
68  # Install XML package description  # Install XML package description
69  mkdir -p %{buildroot}%{xmldir}  mkdir -p %{buildroot}%{xmldir}
70  tar -xzf %{SOURCE0} package.xml  tar -xzf %{SOURCE0} package.xml
71  cp -p package.xml %{buildroot}%{xmldir}/Date_Holidays_Australia.xml  mv  package.xml %{buildroot}%{xmldir}/Date_Holidays_Australia.xml
72    
73    rm -f %{name}-%{version}-%{release}-filelist
74    /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
75      > %{name}-%{version}-%{release}-filelist
76    
77  %clean  %clean
78  rm -rf %{buildroot}  #rm -rf %{buildroot}
79    
80  %post  %post
81  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 72  if [ "$1" -eq "0" ]; then Line 85  if [ "$1" -eq "0" ]; then
85      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 || :
86  fi  fi
87    
88  %files  %files -f %{name}-%{version}-%{release}-filelist
89  %defattr(-,root,root)  %defattr(-,root,root)
90    
91  %{peardir}/*  #%{peardir}/*
92  %{xmldir}/Date_Holidays_Australia.xml  #%{xmldir}/Date_Holidays_Australia.xml
93    
94  %changelog  %changelog
95    * Thu Jun 16 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.2.2-2.sme
96    - importing to buildsys pear packages for Horde [SME: 9600]
97    
98  * Mon Oct 7 2013 John H. Bennett III <bennettj@johnbennettservices.com> - 0.2.2-1  * Mon Oct 7 2013 John H. Bennett III <bennettj@johnbennettservices.com> - 0.2.2-1
99  - Update to 0.2.2.  - Update to 0.2.2.
100    


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