]>
Commit | Line | Data |
---|---|---|
0044121d | 1 | Summary: Check - unit testing framework for C |
39525af9 | 2 | Summary(pl.UTF-8): Check - szkielet testów jednostkowych dla C |
0044121d | 3 | Name: check |
a3ffaac2 | 4 | Version: 0.9.5 |
f3f03e56 | 5 | Release: 1 |
0044121d JB |
6 | License: LGPL v2.1+ |
7 | Group: Development/Libraries | |
8 | Source0: http://dl.sourceforge.net/check/%{name}-%{version}.tar.gz | |
a3ffaac2 | 9 | # Source0-md5: 30143c7974b547a12a7da47809a90951 |
0044121d | 10 | URL: http://check.sourceforge.net/ |
f3f03e56 SS |
11 | BuildRequires: libtool |
12 | BuildRequires: texinfo >= 4.2 | |
78e36e09 | 13 | Requires(post,postun): /sbin/ldconfig |
0044121d JB |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
15 | ||
16 | %description | |
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. | |
23 | ||
ff212a42 JR |
24 | %description -l pl.UTF-8 |
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. | |
0044121d | 32 | |
1b5e9f8c JB |
33 | %package static |
34 | Summary: Static check library | |
35 | Summary(pl.UTF-8): Biblioteka statyczna check | |
36 | Group: Development/Libraries | |
37 | Requires: %{name} = %{version}-%{release} | |
38 | ||
39 | %description static | |
40 | Static check library. | |
41 | ||
42 | %description static -l pl.UTF-8 | |
43 | Biblioteka statyczna check. | |
44 | ||
0044121d JB |
45 | %prep |
46 | %setup -q | |
47 | ||
48 | %build | |
49 | %configure2_13 | |
996df3b4 | 50 | %{__make} \ |
78e36e09 | 51 | CFLAGS="%{rpmcflags} -Wall -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -fPIC" |
0044121d JB |
52 | |
53 | %install | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %{__make} install \ | |
1bc5c11c SS |
57 | exampledir=%{_examplesdir}/%{name}-%{version} \ |
58 | examplesrcdir=%{_examplesdir}/%{name}-%{version}/src \ | |
59 | exampletestsdir=%{_examplesdir}/%{name}-%{version}/tests \ | |
0044121d JB |
60 | DESTDIR=$RPM_BUILD_ROOT |
61 | ||
78e36e09 | 62 | rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name} |
f3f03e56 SS |
63 | rm -f $RPM_BUILD_ROOT%{_libdir}/libcheck.la |
64 | ||
0044121d JB |
65 | %clean |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
f3f03e56 | 68 | %post |
78e36e09 | 69 | /sbin/ldconfig |
f3f03e56 SS |
70 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 |
71 | ||
72 | %postun | |
78e36e09 | 73 | /sbin/ldconfig |
f3f03e56 SS |
74 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 |
75 | ||
0044121d JB |
76 | %files |
77 | %defattr(644,root,root,755) | |
2a5d9e97 | 78 | %doc AUTHORS ChangeLog* NEWS README SVNChangeLog THANKS TODO |
78e36e09 JB |
79 | %attr(755,root,root) %{_libdir}/libcheck.so.*.*.* |
80 | %attr(755,root,root) %{_libdir}/libcheck.so | |
78e36e09 JB |
81 | %{_includedir}/check.h |
82 | %{_aclocaldir}/check.m4 | |
f3f03e56 | 83 | %{_pkgconfigdir}/check.pc |
f3f03e56 | 84 | %{_infodir}/check.info* |
78e36e09 | 85 | %{_examplesdir}/%{name}-%{version} |
1b5e9f8c JB |
86 | |
87 | %files static | |
88 | %defattr(644,root,root,755) | |
89 | %{_libdir}/libcheck.a |