rpmbuild - RPM spec file questions -


i have question rpm spec file.

  1. what point of view of execution of spec file? spec file meant controls happens when rpmbuild executed on source machine, or happens when rpm installed on target machine?
  2. if idea take folders , files in tar.gz, put them in rpm , them @ at rpm install point have folders , files deployed. do in %build , %install sections?
  3. how reference files want deployed on target machine in %files section? reference them on source machine or on target machine.

i'm sorry of these questions seem vague or amateurish have issues concept , various site referenced use make install

  1. both (if understand question correctly). in %prep, %build %install control running on build server. in %pre,post,preun,postun control running on target server during rpm un/install.
  2. if don't build anything, %build can empty. want pack tar files in rpm , untar them in target server? not approach. better pack files in tar , let rpm handle changes, etc.
  3. as on target machine.

Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -