Accepting request 230775 from devel:libraries:c_c++

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/230775
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cmocka?expand=0&rev=6
This commit is contained in:
Stephan Kulow 2014-04-25 09:33:51 +00:00 committed by Git OBS Bridge
commit 44fe9f4bbc
4 changed files with 23 additions and 10 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2279adb8180fa17346f67fe623e5ec6ce3fed1c4b3b6629307c89ef8b134ec64
size 64460

3
cmocka-0.4.0.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9411e31ed3402c9dee13b34c328df968c88592ee521243d10145b223de6e6b42
size 69392

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Fri Apr 11 14:16:07 UTC 2014 - asn@cryptomilk.org
- Update to version 0.4.0
* Added support for group testing.
* Added assert_return_code().
* Added better messages for errors.
* Added cmake config mode support.
* Fixed bug with unit_test_setup and unit_test_teardown.
* Fixed a lot of small bugs.
-------------------------------------------------------------------
Mon Nov 11 13:17:27 UTC 2013 - asn@cryptomilk.org

View File

@ -1,7 +1,7 @@
#
# spec file for package cmocka
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -20,7 +20,7 @@ BuildRequires: cmake
BuildRequires: glibc-devel
Name: cmocka
Version: 0.3.2
Version: 0.4.0
Release: 0
#
Summary: Lightweight library to simplify and generalize unit tests for C
@ -99,10 +99,10 @@ Static cmocka unit testing library.
%setup -q
%build
if test ! -e "build"; then
mkdir build
if test ! -e "obj"; then
mkdir obj
fi
pushd build
pushd obj
cmake \
-DCMAKE_C_FLAGS:STRING="%{optflags}" \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
@ -115,10 +115,10 @@ cmake \
%{_builddir}/%{name}-%{version}
make %{?_smp_mflags} VERBOSE=1
popd build
popd obj
%install
pushd build
pushd obj
%makeinstall
popd
@ -141,6 +141,8 @@ popd
%{_includedir}/cmocka.h
%{_libdir}/libcmocka.so
%{_libdir}/pkgconfig/cmocka.pc
%{_libdir}/cmake/cmocka-config-version.cmake
%{_libdir}/cmake/cmocka-config.cmake
%files -n libcmocka-devel-static
%defattr(-,root,root)