At Mon, 29 Jun 2015 21:36:15 +0200 Dimitri van Heesch <doxy...@gmail.com> wrote:

> 
> 
> > On 29 Jun 2015, at 21:29 , Dimitri van Heesch <doxy...@gmail.com> wrote:
> > 
> > Hi Jean,
> > 
> >> On 29 Jun 2015, at 10:05 , Jean Audibert <jaudib...@euronext.com> wrote:
> >> 
> >> Hi!
> >> 
> >> Until the release 1.8.9.1, I was able to build Doxygen (binaires ands 
> >> RPMs) with this command:
> >> $ rpmbuild -ta doxygen-<VERSION>.src.tar.gz
> >> 
> >> With the last release, this command fails: "error: Failed to read spec 
> >> file from doxygen-1.8.10.src.tar.gz"
> >> 
> >> I think it's related to the CMake build. So now, what is the best way to 
> >> achieve build of RPMs?
> > 
> > Unfortunately, the spec file has not been updated to the new build system 
> > yet :-(
> > Since this was a third party contribution in the past, I'm open for 
> > suggestions on how to correct it.
> 
> This looks like a promising starting point:
> https://schneide.wordpress.com/2013/02/11/build-a-rpm-package-using-cmake/

The *big downside* to using CPack to make the *binary* RPMs is that the RPM(s)
can only be made with CPack -- you don't get a .src.rpm, so it is not possible
to later rebuild the RPM using rpmbuild (say if you want to rebuild the Fedora
RPM for EL6, because of differences in the Glibc version or something, or want
to build it for a different machine type, etc.). With the CPack RPM, all you
get is a binary RPM and anyone downsteam *has* to know how to build the
package using CMake's tools (which is non-obvious to someone not familure with
CMake or CPack). It also breaks things for distro repackagers, who take source
RPMs from one distro and rebuild them for another, including creating derived
distros. For *most* packages one just gets the source RPMs and does a rpmbuild
--rebuild on them -- this process can be automated easily. Using CPack breaks
this, requiring manual hand hackery.

When I created RPMs (and also debs) for xtrkcad, I created my own spec file 
and used rpmbuild to create source and binary RPMs and skipped using CPack.

(BTW: CPack is a bit broken in that it fails to build proper source archives 
under some situations.)

> 
> Regards,
>   Dimitri
> ------------------------------------------------------------------------------
> Don't Limit Your Business. Reach for the Cloud.
> GigeNET's Cloud Solutions provide you with the tools and support that
> you need to offload your IT needs and focus on growing your business.
> Configured For All Businesses. Start Your Cloud Today.
> https://www.gigenetcloud.com/
> _______________________________________________
> Doxygen-users mailing list
> Doxygen-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/doxygen-users
> 
>                                                                               
>   

-- 
Robert Heller             -- 978-544-6933
Deepwoods Software        -- Custom Software Services
http://www.deepsoft.com/  -- Linux Administration Services
hel...@deepsoft.com       -- Webhosting Services
                                                                       

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Doxygen-users mailing list
Doxygen-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/doxygen-users

Reply via email to