[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
user defined macros in RPMS ?
- From: "Lis Maria" <lismariain gmail com>
- To: "RPM Package Manager" <rpm-list redhat com>
- Subject: user defined macros in RPMS ?
- Date: Thu, 11 Jan 2007 11:30:33 +0530
Hi
I am having a doubt about the user defined macros in RPMS.
I believe we can create our own macros in the .rpmmacros file. So i did create a macro called %_user_switch xxxx in the .rpmmacros file. Now i am using this macro in the spec file's
%pre section as
su %{_user_switch}
Now before firing rpm -Uvh, i am redefining this macro at the command line as rpm --define '_user_switch yyyy'
Now if i try to install my rpm, it is installing the files as xxxx itself ....
Is there any other way i can redefine a macro for rpm install ?
Thanks & Regards
Lis Thomas
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]