Re: alias command in a .spec file

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

 



On Sun, Dec 6, 2015 at 10:28 AM, arnaud gaboury
<arnaud.gaboury@xxxxxxxxx> wrote:
> To build successfully a rpm package from my .spec file I need alias a command.
> The alias command is not taken into account in the .spec file. I can
> of course run it in my shell before the build, but I would like to
> include the process in .spec file.
>
> The link[1] is confusing. Something like:
> pm alias --MyAlias --define '_MyProg !#:+'
> ?
>
> Or the popt alias setting ?
> Define a global variable like MyAlias= MyProg ?
>
> Thank you for hints

One solution, and maybe cleanest, would be to unset an environment
variable (result would be same).
I can add this in my spec file:

if [ -n $MyVar ]:the
unset MyVar
fi

It works. Now best would be to save this variable, unset it at
begining and set it again at post. I can use
printenv | grep MyVar to catch the Var:Value, but no idea how to save
it in a %variable in my spec file. Idea would be something like this
in pseudo code:
%define MyVar printenv | grep MyVar


>
>
>
> [1]https://docs.fedoraproject.org/ro/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch20s03.html#id692629
> --
>
> google.com/+arnaudgabourygabx



-- 

google.com/+arnaudgabourygabx
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux