Make sure we respect RPM_OPT_FLAGS and simplify configure (#889554)
This commit is contained in:
parent
1645fcaf3c
commit
ef1969bb6a
11
exempi.spec
11
exempi.spec
@ -1,7 +1,7 @@
|
||||
Summary: Library for easy parsing of XMP metadata
|
||||
Name: exempi
|
||||
Version: 2.2.0
|
||||
Release: 4%{?dist}
|
||||
Release: 5%{?dist}
|
||||
License: BSD
|
||||
Group: System Environment/Libraries
|
||||
URL: http://libopenraw.freedesktop.org/wiki/Exempi
|
||||
@ -30,14 +30,14 @@ developing with exempi.
|
||||
%build
|
||||
|
||||
# BanEntityUsage needed for #888765
|
||||
%configure LDFLAGS="-L%{_libdir}" CPPFLAGS="-I%{_includedir}" \
|
||||
CFLAGS="-DBanAllEntityUsage=1" CXXFLAGS="-DBanAllEntityUsage=1"
|
||||
%configure LDFLAGS="-L%{_libdir}" \
|
||||
CPPFLAGS="-I%{_includedir} -fno-strict-aliasing -DBanAllEntityUsage=1"
|
||||
|
||||
# Disable rpath
|
||||
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
||||
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
||||
|
||||
make %{?_smp_mflags}
|
||||
make %{?_smp_mflags} V=1
|
||||
|
||||
%check
|
||||
make check
|
||||
@ -63,6 +63,9 @@ rm -rf %{buildroot}%{_libdir}/*.a
|
||||
%{_libdir}/pkgconfig/*.pc
|
||||
|
||||
%changelog
|
||||
* Wed Jan 02 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.2.0-5
|
||||
- Make sure we respect RPM_OPT_FLAGS and simplify configure (#889554)
|
||||
|
||||
* Wed Dec 19 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.2.0-4
|
||||
- Add BanAllEntityUsage into macro definitions (#888765)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user