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,

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

Kind regards,
Till
--
devel mailing list
devel@lists.fedoraproject.org
https://lists.fedoraproject.org/admin/lists/devel@lists.fedoraproject.org

Reply via email to