diff --git a/php7-pear.spec b/php7-pear.spec index c24fe87..585627f 100644 --- a/php7-pear.spec +++ b/php7-pear.spec @@ -97,7 +97,7 @@ rm -rf %{buildroot}/{.depdb,.depdblock} %pre if [ -d %{peardir}/.registry -a ! -d %{metadir}/.registry ]; then mkdir -p %{metadir} - cp -af %{peardir}/.??* %{metadir} + cp -af %{peardir}/{.channels,.registry} %{metadir} fi %posttrans @@ -105,7 +105,7 @@ mdir=$(%{_bindir}/pear config-get metadata_dir system) if [ "${mdir}" != "%{metadir}" -a -d %{metadir}/.registry ]; then %{_bindir}/pear config-set metadata_dir %{metadir} system %{_bindir}/pear config-set metadata_dir %{metadir} - rm -rf %{peardir}/.??* + rm -rf %{peardir}/{.channels,.registry} fi %files @@ -118,15 +118,9 @@ fi %dir %{_localstatedir}/cache/pear %exclude %{_bindir}/peardev %exclude %{metadir}/{.depdblock,.lock} -%exclude %{metadir}/.channels/.alias/pecl.txt -%exclude %{metadir}/.channels/pecl.php.net.reg -%exclude %{metadir}/.registry/.channel.pecl.php.net %exclude %{peardir}/test %files -n php7-pecl %{_bindir}/pecl -%{metadir}/.channels/.alias/pecl.txt -%{metadir}/.channels/pecl.php.net.reg -%{metadir}/.registry/.channel.pecl.php.net %changelog