Re: Can i build/output .rpm package to directory other than /usr/src/redhat/RPMS/i386 directory?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In regard to: Re: Can i build/output .rpm package to directory other than...:

>Tim and all,
>
>Yes, after reviewing the max-rpm doc. Seems like one of the way to do it is
>to use rpmrc file.

rpmrc is deprecated, the new file name is /etc/rpm/macros (system-wide
customizations) and $HOME/.rpmmacros (per-user customizations).  The
format of the file is also slightly different.

If you want to change any of rpm's myriad settings, start by examining
/usr/lib/rpm/macros.  Find the macro in there that controls the thing
you want to change, for example %_topdir.  Now, if you want to change
this system wide, you put a new setting for %_topdir in /etc/rpm/macros
(creating that file if it doesn't exist).  If you just want to change it
for yourself (or your software build account), you put that setting in
your personal .rpmmacros file.

If you want your RPM hierarchy (SOURCES, SPECS, BUILD, RPMS, etc.) to
exist under /home/build/RPM, you could have

%_topdir	/home/build/RPM

in the build account's personal .rpmmacros file.  You would need to
create the appropriate directories under there, i.e.

	cd /home/build/RPM
	mkdir -p SOURCES SPECS BUILD SRPMS RPMS/i386 RPMS/i686 RPMS/noarch

One you have them and a .rpmmacros files that says that %_topdir is
/home/build/RPM, your build account will look for sources in
/home/build/RPM/SOURCES, your %prep and %build will happen in
/home/build/RPM/BUILD, your SRPMS will end up /home/build/RPM/SRPMS, etc.

Tim
-- 
Tim Mooney                              mooney@xxxxxxxxxxxxxxxxxxxxxxxxx
Information Technology Services         (701) 231-1076 (Voice)
Room 242-J6, IACC Building              (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164


_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux