20:10 < BoChao-Work> ctyler: basically, I need to figure out, how to place these displaced files in the proper directory. I was on google looking for a rpm macro for /usr/local but was unable to find it. Does that mean I need to use %{_prefix}/local ? here is a list of files I need to work on :http://hongkong.proximity.on.ca/bchao/link%20to%20files.txt 20:12 <@ctyler> BoChao-Work: you can use options to "make install" to install those files where you want. 20:12 <@ctyler> adaniel3: oh, I haven't looked recently 20:13 < BoChao-Work> ctyler: in the %install section correct? 20:14 <@ctyler> BoChao-Work: show me a spec file and I can probably comment more intelligently :-) 20:14 <@ctyler> adaniel3: have some time to work on this now? 20:15 < BoChao-Work> ctyler: any spec file or the one i'm working on? 20:15 < BoChao-Work> http://hongkong.proximity.on.ca/bchao/gcc.txt <--mine 20:15 <@ctyler> k 20:21 <@ctyler> BoChao-Work: you want to set "--prefix=..." at the configure step 20:22 < BoChao-Work> ctyler: so like this --prefix=/usr/local/ ? 20:23 <@ctyler> BoChao-Work: well, --prefix=/usr if you want stuff in /usr/bin instead of /usr/local/bin, for example, and /usr/lib instead of /usr/local/lib 20:24 <@ctyler> adaniel3: edit that section, we'll take a look, and then hit the next part 20:24 < adaniel3> ctyler: ok 20:24 <@ctyler> BoChao-Work: or --prefix=/ if you want stuff in /bin and /lib 20:24 <@ctyler> (/usr/bin would be the more normal place for this kind of package) 20:25 <@ctyler> BoChao-Work: you'll see the Fedora spec using --prefix=%{_prefix} for example 20:26 < BoChao-Work> ctyler: ok, but in teh %files section I would still need to delcare the directories and files no? 20:27 <@ctyler> yes 20:28 <@ctyler> BoChao-Work: if you fix up the prefix, the %{_bindir}/* and %{_datadir}/%{name} and so forth will work properly 20:28 <@ctyler> in the %files section 20:29 < BoChao-Work> ctyler: I was looking at my dehydra spec file. Would I need to do the same thing I did in teh %install section http://fpaste.org/GsGc/ 20:30 <@ctyler> no 20:30 < BoChao-Work> ok 20:30 <@ctyler> use 'make install' with DESTDIR 20:30 <@ctyler> and use --prefix on the configure 20:31 <@ctyler> the --prefix will configure stuff to end up in /usr/bin instead of /usr/local/bin (or wherever), 20:31 <@ctyler> and the DESTDIR will ensure that stuff gets installed into ${buildroot}/usr/bin instead of the *real* /usr/bin during packaging 20:31 < BoChao-Work> so like this http://fpaste.org/CRYN/ 20:32 <@ctyler> yes, if %{_prefix} is properly defined 20:32 <@ctyler> sec 20:32 < BoChao-Work> minus the %files section 20:32 <@ctyler> $ rpm --eval "%{_prefix}" 20:32 <@ctyler> /usr 20:32 <@ctyler> ^ so that looks right, should work 20:32 < BoChao-Work> yeah 20:33 <@ctyler> so in %files you'll want ... probably %{_bindir}/* and so forth 20:33 < BoChao-Work> learned a new rpm option today :) 20:33 <@ctyler> yeah? 20:33 <@ctyler> which one? 20:33 < BoChao-Work> --eval "%{_prefix}" 20:33 <@ctyler> yeah, that's cool for debugging 20:34 <@ctyler> rpm --eval "%{buildroot}" 20:34 < BoChao-Work> so that works for all macros? 20:34 <@ctyler> well, all macros defined before it starts evaluating the specfile, yes 20:34 < BoChao-Work> neat 20:35 <@ctyler> so stuff that's defined in the RPM rc's, or in .rpmmacros 20:35 <@ctyler> ~/.rpmmacros rather