154 lines
5.0 KiB
RPMSpec
154 lines
5.0 KiB
RPMSpec
#
|
|
# spec file for package check (Version 0.9.6)
|
|
#
|
|
# Copyright (c) 2009 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/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
|
|
Name: check
|
|
Version: 0.9.6
|
|
Release: 2
|
|
Url: http://check.sourceforge.net/
|
|
Group: Development/Libraries/C and C++
|
|
License: LGPL v2.1 or later
|
|
Summary: Unit Test Framework for C
|
|
Source: %{name}-%{version}.tar.bz2
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%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.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Arien Malec <arien_malec@yahoo.com>
|
|
Fredrik Hugosson <hugo303@users.sourceforge.net>
|
|
Sven Neumann <sven@convergence.de>
|
|
|
|
%package devel
|
|
License: LGPL v2.1 or later
|
|
Group: Development/Libraries/C and C++
|
|
Summary: Unit Test Framework for C
|
|
Requires: %{name} = %{version} glibc-devel
|
|
|
|
%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.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Arien Malec <arien_malec@yahoo.com>
|
|
Fredrik Hugosson <hugo303@users.sourceforge.net>
|
|
Sven Neumann <sven@convergence.de>
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
export CFLAGS="$RPM_OPT_FLAGS -std=gnu99"
|
|
export CXXFLAGS="$RPM_OPT_FLAGS -std=gnu99"
|
|
export FFLAGS="$RPM_OPT_FLAGS -std=gnu99"
|
|
%configure --disable-static --with-pic
|
|
%{__make} %{?jobs:-j%jobs} docdir=%{_docdir}/%{name}
|
|
|
|
%install
|
|
%makeinstall docdir=%{_docdir}/%{name}
|
|
%{__cp} -a AUTHORS COPYING.LESSER THANKS TODO $RPM_BUILD_ROOT%{_docdir}/%{name}
|
|
%{__rm} -f %{buildroot}%{_libdir}/*.la
|
|
|
|
%clean
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
|
|
|
%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)
|
|
%{_datadir}/aclocal/*.m4
|
|
%{_includedir}/*.h
|
|
%doc %{_infodir}/%{name}.info*
|
|
%{_libdir}/*.so
|
|
%{_libdir}/pkgconfig/*.pc
|
|
%doc %{_docdir}/%{name}/example
|
|
|
|
%changelog
|
|
* Sat Apr 18 2009 crrodriguez@suse.de
|
|
- remove static libraries and "la" files
|
|
* Thu Jan 01 2009 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.
|
|
* 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
|
|
- 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.
|
|
* Fri Feb 24 2006 sbrabec@suse.cz
|
|
- Fixed format string error (David Binderman, #143293).
|
|
* Wed Jan 25 2006 mls@suse.de
|
|
- converted neededforbuild to BuildRequires
|
|
* Mon Dec 12 2005 sbrabec@suse.cz
|
|
- Updated to version 0.9.3.
|
|
- Build with -fPIC.
|
|
* Mon May 30 2005 sbrabec@suse.cz
|
|
- New SuSE package, version 0.9.2.
|