File file.reg of Package python-vcstool
s/catkin_pkg/catkin-pkg/g;
s~http://download.ros.org/downloads/vcstool/~vcstool-%{version}.tar.gz~g;
s/.*pytest.*//g;
s~%{_datadir}/vcstool-completion.*~~g;
#s~(%files.*)~$1\n%{_datadir}/vcstool-completion~g;
s~CHOOSE:.*~~g;
s~(.*%python_subpackages.*)~Requires: vcstool-common\nSource15: file\.specpart\n\1~g;
s~(%install)~\1\ninstall -Dm644 %{SOURCE15} %{specpartsdir}/main\.specpart~g;
#s~(%pyproject_install)~\1\nrm -R %{buildroot}%{_datadir}/vcstool-completion~g;
s~(.*%pyproject_install.*)~\n$1\n mv %{buildroot}%{_datadir}/vcstool-completion \$PWD/vcs; rmdir %{buildroot}/%{_datadir} ||: ; export VCS=\$PWD/vcs ; \n~g;
s~(.*%python_expand.*)~\n$1\n mkdir -p %{buildroot}%{_datadir} ; mv \$VCS %{buildroot}%{_datadir}/vcstool-completion \n~g;