cd6d0c
# Basic set of macros for 'multilib-fix' script.
d22c0c
# Copyright (C) 2015 Red Hat, Inc.
d22c0c
# Written by Pavel Raiskup <praiskup@redhat.com>
d22c0c
#
d22c0c
# This library is free software; you can redistribute it and/or
d22c0c
# modify it under the terms of the GNU Lesser General Public
d22c0c
# License as published by the Free Software Foundation; either
d22c0c
# version 2.1 of the License, or (at your option) any later version.
d22c0c
#
d22c0c
# This library is distributed in the hope that it will be useful,
d22c0c
# but WITHOUT ANY WARRANTY; without even the implied warranty of
d22c0c
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
d22c0c
# Lesser General Public License for more details.
d22c0c
#
d22c0c
# You should have received a copy of the GNU Lesser General Public
d22c0c
# License along with this library; if not, write to the Free Software
d22c0c
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
d22c0c
d9b0c4
cd6d0c
# Macro multilib_fix_c_header is expected to be called
d9b0c4
# from %install (usually after 'make install' call) like:
e217a9
# %multilib_fix_c_header --file %{_includedir}/broken-header.h
cd6d0c
%multilib_fix_c_header @ML_FIX@ --buildroot "$RPM_BUILD_ROOT"
e217a9
e217a9
# Expands to 'true' if the actual architecture should take care to make
e217a9
# the package multilib-clean.  Otherwise expands to 'false'.
e217a9
# Typically you can use this macro like:
e217a9
# %multilib_capable && { do_some_multilib_workarounds ; }
e217a9
%multilib_capable %{expand:%(@ML_INFO@ --multilib-capable)}