-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Satish Balay wrote: | On Wed, 5 Jan 2005, Mostafa Z. Afgani wrote: | | |>-----BEGIN PGP SIGNED MESSAGE----- |>Hash: SHA1 |> |>Satish Balay wrote: |>| On Wed, 5 Jan 2005, Mostafa Z. Afgani wrote: |>| |>| |>|>Just curious, if he is using the --rebuild option, where's he going to |>|>get the *.spec file? |>| |>| |>| If you modify the specfile - use: |>| |>| rpmbuild -ba foo.spec |>| |>| Satish |>| |>Yes, I know that. But when you use 'rpmbuild --rebuild *.src.rpm' you |>don't really have access to the *.spec file since it's contained in the |>*src.rpm. If you want to edit the *.spec file, wouldn't you have to: |> |>1. install the *.src.rpm |>2. edit the *.spec |>3. use rpmbuild -ba * |> |>Is there a simpler way? without having to install the sources and still |>letting rpmbuild automate the whole process through the --rebuild option? | | | | rpmbuild --rebuild foo.src.rpm | | is equivalent to: | | rpm -ih foo.src.rpm | rpmbuild -bb foo.spec | | Not sure what you want to simplify. | | Satish | I do realize that they are equivalent .. but imagine the scenerio where I am not interested in actually extracting the sources and editing the *.spec file .. the scenerio where I would just issue 'rpmbuild --rebuild *.src.rpm' and and voila a binary package appears.
Anyway .. I was just trying to point out that the OP wanted to issue something like
$ rpmbuild --rebuild --target i386 kernel.src.rpm
and be done with it. Then someone else pointed out editing the *.spec file. My point was - there is no way to use the --rebuild option if you have to go around editing *.spec files.
What I (and the OP I suppose) was hoping for was a way to override such flags (buildsmp) along with the rpmbuild --rebuild options (without editing the *.spec file). I glanced through the man page of rpmbuild but there doesn't seem to be any way of doing this. So, I guess I should drop the topic.
Best, - -M -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux)
iD8DBQFB3CXI14B2Pwzes+4RAg3iAJwO7TCAlel8Vk0rt8aBhkassbousQCgiE+Y NyNWgK5+6tTSWqEQNUxZAtI= =7VKa -----END PGP SIGNATURE-----