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 |
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 |
rm %{buildroot}%{peardir}/.depdb |
rm %{buildroot}/%{xmldir}/.filemap |
59 |
rm %{buildroot}%{peardir}/.depdblock |
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 |
65 |
|
if [[ -f %{buildroot}{xmldir}/.depdblock ]] ;then |
66 |
|
rm %{buildroot}%{xmldir}/.depdblock |
67 |
|
fi |
68 |
|
|
69 |
|
|
70 |
|
|
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 |
cp -p package.xml %{buildroot}%{xmldir}/Date_Holidays_Australia.xml |
cp -p package.xml %{buildroot}%{xmldir}/Date_Holidays_Australia.xml |
75 |
|
|
76 |
%clean |
%clean |
77 |
rm -rf %{buildroot} |
rm -rf %{buildroot} |
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 |
%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 |
95 |
|
- importing to buildsys pear packages for Horde [SME: 9600] |
96 |
|
|
97 |
* 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 |
98 |
- Update to 0.2.2. |
- Update to 0.2.2. |
99 |
|
|