For a more concrete example: https://bugzilla.redhat.com/show_bug.cgi?id=567348 I want to set the python(abi) requirement of the subpackage at buildtime. So, I want to set it like this: Requires: python(abi) = %{py3_ver}
But when build it, it will fail with the following output: $ rpmbuild -bp dreampie.spec Building target platforms: i686 Building for target i686 sh: python3: command not found sh: python3: command not found sh: python3: command not found error: line 46: Version required: Requires: python(abi) = Even though python3-devel has been added as BR. On Wed, Sep 15, 2010 at 7:06 PM, Ignacio Vazquez-Abrams < ivazquez...@gmail.com> wrote: > On Wed, 2010-09-15 at 18:22 +0800, Robin Lee wrote: > > python3 rpm macros not available without python3-devel installed. > > 'rpmbuild --viewrc' will show you. > > > > So if you use the python3 macros to define another macro and you have > > no python3-devel installed, you must fail. > > > > So, how to define, for example, a %py3_ver macro for the major version > > of Python3? Must yum be used? > > > > Robin > > Adding a "BuildRequires: python3-devel" should be enough to pull them > in. > > -- > Ignacio Vazquez-Abrams <ivazquez...@gmail.com> > > _______________________________________________ > python-devel mailing list > python-devel@lists.fedoraproject.org > https://admin.fedoraproject.org/mailman/listinfo/python-devel >
_______________________________________________ python-devel mailing list python-devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/python-devel