--- rpms/php-pear-Date-Holidays-Germany/sme10/php-pear-Date_Holidays_Germany.spec 2016/06/16 12:32:11 1.1 +++ rpms/php-pear-Date-Holidays-Germany/sme10/php-pear-Date_Holidays_Germany.spec 2016/06/16 13:26:34 1.2 @@ -1,11 +1,14 @@ %define peardir %(pear config-get php_dir 2> /dev/null || echo %{_datadir}/pear) %define xmldir /var/lib/pear %global pear_name Date_Holidays_Germany - +%define name php-pear-Date-Holidays-Germany +%define version 0.1.2 +%define release 1 + +Name: %{name} +Version: %{version} +Release: %{release}%{?dist} Summary: Driver based class to calculate holidays in Germany -Name: php-pear-Date-Holidays-Germany -Version: 0.1.2 -Release: 1%{?dist} License: PHP License Group: Development/Libraries Source0: http://pear.php.net/get/Date_Holidays_Germany-%{version}.tgz @@ -51,8 +54,16 @@ rm %{buildroot}/%{peardir}/.filemap rm %{buildroot}/%{peardir}/.lock rm -rf %{buildroot}/%{peardir}/.registry rm -rf %{buildroot}%{peardir}/.channels -rm %{buildroot}%{peardir}/.depdb -rm %{buildroot}%{peardir}/.depdblock +rm %{buildroot}/%{xmldir}/.filemap +rm %{buildroot}/%{xmldir}/.lock +rm -rf %{buildroot}/%{xmldir}/.registry +rm -rf %{buildroot}/%{xmldir}/.channels +if [[ -f %{buildroot}%{xmldir}/.depdb ]] ;then +rm %{buildroot}%{xmldir}/.depdb +fi +if [[ -f %{buildroot}{xmldir}/.depdblock ]] ;then +rm %{buildroot}%{xmldir}/.depdblock +fi