>>>>> On Fri, 9 Dec 2005 15:38:55 +0200, "Timo Neuvonen" <[EMAIL PROTECTED]> 
>>>>> said:

  Timo> With no prior experience of building rpms (not counting the checkinstall
  Timo> tool), I just made my first try... or actually the first ten and 
something
  Timo> tries ;-)
  Timo> Yes, building rpms might belong to somewhere else in newsgroups 
hierarchy,
  Timo> but maybe there is something Bacula-spesific anyway...

  Timo> Started with this:
  Timo> http://www.bacula.org/dev-manual/Bacula_ensu_RPM_Packaging.html

  Timo> So, I downloaded the 1.38.2 sorce rpm, into an empty directory
  Timo> /home/timo/bacula, on FC4. After some trial and error, I have installed 
a
  Timo> number of missing devel rpms etc, so now I can make a bunch of binary 
rpms
  Timo> with the following:

  Timo> rpmbuild --rebuild --define "build_fc4 1" \
  Timo> --define "build_mysql 1" bacula-1.38.2-1.src.rpm

  Timo> The abovementioned RPM packaging faq has several references to the spec
  Timo> file, like
  Timo> rpmbuild -ba --define "build_rh7 1" bacula.spec
  Timo> or simply editing something inside the spec file.

  Timo> ** so, my current problem: **
  Timo> Where is the spec file, how to extract it for editing, etc? Now, the 
spec
  Timo> obviously contains some stuff I'd like to change: the compile process 
keeps
  Timo> claiming there is no user or group called 'kern' (Sorry about this, 
Kern...
  Timo> maybe you really would deserve an account on every machine running
  Timo> Bacula...), the package is told to be built by Scott etc...

  Timo> This process seems to unpack the source to
  Timo> /usr/src/redhat/SOURCES for as long as the build process is running. But
  Timo> obviously the spec isn't that deep there...?

You can use rpm --installl with the src rpm to unpack it into the build
location (probably under /usr/src/redhat/SPECS).  You can then pass the path
of the spec file to rpm -ba.

__Martin


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to