2007-01-16 00:06:52 +01:00
|
|
|
#
|
2011-09-21 17:39:18 +02:00
|
|
|
# spec file for package check
|
2007-01-16 00:06:52 +01:00
|
|
|
#
|
2018-03-09 11:12:01 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2018-03-09 11:12:01 +01:00
|
|
|
%define libname libcheck0
|
2007-01-16 00:06:52 +01:00
|
|
|
Name: check
|
2018-03-09 11:12:01 +01:00
|
|
|
Version: 0.12.0
|
2012-10-29 21:52:57 +01:00
|
|
|
Release: 0
|
2009-12-08 09:59:56 +01:00
|
|
|
Summary: Unit Test Framework for C
|
2018-03-09 11:12:01 +01:00
|
|
|
License: LGPL-2.1-or-later
|
2007-01-16 00:06:52 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2018-03-09 11:12:01 +01:00
|
|
|
URL: https://libcheck.github.io/check/
|
|
|
|
Source: https://github.com/libcheck/check/releases/download/%{version}/%{name}-%{version}.tar.gz
|
2010-02-11 19:33:31 +01:00
|
|
|
Source99: baselibs.conf
|
2018-03-09 11:12:01 +01:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
2015-04-08 09:34:52 +02:00
|
|
|
BuildRequires: fdupes
|
2017-09-26 21:29:08 +02:00
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: makeinfo
|
2018-03-09 11:12:01 +01:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: sed
|
2007-01-16 00:06:52 +01:00
|
|
|
|
|
|
|
%description
|
2015-04-08 09:34:52 +02:00
|
|
|
Check is a unit test framework for C. It features a simple interface for
|
|
|
|
defining unit tests, limitating the developer the less possible.
|
|
|
|
|
2018-03-09 11:12:01 +01:00
|
|
|
%package -n %{libname}
|
2015-04-08 09:34:52 +02:00
|
|
|
Summary: Unit Test Framework for C
|
|
|
|
Group: System/Libraries
|
2018-03-09 11:12:01 +01:00
|
|
|
Obsoletes: check < %{version}-%{release}
|
|
|
|
Provides: check = %{version}-%{release}
|
2015-04-08 09:34:52 +02:00
|
|
|
|
2018-03-09 11:12:01 +01:00
|
|
|
%description -n %{libname}
|
2015-04-08 09:34:52 +02:00
|
|
|
Check is a unit test framework for C. It features a simple interface for
|
2008-04-10 13:10:30 +02:00
|
|
|
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
|
2015-04-08 09:34:52 +02:00
|
|
|
Summary: Development files for the CHECK unit test framework
|
2009-12-08 09:59:56 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2018-03-09 11:12:01 +01:00
|
|
|
Requires: %{libname} = %{version}
|
2009-12-08 09:59:56 +01:00
|
|
|
Requires: glibc-devel
|
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
|
2017-09-26 21:29:08 +02:00
|
|
|
autoreconf -fiv
|
2009-12-08 09:59:56 +01:00
|
|
|
export CFLAGS="%{optflags} -std=gnu99"
|
|
|
|
export CXXFLAGS="%{optflags} -std=gnu99"
|
|
|
|
export FFLAGS="%{optflags} -std=gnu99"
|
2018-03-09 11:12:01 +01:00
|
|
|
%configure \
|
|
|
|
--disable-static
|
|
|
|
%make_build docdir=%{_docdir}/%{name}
|
2007-01-16 00:06:52 +01:00
|
|
|
|
|
|
|
%install
|
2015-04-08 09:34:52 +02:00
|
|
|
%make_install docdir=%{_docdir}/%{name}
|
2018-03-09 11:12:01 +01:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
%fdupes %{buildroot}/%{_datadir}
|
2007-01-16 00:06:52 +01:00
|
|
|
|
2018-03-09 11:12:01 +01:00
|
|
|
# We package these either with %%license or %%doc macros
|
|
|
|
rm %{buildroot}%{_docdir}/%{name}/{COPYING.LESSER,ChangeLog,NEWS,README}
|
2007-03-29 00:18:41 +02:00
|
|
|
|
2018-03-09 11:12:01 +01:00
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
2007-03-29 00:18:41 +02:00
|
|
|
%post devel
|
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
|
2018-03-09 11:12:01 +01:00
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
2015-04-08 09:39:06 +02:00
|
|
|
%preun devel
|
2007-03-29 00:18:41 +02:00
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
2007-01-16 00:06:52 +01:00
|
|
|
|
2018-03-09 11:12:01 +01:00
|
|
|
%files -n %{libname}
|
|
|
|
%license COPYING.LESSER
|
2007-03-29 00:18:41 +02:00
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
|
|
|
%files devel
|
2018-03-09 11:12:01 +01:00
|
|
|
%doc AUTHORS ChangeLog NEWS README THANKS TODO
|
|
|
|
%{_infodir}/%{name}.info*
|
|
|
|
%{_mandir}/man1/checkmk.1%{?ext_man}
|
|
|
|
%dir %{_docdir}/%{name}
|
|
|
|
%doc %{_docdir}/%{name}/example
|
|
|
|
%{_bindir}/checkmk
|
2011-12-22 21:35:24 +01:00
|
|
|
%dir %{_datadir}/aclocal
|
2007-03-29 00:18:41 +02:00
|
|
|
%{_datadir}/aclocal/*.m4
|
|
|
|
%{_includedir}/*.h
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
2007-01-16 00:06:52 +01:00
|
|
|
|
2007-03-29 00:18:41 +02:00
|
|
|
%changelog
|