diff --git a/cmake.spec b/cmake.spec index 4e6ec2d..b633359 100644 --- a/cmake.spec +++ b/cmake.spec @@ -117,8 +117,9 @@ The %{name}-gui package contains the Qt based GUI for CMake. %build -export CFLAGS="$RPM_OPT_FLAGS" -export CXXFLAGS="$RPM_OPT_FLAGS" +export CFLAGS="%{optflags}" +export CXXFLAGS="%{optflags}" +export LDFLAGS="%{__global_ldflags}" mkdir build pushd build ../bootstrap --prefix=%{_prefix} --datadir=/share/%{name} \ @@ -183,8 +184,8 @@ desktop-file-install --delete-original \ # # See http://www.freedesktop.org/software/appstream/docs/ for more details. # -mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata -cat > $RPM_BUILD_ROOT%{_datadir}/appdata/CMake.appdata.xml < %{buildroot}%{_datadir}/appdata/CMake.appdata.xml <