2007-01-16 00:06:52 +01:00
|
|
|
#
|
2009-12-08 09:59:56 +01:00
|
|
|
# spec file for package check (Version 0.9.8)
|
2007-01-16 00:06:52 +01:00
|
|
|
#
|
2010-02-11 19:33:31 +01:00
|
|
|
# Copyright (c) 2010 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2008-04-10 13:10:30 +02:00
|
|
|
|
2007-01-16 00:06:52 +01:00
|
|
|
Name: check
|
2009-12-08 09:59:56 +01:00
|
|
|
Version: 0.9.8
|
2010-03-18 15:39:27 +01:00
|
|
|
Release: 2
|
2009-12-08 09:59:56 +01:00
|
|
|
License: LGPLv2.1+
|
|
|
|
Summary: Unit Test Framework for C
|
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++
|
|
|
|
Source: %{name}-%{version}.tar.bz2
|
2010-02-11 19:33:31 +01:00
|
|
|
Source99: baselibs.conf
|
2007-01-16 00:06:52 +01:00
|
|
|
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
|
|
|
%package devel
|
2009-12-08 09:59:56 +01:00
|
|
|
License: LGPLv2.1+
|
2007-03-29 00:18:41 +02:00
|
|
|
Summary: Unit Test Framework for C
|
2009-12-08 09:59:56 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: glibc-devel
|
2010-02-11 19:33:31 +01:00
|
|
|
Recommends: pgk-config
|
2007-03-29 00:18:41 +02:00
|
|
|
|
|
|
|
%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
|
|
|
%prep
|
2007-03-29 00:18:41 +02:00
|
|
|
%setup -q
|
2007-01-16 00:06:52 +01:00
|
|
|
|
|
|
|
%build
|
2009-12-08 09:59:56 +01:00
|
|
|
export CFLAGS="%{optflags} -std=gnu99"
|
|
|
|
export CXXFLAGS="%{optflags} -std=gnu99"
|
|
|
|
export FFLAGS="%{optflags} -std=gnu99"
|
2009-04-18 13:53:02 +02:00
|
|
|
%configure --disable-static --with-pic
|
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-12-08 09:59:56 +01:00
|
|
|
%{__cp} -a AUTHORS COPYING.LESSER THANKS TODO %{buildroot}%{_docdir}/%{name}
|
2009-04-18 13:53:02 +02:00
|
|
|
%{__rm} -f %{buildroot}%{_libdir}/*.la
|
2007-01-16 00:06:52 +01:00
|
|
|
|
|
|
|
%clean
|
2009-12-08 09:59:56 +01:00
|
|
|
%{__rm} -rf %{buildroot}
|
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}/pkgconfig/*.pc
|
|
|
|
%doc %{_docdir}/%{name}/example
|
2007-01-16 00:06:52 +01:00
|
|
|
|
2007-03-29 00:18:41 +02:00
|
|
|
%changelog
|