Hello community,

here is the log from the commit of package cmake for openSUSE:Factory checked 
in at 2016-08-31 00:00:56
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/cmake (Old)
 and      /work/SRC/openSUSE:Factory/.cmake.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "cmake"

Changes:
--------
--- /work/SRC/openSUSE:Factory/cmake/cmake-gui.changes  2016-08-08 
13:56:28.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.cmake.new/cmake-gui.changes     2016-08-31 
00:00:57.000000000 +0200
@@ -1,0 +2,6 @@
+Fri Aug 26 08:14:10 UTC 2016 - tchva...@suse.com
+
+- Remove wrong FIXME from spec
+- Require qt5 gui everywhere as it on all supported platforms
+
+-------------------------------------------------------------------
--- /work/SRC/openSUSE:Factory/cmake/cmake.changes      2016-08-18 
09:14:41.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.cmake.new/cmake.changes 2016-08-31 
00:00:57.000000000 +0200
@@ -1,0 +2,9 @@
+Fri Aug 26 08:27:17 UTC 2016 - tchva...@suse.com
+
+- Respect CFLAGS while bootstraping
+- Remove wrong FIXME from the spec
+- Add relwithdebinfo as default target to ease living of sci packages
+- Add possibility to switch between ninja and cmake by defining
+  %__builder ninja prior %cmake call bnc#995752
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ cmake-gui.spec ++++++
--- /var/tmp/diff_new_pack.1Xrlg6/_old  2016-08-31 00:00:58.000000000 +0200
+++ /var/tmp/diff_new_pack.1Xrlg6/_new  2016-08-31 00:00:58.000000000 +0200
@@ -43,21 +43,16 @@
 #if 0%{?suse_version} > 1320
 #BuildRequires:  pkgconfig(jsoncpp)
 #endif
-BuildRequires:  pkg-config
+BuildRequires:  pkgconfig
 BuildRequires:  python-sphinx
 BuildRequires:  update-desktop-files
 BuildRequires:  zlib-devel
+BuildRequires:  pkgconfig(Qt5Widgets)
 BuildRequires:  pkgconfig(bzip2)
 BuildRequires:  pkgconfig(liblzma)
 Requires:       cmake
 Recommends:     cmake-man
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-%if 0%{?suse_version} >= 1320
-BuildRequires:  pkg-config
-BuildRequires:  pkgconfig(Qt5Widgets)
-%else
-BuildRequires:  libqt4-devel
-%endif
 
 %description
 This is a Graphical User Interface for CMake, a cross-platform,
@@ -80,23 +75,16 @@
 %patch6 -p1
 
 %build
-EXTRA_FLAGS="--qt-gui"
-# FIXME: you should use the %%configure macro
+export CFLAGS="%{optflags}"
+export CXXFLAGS="%{optflags}"
+# This is not autotools configure
 ./configure \
     --prefix=%{_prefix} \
     --datadir=/share/cmake \
     --docdir=/share/doc/packages/cmake \
     --mandir=/share/man \
     --sphinx-man \
-%if 0%{?suse_version} && !0%{?sles_version}
     --system-libs \
-%else
-    --system-curl \
-    --system-expat \
-    --system-zlib \
-    --system-bzip2 \
-    --no-system-libarchive \
-%endif
     --no-system-jsoncpp \
     --parallel=0%{jobs} \
     --qt-gui

++++++ cmake.spec ++++++
--- /var/tmp/diff_new_pack.1Xrlg6/_old  2016-08-31 00:00:58.000000000 +0200
+++ /var/tmp/diff_new_pack.1Xrlg6/_new  2016-08-31 00:00:58.000000000 +0200
@@ -51,7 +51,7 @@
 #if 0%{?suse_version} > 1320
 #BuildRequires:  pkgconfig(jsoncpp)
 #endif
-BuildRequires:  pkg-config
+BuildRequires:  pkgconfig
 BuildRequires:  zlib-devel
 BuildRequires:  pkgconfig(liblzma)
 Requires:       make
@@ -75,7 +75,9 @@
 %patch7 -p1
 
 %build
-# FIXME: you should use the %%configure macro
+export CFLAGS="%{optflags}"
+export CXXFLAGS="%{optflags}"
+# This is not autotools configure
 ./configure \
     --prefix=%{_prefix} \
     --datadir=/share/%{name} \



++++++ cmake.macros ++++++
--- /var/tmp/diff_new_pack.1Xrlg6/_old  2016-08-31 00:00:58.000000000 +0200
+++ /var/tmp/diff_new_pack.1Xrlg6/_new  2016-08-31 00:00:58.000000000 +0200
@@ -4,6 +4,7 @@
 %__cmake %{_bindir}/cmake
 %__ctest %{_bindir}/ctest
 %__builddir build
+%__builder %__make
 
 %cmake \
     find . -name CMakeLists.txt \\\
@@ -11,13 +12,18 @@
     mkdir -p %__builddir \
     cd %__builddir \
     %__cmake .. \\\
+%if "%__builder" == "%__make" \
+        -G"Unix Makefiles" \\\
+%else \
+        -GNinja \\\
+%endif \
         -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \\\
         -DINCLUDE_INSTALL_DIR:PATH=%{_includedir} \\\
         -DLIB_INSTALL_DIR:PATH=%{_libdir} \\\
         -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \\\
         -DSHARE_INSTALL_PREFIX:PATH=%{_datadir} \\\
         -DCMAKE_INSTALL_LIBDIR:PATH=%{_libdir} \\\
-        -DCMAKE_BUILD_TYPE=None \\\
+        -DCMAKE_BUILD_TYPE=RelWithDebInfo \\\
         -DCMAKE_C_FLAGS="${CFLAGS:-%optflags} -DNDEBUG" \\\
         -DCMAKE_CXX_FLAGS="${CXXFLAGS:-%optflags} -DNDEBUG" \\\
         -DCMAKE_Fortran_FLAGS="${FFLAGS:-%optflags%{?_fmoddir: -I%_fmoddir}} 
-DNDEBUG" \\\
@@ -36,10 +42,14 @@
         -DCMAKE_MODULES_INSTALL_DIR=%{_datadir}/cmake/Modules
 
 %make_jobs \
-    %__make %{?_smp_mflags} VERBOSE=1
+%if "%__builder" == "%__make" \
+    %__make %{?_smp_mflags} VERBOSE=1 \
+%else \
+    ninja -v %{?_smp_mflags} \
+%endif
 
 %cmake_install \
-    %__make VERBOSE=1 DESTDIR=%{buildroot} install/fast -C %__builddir
+    DESTDIR=%{buildroot} %__builder install -C %__builddir
 
 %ctest \
     cd %__builddir \


Reply via email to