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

Re: rpm spec help



Circa 2003-03-13 01:24:17 -0500 dixit Frank Mancuso:

: This is my spec file it all goes fine but for some reason I try to
: install x on another computer using my own little linux distro and it
: doesn't work. I was wondering if my spec file has a error or missing a
: macro line. to build the rpm I used rpmbuild -ba xfree86.spec

  [...]

: BuildRoot: /root/umbrella/BUILD

  [...]

: %build
: WORLDOPTS="" make World 2>&1 | tee xfree-compile.log 
: 
: %install
: make install
: make install.man
: ln -sf /usr/X11R6/bin /usr/bin/X11
: ln -sf /usr/X11R6/lib/X11 /usr/lib/X11
: ln -sf /usr/X11R6/include/X11 /usr/include/X11

Yuck.  Don't do this.  This should be something like:

  make DESTDIR="${RPM_BUILD_ROOT}" install
  make DESTDIR="${RPM_BUILD_ROOT}" install.man
  ln -sf ../X11R6/bin "${RPM_BUILD_ROOT}/usr/bin/X11"
  ln -sf ../X11R6/lib/X11 "${RPM_BUILD_ROOT}/usr/lib/X11"
  ln -sf ../X11R6/include/X11 "${RPM_BUILD_ROOT}/usr/include/X11"

Your way, all the files are directly installed on the machine you build
the package on, which is not what you want.

: %files
: %defattr(-,root,root)
: %doc INSTALL-X.org

You fail to list the files which should be included in the package.

-- 
jim knoble  |  jmknoble@pobox.com  |  http://www.pobox.com/~jmknoble/
(GnuPG fingerprint: 31C4:8AAC:F24E:A70C:4000::BBF4:289F:EAA8:1381:1491)
Stop the War on Freedom ... Start the War on Poverty!

Attachment: pgp00014.pgp
Description: PGP signature


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