check/check.spec
Dominique Leuenberger 367b14bfe0 Accepting request 220627 from GNOME:Next
- Update to version 0.9.12:
  + Additional unit tests created for internal and external Check
    APIs.
  + Check now compiled on Windows using MSVC when using CMake and
    NMake. All unit tests pass, though shell script based ones need
    to be run in the MSYS environment.
  + Check now compiles on Windows using Visual Studio 10 when using
    CMake. check_check passes when run from Visual Studios.
  + Always capture the start and end times of tests when using
    NO_FORK mode. Previously the end time was not captured,
    resulting in arbitrary durations being recorded when tests
    failed. Bug#87.
  + Added additional configure script checks for support of
    timer_create() on the target system. This allows for OpenBSD to
    compile and run all Check's unit tests successfully. 
  + Added a unit test, check_mem_leaks, which can be used against
    valgrind to test for memory leaks. No memory leaks were found.
  + Added tcase_add_loop_test support in checkm.
  + Add support for logging in Test Anything Protocol (TAP) format.
  + Refactor Check's assertions to be more like the assert() call
    in assert.h, in that static source code analyzers can use gcc
    attributes in the header to make assumptions about the flow of
    the code. See feature request #29.
  + Fix ck_assert_ptr_* causing const compilation warnings.
- Add check-missing-includes.patch: Add missing include in order
  to fix the build.

OBS-URL: https://build.opensuse.org/request/show/220627
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/check?expand=0&rev=25
2014-02-02 19:46:20 +00:00

101 lines
3.3 KiB
RPMSpec

#
# spec file for package check
#
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: check
Version: 0.9.12
Release: 0
Summary: Unit Test Framework for C
License: LGPL-2.1+
Group: Development/Libraries/C and C++
Url: http://check.sourceforge.net/
Source: http://downloads.sourceforge.net/project/check/check/%{version}/%{name}-%{version}.tar.gz
Source99: baselibs.conf
# PATCH-FIX-UPSTREAM check-missing-includes.patch dimstar@opensuse.org -- Include check_check.h for the tests; fixes implicit declarations.
Patch0: check-missing-includes.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: pkg-config
%description
Check is a unit test framework for C. It features a simple interfacefor
defining unit tests, limitating the developer the less possible. Tests
are run in a separate address space, so Check cancatch both, assertion
failures and code errors that cause segmentationfaults or other
signals. The output of unit tests can be used within source code
editors and IDEs.
%package devel
Summary: Unit Test Framework for C
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
Requires: glibc-devel
Recommends: pgk-config
%description devel
Check is a unit test framework for C. It features a simple interface
for defining unit tests, putting little in the way of the developer.
Tests are run in a separate address space, so Check can catch both
assertion failures and code errors that cause segmentation faults or
other signals. The output from unit tests can be used within source
code editors and IDEs.
%prep
%setup -q
%patch0 -p1
%build
export CFLAGS="%{optflags} -std=gnu99"
export CXXFLAGS="%{optflags} -std=gnu99"
export FFLAGS="%{optflags} -std=gnu99"
%configure --disable-static --with-pic
make %{?_smp_mflags} docdir=%{_docdir}/%{name}
%install
%makeinstall docdir=%{_docdir}/%{name}
%{__cp} -a AUTHORS COPYING.LESSER THANKS TODO %{buildroot}%{_docdir}/%{name}
%{__rm} -f %{buildroot}%{_libdir}/*.la
%post -p /sbin/ldconfig
%post devel
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%postun -p /sbin/ldconfig
%postun devel
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%files
%defattr (-, root, root)
%doc %dir %{_docdir}/%{name}
%doc %{_docdir}/%{name}/[ACNRST]*
%{_libdir}/*.so.*
%files devel
%defattr (-, root, root)
%dir %{_datadir}/aclocal
%{_datadir}/aclocal/*.m4
%{_includedir}/*.h
%doc %{_infodir}/%{name}.info*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%doc %{_docdir}/%{name}/example
%{_bindir}/checkmk
%{_mandir}/man1/checkmk.1%{?ext_man}
%changelog