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 |
51 |
|
|
52 |
# Clean up unnecessary files |
# Clean up unnecessary files |
53 |
rm pearrc |
rm pearrc |
54 |
rm %{buildroot}/%{peardir}/.filemap |
rm -rf %{buildroot}/%{peardir}/.filemap |
55 |
rm %{buildroot}/%{peardir}/.lock |
rm -rf %{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 -rf %{buildroot}/%{xmldir}/.filemap |
59 |
rm %{buildroot}%{peardir}/.depdb |
rm -rf %{buildroot}/%{xmldir}/.lock |
60 |
|
rm -rf %{buildroot}/%{xmldir}/.registry |
61 |
|
rm -rf %{buildroot}/%{xmldir}/.channels |
62 |
|
if [[ -f %{buildroot}%{xmldir}/.depdb ]] ;then |
63 |
|
rm -rf %{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 -rf %{buildroot}%{xmldir}/.depdblock |
67 |
fi |
fi |
68 |
|
|
69 |
|
|
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 || : |
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 |