Re: rpmbuild for cmake project error :: Found 'build_dir' in installed files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09/06/2016 02:43 PM, Till Hofmann wrote:
> On 09/06/2016 01:35 PM, Adrian Sevcenco wrote:
>> Hi! I have a head scratching problem with a project (clhep) that i try to package.
>> It is cmake based and the spec file can be seen here:
>> https://github.com/adriansev/SPECS/blob/master/clhep.spec
>>
>> the error that i get is :
>> Found '/home/adrian/rpmbuild/BUILDROOT/clhep-2.3.3.2-1.x86_64' in installed files; aborting
>> error: Bad exit status from /var/tmp/rpm-tmp.tOmNW2 (%install)
>>
>> i imagine that it is a problem of setting the buildroot but  have no idea
>> how this translate to cmake settings ..
>>
>> What is the proper way for packaging cmake projects? (and setting prefix)
>>
> 
> Hi Adrian,
Hi!

> you can use the %cmake macro which conveniently sets most (if not all)
> options you need. You can check its content with 'rpm --eval "%cmake"'.
> 
> There is also a Wiki page about packaging with cmake, although it's not
> very elaborate: https://fedoraproject.org/wiki/Packaging:Cmake
Thanks a lot! It worked!!

Adrian

<<attachment: smime.p7s>>

--
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://lists.fedoraproject.org/admin/lists/devel@xxxxxxxxxxxxxxxxxxxxxxx

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux