Get rid of unnecessary LDFLAGS definition overwriting RPM flags

This commit is contained in:
Stanislav Ochotnicky 2013-01-30 11:39:01 +01:00
parent ef1969bb6a
commit f2b324e500

View File

@ -1,7 +1,7 @@
Summary: Library for easy parsing of XMP metadata
Name: exempi
Version: 2.2.0
Release: 5%{?dist}
Release: 6%{?dist}
License: BSD
Group: System Environment/Libraries
URL: http://libopenraw.freedesktop.org/wiki/Exempi
@ -30,8 +30,7 @@ developing with exempi.
%build
# BanEntityUsage needed for #888765
%configure LDFLAGS="-L%{_libdir}" \
CPPFLAGS="-I%{_includedir} -fno-strict-aliasing -DBanAllEntityUsage=1"
%configure CPPFLAGS="-I%{_includedir} -fno-strict-aliasing -DBanAllEntityUsage=1"
# Disable rpath
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
@ -63,6 +62,9 @@ rm -rf %{buildroot}%{_libdir}/*.a
%{_libdir}/pkgconfig/*.pc
%changelog
* Wed Jan 30 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.2.0-6
- Get rid of unnecessary LDFLAGS definition overwriting RPM flags
* Wed Jan 02 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.2.0-5
- Make sure we respect RPM_OPT_FLAGS and simplify configure (#889554)