1 Summary: Check - unit testing framework for C
2 Summary(pl): Check - szkielet testów jednostkowych dla C
7 Group: Development/Libraries
8 Source0: http://dl.sourceforge.net/check/%{name}-%{version}.tar.gz
9 # Source0-md5: 30143c7974b547a12a7da47809a90951
10 URL: http://check.sourceforge.net/
11 BuildRequires: libtool
12 BuildRequires: texinfo >= 4.2
13 Requires(post,postun): /sbin/ldconfig
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 Check is a unit test framework for C. It features a simple interface
18 for defining unit tests, putting little in the way of the developer.
19 Tests are run in a separate address space, so Check can catch both
20 assertion failures and code errors that cause segmentation faults or
21 other signals. The output from unit tests can be used within source
22 code editors and IDEs.
25 Check to szkielet testów jednostkowych dla C. Ma prosty interfejs do
26 definiowania testów jednostkowych, nie przeszkadzaj±cy zbytnio
27 programi¶cie. Testy s± uruchamiane w wydzielonej przestrzeni
28 adresowej, dziêki czemu Check mo¿e wy³apaæ zarówno niepowodzenia
29 zapewnieñ (assert), jak i b³êdy w kodzie powoduj±ce naruszenie
30 ochrony pamiêci lub inne sygna³y. Wyj¶cie z testów jednostkowych mo¿e
31 byæ u¿ywane z poziomu edytorów kodu ¼ród³owego i IDE.
39 CFLAGS="%{rpmcflags} -Wall -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -fPIC"
42 rm -rf $RPM_BUILD_ROOT
45 exampledir=%{_examplesdir}/%{name}-%{version} \
46 examplesrcdir=%{_examplesdir}/%{name}-%{version}/src \
47 exampletestsdir=%{_examplesdir}/%{name}-%{version}/tests \
48 DESTDIR=$RPM_BUILD_ROOT
50 rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
51 rm -f $RPM_BUILD_ROOT%{_libdir}/libcheck.la
54 rm -rf $RPM_BUILD_ROOT
58 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
62 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
65 %defattr(644,root,root,755)
66 %doc AUTHORS ChangeLog* NEWS README SVNChangeLog
67 %attr(755,root,root) %{_libdir}/libcheck.so.*.*.*
68 %attr(755,root,root) %{_libdir}/libcheck.so
71 %{_includedir}/check.h
72 %{_aclocaldir}/check.m4
73 %{_pkgconfigdir}/check.pc
74 %{_infodir}/check.info*
75 %{_examplesdir}/%{name}-%{version}