2007-01-16 00:06:52 +01:00
|
|
|
#
|
2009-02-06 21:41:02 +01:00
|
|
|
# spec file for package check (Version 0.9.6)
|
2007-01-16 00:06:52 +01:00
|
|
|
#
|
2009-02-06 21:41:02 +01:00
|
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:06:52 +01:00
|
|
|
#
|
2009-02-06 21:41:02 +01:00
|
|
|
# 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.
|
|
|
|
|
2007-01-16 00:06:52 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-04-10 13:10:30 +02:00
|
|
|
|
2007-01-16 00:06:52 +01:00
|
|
|
Name: check
|
2009-02-06 21:41:02 +01:00
|
|
|
Version: 0.9.6
|
|
|
|
Release: 1
|
2008-04-10 13:10:30 +02:00
|
|
|
Url: http://check.sourceforge.net/
|
2007-01-16 00:06:52 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2008-04-10 13:10:30 +02:00
|
|
|
License: LGPL v2.1 or later
|
2007-01-16 00:06:52 +01:00
|
|
|
Summary: Unit Test Framework for C
|
|
|
|
Source: %{name}-%{version}.tar.bz2
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
2008-04-10 13:10:30 +02:00
|
|
|
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.
|
2007-01-16 00:06:52 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
2007-03-29 00:18:41 +02:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Arien Malec <arien_malec@yahoo.com>
|
|
|
|
Fredrik Hugosson <hugo303@users.sourceforge.net>
|
|
|
|
Sven Neumann <sven@convergence.de>
|
|
|
|
|
|
|
|
%package devel
|
2008-04-10 13:10:30 +02:00
|
|
|
License: LGPL v2.1 or later
|
2007-03-29 00:18:41 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Summary: Unit Test Framework for C
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-01-16 00:06:52 +01:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Arien Malec <arien_malec@yahoo.com>
|
|
|
|
Fredrik Hugosson <hugo303@users.sourceforge.net>
|
|
|
|
Sven Neumann <sven@convergence.de>
|
|
|
|
|
|
|
|
%prep
|
2007-03-29 00:18:41 +02:00
|
|
|
%setup -q
|
2007-01-16 00:06:52 +01:00
|
|
|
|
|
|
|
%build
|
2009-02-06 21:41:02 +01:00
|
|
|
export CFLAGS="$RPM_OPT_FLAGS -std=gnu99"
|
|
|
|
export CXXFLAGS="$RPM_OPT_FLAGS -std=gnu99"
|
|
|
|
export FFLAGS="$RPM_OPT_FLAGS -std=gnu99"
|
2007-03-29 00:18:41 +02:00
|
|
|
%configure
|
2009-02-06 21:41:02 +01:00
|
|
|
%{__make} %{?jobs:-j%jobs} docdir=%{_docdir}/%{name}
|
2007-01-16 00:06:52 +01:00
|
|
|
|
|
|
|
%install
|
2007-03-29 00:18:41 +02:00
|
|
|
%makeinstall docdir=%{_docdir}/%{name}
|
2009-02-06 21:41:02 +01:00
|
|
|
%{__cp} -a AUTHORS COPYING.LESSER THANKS TODO $RPM_BUILD_ROOT%{_docdir}/%{name}
|
2007-01-16 00:06:52 +01:00
|
|
|
|
|
|
|
%clean
|
2009-02-06 21:41:02 +01:00
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
2007-01-16 00:06:52 +01:00
|
|
|
|
2009-02-06 21:41:02 +01:00
|
|
|
%post -p /sbin/ldconfig
|
2007-03-29 00:18:41 +02:00
|
|
|
|
|
|
|
%post devel
|
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
|
2009-02-06 21:41:02 +01:00
|
|
|
%postun -p /sbin/ldconfig
|
2007-03-29 00:18:41 +02:00
|
|
|
|
|
|
|
%postun devel
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
2007-01-16 00:06:52 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr (-, root, root)
|
2007-03-29 00:18:41 +02:00
|
|
|
%doc %dir %{_docdir}/%{name}
|
|
|
|
%doc %{_docdir}/%{name}/[ACNRST]*
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr (-, root, root)
|
|
|
|
%{_datadir}/aclocal/*.m4
|
|
|
|
%{_includedir}/*.h
|
|
|
|
%doc %{_infodir}/%{name}.info*
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_libdir}/*.*a
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
%doc %{_docdir}/%{name}/example
|
2007-01-16 00:06:52 +01:00
|
|
|
|
2007-03-29 00:18:41 +02:00
|
|
|
%changelog
|
2009-02-06 21:41:02 +01:00
|
|
|
* Wed Dec 31 2008 msuman@suse.de
|
|
|
|
- Updated to version 0.9.6:
|
|
|
|
* add call to AC_REPLACE_FUNCS([strsignal])
|
|
|
|
* add CK_FORK_GETENV to enum fork_status and delete CK_FORK_UNSPECIFIED
|
|
|
|
* add CK_CTX_INVALID to ck_result_ctx and don't use -1 anymore
|
|
|
|
* rename signal to _signal in _tcase_add_test to avoid a
|
|
|
|
symbol clash with /usr/include/sys/signal.h on OS X.
|
|
|
|
* define rpl_malloc and rpl_realloc for platforms where
|
|
|
|
!malloc(0) and !realloc(0,0), such as AIX, because configure
|
|
|
|
goes and redefines malloc/realloc in this case...
|
|
|
|
* Added new Check fail API. Implemented on top of fail_unless. Future
|
|
|
|
versions will reverse this so fail_unless is implemented on top of the
|
|
|
|
ck_assert API. This API is not documented yet, will probably not be fully
|
|
|
|
released until 0.9.8, when it will be possible to choose API.
|
|
|
|
* More fixes and changes.
|
2008-04-10 13:10:30 +02:00
|
|
|
* Thu Apr 10 2008 ro@suse.de
|
|
|
|
- added baselibs.conf file to build xxbit packages
|
|
|
|
for multilib support
|
|
|
|
* Tue Mar 27 2007 sbrabec@suse.cz
|
2007-03-29 00:18:41 +02:00
|
|
|
- Updated to version 0.9.5:
|
|
|
|
* Fixed code coverage support.
|
|
|
|
* Updated manual and converted from DocBook to Texinfo.
|
|
|
|
* Added pkg-config support.
|
|
|
|
* Added Libtool support to build both static and shared
|
|
|
|
libraries.
|
|
|
|
* Updated GNU Build System to use modern Autotools.
|
|
|
|
* Added a new kind of test, looping tests.
|
|
|
|
* Added possibility to turn off timeout tests.
|
|
|
|
* Added coverage analysis for check's own unit tests.
|
|
|
|
* More fixes and changes.
|
2008-04-10 13:10:30 +02:00
|
|
|
* Fri Feb 24 2006 sbrabec@suse.cz
|
2007-01-16 00:06:52 +01:00
|
|
|
- Fixed format string error (David Binderman, #143293).
|
2008-04-10 13:10:30 +02:00
|
|
|
* Wed Jan 25 2006 mls@suse.de
|
2007-01-16 00:06:52 +01:00
|
|
|
- converted neededforbuild to BuildRequires
|
2008-04-10 13:10:30 +02:00
|
|
|
* Mon Dec 12 2005 sbrabec@suse.cz
|
2007-01-16 00:06:52 +01:00
|
|
|
- Updated to version 0.9.3.
|
|
|
|
- Build with -fPIC.
|
2008-04-10 13:10:30 +02:00
|
|
|
* Mon May 30 2005 sbrabec@suse.cz
|
2007-01-16 00:06:52 +01:00
|
|
|
- New SuSE package, version 0.9.2.
|