From: Romain B. <to...@ra...> - 2012-10-22 16:11:57
|
2012/10/21 Martin Konečný <mar...@so...>: > Hey, Hi Martin! > As a side project I've been trying to port Airtime to CentOS. This involves > creating RPM's for Liquidsoap, and its dependencies such as ocaml-pcre which > isn't available anywhere for CentOS 6.3 :(. > > I don't know if you've ever created an RPM before, but you are supposed to > do change the path where "make install" puts its files so that you don't > alter your system. > > Thankfully you guys allow this in your configure script, so I did > > ./configure --disable-camomile --prefix=%{buildroot}/usr/local > make > make install In the debian package, we do the following: ./configure --prefix=/usr (....) (...) make install DESTDIR=(...) OCAMLFIND_DESTDIR=(...) prefix=(...) This is, I think, b/c prefix matters at runtime so we want to pass the final value to configure, and override it only at install time. OCAMLFIND_DESTDIR is useful only if you compile liquidsoap in bytecode with no custom modules (probably unlikely). Also, quickly glancing through the code, it seems that DESTDIR is not needed. Hope this helps, Romain |