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 Mon Nov 11 13:17:27 UTC 2013 - asn@cryptomilk.org

View File

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