19.03.2017 07:15, Simon Lees пишет:
On 03/18/2017 10:59 PM, Robert Schweikert wrote:
On 02/17/2017 12:31 PM, jan matejek wrote:
Dear packagers,
this is an overview of how singlespec works and how to use it for your package. First, some key concepts:
* It will allow you to build Python 2 and Python 3 (and PyPy 3 in the future) package from a single spec file, with very little manual effort. This means that if you're maintaining a separate python3-something in d:l:py3, you can now switch over to the common python-something in d:l:py.
<snip>
I just realized that we broke quilt with the new macros :(
error: line 30: Dependency tokens must begin with alpha-numeric, '_' or '/': BuildRequires: %{python_module setuptools} The %prep section of python-azure-mgmt-authorization.spec failed; results may be incomplete
I guess quilt needs to be taught new tricks?
Not really, you just need to have this macro defined. Either you install package providing this macro or do echo "%python_module setuptools this macro definition" >> ~/.rpmmacros
Of course the work around is to create diffs for needed patches the "old fashioned" way, but quilt is convenient and I think we should not take that away from packagers.
Thoughts?
Robert
I guess it won't be hard to teach quilt, but it will certainly need to be done, its used regularly by most serious packages, i'm guessing no one noticed this until now.
It is not quilt that fails, it is RPM. quilt simply does "rpmbuild -bp foo.spec"; it's RPM which handles macro expansion. I did hit it in the past and I did define macros for packages I required locally. I do not see how it can be fixed else.