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]

 



Tim, 

Spot on!

I created the ~/.rpmmacros file and declare the %_topdir to be the top 
directory of all my SPECS and RPMS directories and it works. Thank you for 
your information.

Here are my questions:

1. I dont seems to be able to find any documentation on how to use rpmmacros, 
would you please let me know where i can find them? 

2. How can i also specify the location of rpmmacros? I would like to create a 
copy only in the build directory with other source and misc files.

3. I noticed that it will create the .rpm files under i386 directory. Is it a 
correct behaviour? Can I change it?

Thank you so much.

Barry

----- Original Message ----- 
From: "Tim Mooney" <mooney@xxxxxxxxxxxxxxxxxxxxxxxxx>
To: <rpm-list@xxxxxxxxxx>
Sent: Monday, March 08, 2004 12:55 PM
Subject: Re: Can i build/output .rpm package to directory other 
than /usr/src/redhat/RPMS/i386 directory?


> 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
> 




_______________________________________________
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