[exempi] Make sure we respect RPM_OPT_FLAGS and simplify configure (#889554)

Stanislav Ochotnicky sochotni at fedoraproject.org
Wed Jan 2 10:02:07 UTC 2013


commit ef1969bb6ac4472fdf8035f5fd44822b512b20ef
Author: Stanislav Ochotnicky <sochotnicky at redhat.com>
Date:   Wed Jan 2 11:00:44 2013 +0100

    Make sure we respect RPM_OPT_FLAGS and simplify configure (#889554)

 exempi.spec |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/exempi.spec b/exempi.spec
index 6933560..d959bf4 100644
--- a/exempi.spec
+++ b/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 at redhat.com> - 2.2.0-5
+- Make sure we respect RPM_OPT_FLAGS and simplify configure (#889554)
+
 * Wed Dec 19 2012 Stanislav Ochotnicky <sochotnicky at redhat.com> - 2.2.0-4
 - Add BanAllEntityUsage into macro definitions (#888765)
 


More information about the scm-commits mailing list