Re: mock and build system macros

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

 



On Thu, 2006-05-25 at 10:04 -0600, Orion Poplawski wrote:
> Where do I put the buildsystem macros that define fcdist/fedora/etc so 
> that my local mock builds can use them?

Not sure if that is the official way, but from looking at the mock
source, the best place seems to be in config_opts['macros'] in the mock
config for each distro. I have the following in my
fedora-development-i386-core.cfg:

        config_opts['macros'] = """
        %_topdir /builddir/build
        %_rpmfilename   %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm
        %dist   .fc6
        """
        
(The _topdir and _rpmfilename are set in the mock source as defaults,
that's why you should add them when you set config_opts['macros']
explicitly)

You need to reinitialize/clean the buildroot for the config change to
take hold.

David


-- 
fedora-extras-list mailing list
fedora-extras-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-extras-list

[Index of Archives]     [Fedora General Discussion]     [Fedora Art]     [Fedora Docs]     [Fedora Package Review]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite Backpacking]     [KDE Users]

  Powered by Linux