Hello community,

here is the log from the commit of package cmocka for openSUSE:Factory checked 
in at 2015-07-23 15:22:14
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/cmocka (Old)
 and      /work/SRC/openSUSE:Factory/.cmocka.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "cmocka"

Changes:
--------
--- /work/SRC/openSUSE:Factory/cmocka/cmocka.changes    2015-03-18 
13:06:01.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.cmocka.new/cmocka.changes       2015-07-23 
15:22:16.000000000 +0200
@@ -1,0 +2,13 @@
+Wed Jul 15 08:37:06 UTC 2015 - a...@cryptomilk.org
+
+- Do not turn of rpath support
+
+-------------------------------------------------------------------
+Tue Jul 14 14:07:14 UTC 2015 - tchva...@suse.com
+
+- Use properly %cmake macro to build nicely with all the linker/cflags
+- Use proper Url and Source
+- Properly fails on crashing tests instead of finishing build
+- Enable cmockery support
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ cmocka.spec ++++++
--- /var/tmp/diff_new_pack.lt2VLa/_old  2015-07-23 15:22:16.000000000 +0200
+++ /var/tmp/diff_new_pack.lt2VLa/_new  2015-07-23 15:22:16.000000000 +0200
@@ -16,21 +16,18 @@
 #
 
 
-BuildRequires:  cmake
-BuildRequires:  glibc-devel
-BuildRequires:  pkg-config
-
 Name:           cmocka
 Version:        1.0.1
 Release:        0
-#
 Summary:        Lightweight library to simplify and generalize unit tests for C
 License:        Apache-2.0
 Group:          Productivity/Networking/Other
-Url:            http://open.cryptomilk.org/cmocka
-#
-Source0:        %{name}-%{version}.tar.xz
+Url:            http://cmocka.org
+Source0:        https://cmocka.org/files/1.0/%{name}-%{version}.tar.xz
 Source1:        baselibs.conf
+BuildRequires:  cmake
+BuildRequires:  glibc-devel
+BuildRequires:  pkg-config
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
 %description
@@ -75,7 +72,6 @@
 Also, CMocka tries to avoid the use of some of the newer features of C
 compilers.
 
-
 %package -n libcmocka-devel
 Summary:        Development headers for the cmocka library
 Group:          Development/Libraries/C and C++
@@ -98,42 +94,28 @@
 %setup -q
 
 %build
-if test ! -e "obj"; then
-  mkdir obj
-fi
-pushd obj
-cmake \
-  -DCMAKE_C_FLAGS:STRING="%{optflags}" \
-  -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-  -DCMAKE_INSTALL_PREFIX=%{_prefix} \
+%cmake \
+    -DCMAKE_SKIP_RPATH=OFF \
   -DWITH_STATIC_LIB=ON \
-%if %{_lib} == lib64
-  -DLIB_SUFFIX=64 \
-%endif
-  -DUNIT_TESTING=ON \
-  %{_builddir}/%{name}-%{version}
+    -DWITH_CMOCKERY_SUPPORT=ON \
+    -DUNIT_TESTING=ON
 
-%__make %{?_smp_mflags} VERBOSE=1
-popd
+make %{?_smp_mflags}
 
 %install
-pushd obj
-%makeinstall
-popd
+%cmake_install
 
 %check
-pushd obj
-%__make test || cat Testing/Temporary/LastTest.log
+pushd build
+make %{?_smp_mflags} test || {
+    cat Testing/Temporary/LastTest.log;
+    exit 1;
+}
 popd
 
-%post -n libcmocka0
-/sbin/ldconfig
-
-%postun -n libcmocka0
-/sbin/ldconfig
+%post -n libcmocka0 -p /sbin/ldconfig
 
-%clean
-%{__rm} -rf %{buildroot}
+%postun -n libcmocka0 -p /sbin/ldconfig
 
 %files -n libcmocka0
 %defattr(-,root,root)
@@ -144,6 +126,9 @@
 %defattr(-,root,root)
 %{_includedir}/cmocka.h
 %{_includedir}/cmocka_pbc.h
+%dir %{_includedir}/cmockery
+%{_includedir}/cmockery/cmockery.h
+%{_includedir}/cmockery/pbc.h
 %{_libdir}/libcmocka.so
 %{_libdir}/pkgconfig/cmocka.pc
 %dir %{_libdir}/cmake/cmocka


Reply via email to