blob: 91829b20fb3d77fbc1838e232335fad9eed89623 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
Name: check
Summary: A unit test framework for C
Version: 0.9.4
Release: 1
Group: Development/Tools
License: LGPLv2+
URL: http://check.sourceforge.net/
Source0: http://download.sourceforge.net/check/%{name}-%{version}.tar.gz
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
BuildRequires: texinfo
%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.
%package devel
Summary: Libraries and headers for developing programs with check
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: pkgconfig
%description devel
Libraries and headers for developing programs with check
%prep
%setup -q -n %{name}-%{version}
%build
./autogen.sh
%configure --enable-plain-docdir
make %{?jobs:-j%jobs}
%install
rm -rf %{buildroot}
%make_install
rm -rf $RPM_BUILD_ROOT%{_infodir}/dir
%clean
rm -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc COPYING.LESSER README
%{_libdir}/libcheck.so.*
%doc %{_infodir}/check*
%doc /usr/share/doc/check
%files devel
%defattr(-,root,root,-)
%{_includedir}/check.h
%{_libdir}/libcheck.so
%{_libdir}/pkgconfig/check.pc
%{_datadir}/aclocal/check.m4
|