diff --git a/OpenIPMI.spec b/OpenIPMI.spec index da4cc25..c50405e 100644 --- a/OpenIPMI.spec +++ b/OpenIPMI.spec @@ -5,7 +5,7 @@ Summary: IPMI (Intelligent Platform Management Interface) library and tools Name: OpenIPMI Version: 2.0.19 -Release: 6%{?dist} +Release: 7%{?dist} License: LGPLv2+ and GPLv2+ or BSD Group: System Environment/Base URL: http://sourceforge.net/projects/openipmi/ @@ -78,6 +78,7 @@ Group: Development/Libraries Summary: The development environment for the OpenIPMI project Requires: pkgconfig Requires: %{name} = %{version}-%{release} +Requires: %{name}-libs = %{version}-%{release} %description devel The OpenIPMI-devel package contains the development libraries and header files @@ -89,7 +90,7 @@ of the OpenIPMI project. %patch2 -p1 -b .manscan %build -export CFLAGS="-fPIC $RPM_OPT_FLAGS" +export CFLAGS="-fPIC $RPM_OPT_FLAGS -fno-strict-aliasing" # aarch64 workaround remove once released package's config.sub contains aarch64 %{__libtoolize} --copy --force --automake @@ -106,9 +107,10 @@ export CFLAGS="-fPIC $RPM_OPT_FLAGS" --disable-static \ --with-tkinter=no -# get rid of 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 +# https://fedoraproject.org/wiki/Packaging:Guidelines?rd=Packaging/Guidelines#Beware_of_Rpath +# get rid of rpath still present in OpenIPMI-perl package +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 # not %{?_smp_mflags} safe @@ -205,6 +207,10 @@ fi %config(noreplace) %{_sysconfdir}/modprobe.d/OpenIPMI.conf %changelog +* Fri Jul 19 2013 Ledvinka Ales - 2.0.19-7 +- Hint compilation to avoid strict aliasing and prevent type-punned pointer issues. +- Fix rPath regression for OpenIPMI-perl library. + * Wed Jul 17 2013 Petr Pisar - 2.0.19-6 - Perl 5.18 rebuild