+# pear/docs -> docs
+install -d docs/%{pearname}
+mv ./%{php_pear_dir}/%{_class}/doc/* docs/%{pearname}
+
+# pear/docs -> docs
+install -d docs/%{pearname}
+mv ./%{php_pear_dir}/docs/%{pearname}/* docs/%{pearname}
+
+# pear/data/docs -> docs
+install -d docs/%{pearname}
+mv ./%{php_pear_dir}/data/%{pearname}/docs/* docs/%{pearname}
+
+# examples fixups
+mv ./%{php_pear_dir}/examples .
+mv ./%{php_pear_dir}/%{_class}/examples .
+mv docs/%{pearname}/examples .
+mv docs/%{pearname}/docs/examples .
+
+%build
+packagexml2cl package.xml > ChangeLog