Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I was wondering if there is any way to pass arguments via rpmbuild to the subsequent ./configure script execution, like --help to see the configure options available, or to have one thing or two optimized. Is it possible to do that? if so whith which flag(s). Currently I am working on a project which would make sense to release as .rpm, src.rpm, and tgz. Problem is that I'm making the src.rpm right off the tgz, which has a bunch of options passed to the configure script, I'd like to have that same functionality (not building useless stuff, and the viceversa) to the src.rpm, but I seem unable to do that, I've built one to try, but I simply cannot find the arguments to pass to the configure script, and even more the behavior tends to be erratic, sometimes the built rpm has everything configured into the binaries, and other times it simply builds the most basic stack of them! So I would like to be able to pass the arguments to the src.rpm just like you would with the configure. I am writing this program for a little company who happens to use only RedHat and want to be able to "custom" build the package as needed, as well as pure binary packages, hence the three flavors, in tgz I develop, and plan to ship in src.rpm and rpm...
... Maybe I just said pure useless things, but I am getting quite frustrated, and the how to's and web references in rpm don't seem to answer this question. Any info, as usual will be must appreciated
Uh. Forgot to explain my examples are used in actual spec files. Should put configure options there.
I haven't tested in what way rpm cleans the subshell environment, so exporting BUILDFLAGS="--prefix=${RPM_BUILD_ROOT}/usr --keep-pieces-when-broken=yes " and in the specfile having
" ./configure %{BUILDFLAGS}" *could* work, else you may have to wedge in a %define.
Thanks again, unSpawn. My goal is to give the src.rpm as many options as the configure script found in regular sources, so that the final rpm gets compiled tailored the same way as the configure with the convenience of the rpm file format for installation-package administration.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.