On 21.3.2016 20:13, Zbigniew Jędrzejewski-Szmek wrote:
On Mon, Mar 21, 2016 at 06:46:00PM -0000, Tomas Orsava wrote:
> Since the spec file does package both p2 and p3 versions of the executable
There's a difference between *modules* (in the Python sense,
i.e. Python libraries) and *executables*. We almost always want
to provide modules for both Python versions, but executables
only rarely so.
The example spec file does *not* package both versions of the
executable.
Yes, it does.
%files -n python2-%{srcname}
%license COPYING
%doc README.rst
%{python2_sitelib}/*
%{_bindir}/sample-exec-2.7 <---- HERE
%files -n python3-%{srcname}
%license COPYING
%doc README.rst
%{python3_sitelib}/*
%{_bindir}/sample-exec <---- HERE
%{_bindir}/sample-exec-3.4 <---- HERE
https://fedoraproject.org/wiki/Packaging:Python#Example_common_spec_file
--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok