building libdvdread rpm on SuSE 7.3
I tried to build RPM of libdvdread (a component of ogle DVD player) according to libdvdread-0.9.2-1.spec from http://www.dtek.chalmers.se. Build process failed miserably at make stage. I tried to compile just from tarball (configure; make) and it was successful. That meant that the tarball was good, something wrong was with configure stage. At a closer view it appeared that spec file was using %configure macro. This macro checks for configure.in file and if it is present runs libtoolize which in its turn installs new config.sub, ltmain.sh and libtool. These new files conflicted with aclocal.m4 and configure files supplied in the tarball. Using google (what a nice tool to search for any information) I found a hack which proposed to rename configure.in file to something different to prevent libtoolize from running, then rename it back and run configure. I didn't like this solution. Another option was to run configure script instead of %configure macro, but then I need to supply all defaults for the system I am building at, and that didn't seem good either. The solution was to run autoconf and aclocal between %build and %configure. Thus, configuration files were recreated using autoconf installed on my 7.3 system. I added two lines to libdvdread-0.9.2-1.spec file: %build autoconf aclocal %configure make Then build rpm was succesful. (rpm -ba /usr/src/packages/SPECS/libdvdread-0.9.2-1.spec ) -Kastus
participants (1)
-
Konstantin (Kastus) Shchuka