check/check.spec

80 lines
2.0 KiB
RPMSpec

#
# spec file for package check (Version 0.9.3)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: check
BuildRequires: docbook-utils
Version: 0.9.3
Release: 4
URL: http://check.sourceforge.net/
Group: Development/Libraries/C and C++
License: LGPL
Summary: Unit Test Framework for C
Source: %{name}-%{version}.tar.bz2
Patch: check-format.patch
Autoreqprov: on
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
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
%patch
%build
export CFLAGS="$RPM_OPT_FLAGS -fPIC"
./configure\
--prefix=/usr\
--libdir=/usr/%{_lib}
make %{?jobs:-j %jobs}
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT DOCROOTDIR=%{_defaultdocdir}/%{name} install
cp AUTHORS $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
%post
%files
%defattr (-, root, root)
%doc %{_defaultdocdir}/%{name}
/usr/%{_lib}/*.*a
/usr/include/*
/usr/share/aclocal/*
%changelog -n check
* 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.