--- rpms/php-pear-Date-Holidays-Australia/sme10/php-pear-Date_Holidays_Australia.spec 2016/06/16 06:14:55 1.1 +++ rpms/php-pear-Date-Holidays-Australia/sme10/php-pear-Date_Holidays_Australia.spec 2016/06/16 06:52:41 1.2 @@ -2,10 +2,14 @@ %define xmldir /var/lib/pear %global pear_name Date_Holidays_Australia +%define name php-pear-Date-Holidays-Australia +%define version 0.2.2 +%define release 2 + Summary: Driver based class to calculate holidays in Australia -Name: php-pear-Date-Holidays-Australia -Version: 0.2.2 -Release: 1%{?dist} +Name: %{name} +Version: %{version} +Release: %{release}%{?dist} License: PHP License Group: Development/Libraries Source0: http://pear.php.net/get/Date_Holidays_Australia-%{version}.tgz @@ -16,6 +20,7 @@ BuildRequires: php-pear(PEAR) >= 1.4.7 Requires: php-pear(Date_Holidays) >= 0.18.0 Requires: php-pear(PEAR) >= 1.4.0b1 Provides: php-pear(%{pear_name}) = %{version} +BuildRequires: e-smith-devtools >= 1.11.0-12 #BuildRequires: PEAR::PEAR >= 1.4.7 #Requires: PEAR::Date_Holidays >= 0.18.0 @@ -51,18 +56,26 @@ rm %{buildroot}/%{peardir}/.filemap rm %{buildroot}/%{peardir}/.lock rm -rf %{buildroot}/%{peardir}/.registry rm -rf %{buildroot}%{peardir}/.channels +if [[ -f %{buildroot}%{peardir}/.depdb ]] ;then rm %{buildroot}%{peardir}/.depdb +fi +if [[ -f %{buildroot}%{peardir}/.depdblock ]] ;then rm %{buildroot}%{peardir}/.depdblock +fi # Install XML package description mkdir -p %{buildroot}%{xmldir} tar -xzf %{SOURCE0} package.xml -cp -p package.xml %{buildroot}%{xmldir}/Date_Holidays_Australia.xml +mv 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 %clean -rm -rf %{buildroot} +#rm -rf %{buildroot} %post pear install --nodeps --soft --force --register-only %{xmldir}/Date_Holidays_Australia.xml >/dev/null || : @@ -72,13 +85,16 @@ if [ "$1" -eq "0" ]; then pear uninstall --nodeps --ignore-errors --register-only pear.php.net/Date_Holidays_Australia >/dev/null || : fi -%files +%files -f %{name}-%{version}-%{release}-filelist %defattr(-,root,root) -%{peardir}/* -%{xmldir}/Date_Holidays_Australia.xml +#%{peardir}/* +#%{xmldir}/Date_Holidays_Australia.xml %changelog +* Thu Jun 16 2016 Jean-Philipe Pialasse 0.2.2-2.sme +- importing to buildsys pear packages for Horde [SME: 9600] + * Mon Oct 7 2013 John H. Bennett III - 0.2.2-1 - Update to 0.2.2.