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