cd486f
%if "%{name}" == "gtk3-private"
cd486f
    function prepend_buildroot_include_path_to_compiler_flags() {
cd486f
        export CFLAGS="-I%{_buildrootdir}%{gtk3_install_path}/$@ $CFLAGS" \
cd486f
        export CXXFLAGS="-I%{_buildrootdir}%{gtk3_install_path}/$@ $CXXFLAGS"
cd486f
    }
cd486f
    
cd486f
    prepend_buildroot_include_path_to_compiler_flags include
cd486f
    prepend_buildroot_include_path_to_compiler_flags include/glib-2.0
cd486f
    prepend_buildroot_include_path_to_compiler_flags include/glib-2.0
cd486f
    prepend_buildroot_include_path_to_compiler_flags include/gio-unix-2.0
cd486f
    prepend_buildroot_include_path_to_compiler_flags %{_lib}/glib-2.0/include
cd486f
    prepend_buildroot_include_path_to_compiler_flags include/freetype2
cd486f
    prepend_buildroot_include_path_to_compiler_flags include/fontconfig
cd486f
    prepend_buildroot_include_path_to_compiler_flags include/harfbuzz
cd486f
    prepend_buildroot_include_path_to_compiler_flags include/gdk-pixbuf-2.0
cd486f
    prepend_buildroot_include_path_to_compiler_flags include/atk-1.0
cd486f
    prepend_buildroot_include_path_to_compiler_flags include/at-spi-2.0
cd486f
    prepend_buildroot_include_path_to_compiler_flags include/at-spi2-atk/2.0
cd486f
    prepend_buildroot_include_path_to_compiler_flags include/cairo
cd486f
    prepend_buildroot_include_path_to_compiler_flags include/pango-1.0
cd486f
    prepend_buildroot_include_path_to_compiler_flags include/librsvg-2.0
cd486f
    prepend_buildroot_include_path_to_compiler_flags include/cairo
cd486f
    prepend_buildroot_include_path_to_compiler_flags include/gtk-3.0
cd486f
    prepend_buildroot_include_path_to_compiler_flags include/gtk-3.0/unix-print
cd486f
    prepend_buildroot_include_path_to_compiler_flags include/librsvg-2.0
cd486f
%else
cd486f
    sed -i 's@%{gtk3_install_path}@%{_buildrootdir}%{gtk3_install_path}@g' %{_buildrootdir}%{gtk3_install_path}/%{_lib}/pkgconfig/*.pc
cd486f
%endif
cd486f
cd486f
export LDFLAGS="-L%{_buildrootdir}%{gtk3_install_path}/%{_lib} $LDFLAGS"
cd486f
export LDFLAGS="-Wl,-rpath,%{gtk3_install_path}/%{_lib} $LDFLAGS"
cd486f
export LDFLAGS="-Wl,-rpath-link,%{_buildrootdir}%{gtk3_install_path}/%{_lib} $LDFLAGS"
cd486f
cd486f
export PKG_CONFIG_PATH=%{_buildrootdir}%{gtk3_install_path}/%{_lib}/pkgconfig