File file.pl of Package python-m64py

s~.*%{_datadir}.*~~g;

s/.*CHOOSE:.*//g;
if ($. == 1) {
  $_ = "${_}\nBuildRequires: qt6-tools-linguist qt6-tools python3-PyQt6-devel qt6-base-common-devel\n";
}

s~(^Source:.*)~\1\nSource15: file\.specpart~;


s~(%install)~\1\ninstall -Dm644 %{SOURCE15} %{specpartsdir}/main\.specpart~g;

s~%build.*~%build\nexport PATH=\$PATH:%{_libexecdir}/qt6\n~g;


s~(.*%pyproject_install.*)~\n$1\n mv %{buildroot}%{_datadir} \$PWD/vcs; rmdir %{buildroot}/%{_datadir} ||: ; export VCS=\$PWD/vcs ; \n~g;
s~(.*%python_expand.*)~\n$1\n  mv \$VCS/* %{buildroot}%{_datadir}/ \n~g;
openSUSE Build Service is sponsored by