Prefer %global over %define

This commit is contained in:
Paul Howarth 2016-02-02 11:32:20 +00:00
parent 40933f3c05
commit ec00e90a49

View File

@ -183,9 +183,9 @@ install -m 644 docs/libcurl/libcurl.m4 $RPM_BUILD_ROOT%{_datadir}/aclocal
# Make libcurl-devel multilib-ready (bug #488922) # Make libcurl-devel multilib-ready (bug #488922)
%if 0%{?__isa_bits} == 64 %if 0%{?__isa_bits} == 64
%define _curlbuild_h curlbuild-64.h %global _curlbuild_h curlbuild-64.h
%else %else
%define _curlbuild_h curlbuild-32.h %global _curlbuild_h curlbuild-32.h
%endif %endif
mv $RPM_BUILD_ROOT%{_includedir}/curl/curlbuild.h \ mv $RPM_BUILD_ROOT%{_includedir}/curl/curlbuild.h \
$RPM_BUILD_ROOT%{_includedir}/curl/%{_curlbuild_h} $RPM_BUILD_ROOT%{_includedir}/curl/%{_curlbuild_h}