Jeff Johnson escreveu:
>
> On Dec 15, 2013, at 9:51 PM, [email protected] wrote:
>
>>  Apparently this is a rpm4 feature. But I would like to
>> have it working in cooker, that is, to generate some
>> provides/requires automatically. For example:
>>
>> $ cat /usr/lib/rpm/fileattrs/maven.attr
>> %__maven_provides       %{_rpmconfigdir}/maven.prov
>> %__maven_requires       %{_rpmconfigdir}/maven.req
>> %__maven_path   ^%{_mavendepmapfragdir}/.*
>>
>> $ cat /usr/lib/rpm/maven.prov
>> #!/usr/bin/python
>> .....
>>               print "mvn({gid}:{aid}) = {version}".format(gid=groupId,
>> .....
>>
>
> Easy enough to do the equivalent. In lib/rpmfc.c there is
> an if statement in C based on the path value of %{__maven_path} to
> trigger setting a bit that runs %__maven_provides/%__requires as needed.
>
> Note that path (instead of file(1)/magic(3) content) based classification is
> highly
> non-portable: rpm5 actually runs on non-linux.

  Can we get this feature in cooker (make it use maven.prov and
maven.req)? I can run a modified rpm in the meantime, as I do
not want to start pushing packages too early.

  Looking at the rpm code, it appears to not be trivial to
someone that does not understand much of rpm internals what
should be done...
  Maybe I misunderstood, but there is no "maven_path" string
anywhere in the rpm sources.

> todo++
>
> 73 de Jeff

Paulo


Reply via email to