]> git.pld-linux.org Git - packages/flake8.git/blobdiff - flake8.spec
use symlink
[packages/flake8.git] / flake8.spec
index ba8d9aa3c68c5bd3f1ca08368a4ddd47228ff1f6..9b572630f00f75a0f72bc471795acdd5743c9904 100644 (file)
@@ -114,15 +114,17 @@ rm -rf $RPM_BUILD_ROOT
 
 %if %{with python2}
 %py_install
-cp -p $RPM_BUILD_ROOT%{_bindir}/flake8{,-2}
+mv $RPM_BUILD_ROOT%{_bindir}/flake8{,-2}
 %py_postclean
 %endif
 
 %if %{with python3}
 %py3_install
-cp -p $RPM_BUILD_ROOT%{_bindir}/flake8{,-3}
+mv $RPM_BUILD_ROOT%{_bindir}/flake8{,-3}
 %endif
 
+ln -s flake-%{!?with_python3:2}%{?with_python3:3} $RPM_BUILD_ROOT%{_bindir}/flake8
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
This page took 0.09928 seconds and 4 git commands to generate.