]>
Commit | Line | Data |
---|---|---|
ffbabb0d | 1 | Summary: Automated testing framework for C |
dce1a864 | 2 | Summary(pl.UTF-8): Szkielet automatycznych testów dla C |
5449fbd5 ER |
3 | Name: CUnit |
4 | Version: 2.0 | |
5 | Release: 0.5 | |
6 | License: LGPL | |
7 | Group: Development/Tools | |
8 | Source0: http://dl.sourceforge.net/cunit/%{name}-%{version}-2.tar.gz | |
9 | # Source0-md5: d493ba42f06bf9156225f5026ff65f86 | |
10 | Patch0: %{name}-curses.patch | |
11 | Patch1: %{name}-libs.patch | |
12 | Patch2: %{name}-FHS.patch | |
13 | URL: http://cunit.sourceforge.net/ | |
14 | BuildRequires: autoconf | |
15 | BuildRequires: automake | |
16 | BuildRequires: ncurses-devel | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | CUnit is a lightweight system for writing, administering, and running | |
21 | unit tests in C. It provides C programmers a basic testing | |
22 | functionality with a flexible variety of user interfaces. | |
23 | ||
24 | CUnit is built as a static library which is linked with the user's | |
25 | testing code. It uses a simple framework for building test structures, | |
26 | and provides a rich set of assertions for testing common data types. | |
27 | In addition, several different interfaces are provided for running | |
28 | tests and reporting results. | |
29 | ||
dce1a864 | 30 | %description -l pl.UTF-8 |
ffbabb0d | 31 | CUnit to lekki system do pisania, administrowania i uruchamiania |
dce1a864 JR |
32 | testów jednostkowych w C. Udostępnia programistom C podstawową |
33 | funkcjonalność testującą z elastycznym wyborem interfejsów | |
34 | użytkownika. | |
ffbabb0d | 35 | |
dce1a864 JR |
36 | CUnit jest budowany jako biblioteka statyczna, którą linkuje się z |
37 | kodem testowym użytkownika. Używa prostego szkieletu do tworzenia | |
38 | struktur testowych i udostępnia bogaty zbiór zapewnień (assertions) | |
39 | do testowania popularnych typów danych. | |
ffbabb0d | 40 | |
5449fbd5 ER |
41 | %prep |
42 | %setup -q -n %{name}-%{version}-2 | |
43 | %patch0 -p1 | |
44 | %patch1 -p1 | |
45 | %patch2 -p1 | |
46 | ||
47 | %build | |
48 | %{__aclocal} | |
49 | %{__autoconf} | |
50 | %{__autoheader} | |
51 | %{__automake} | |
52 | %configure \ | |
53 | %{?debug:--enable-debug} \ | |
54 | --enable-curses | |
55 | %{__make} | |
56 | ||
57 | %install | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %{__make} install \ | |
61 | DESTDIR=$RPM_BUILD_ROOT | |
62 | ||
63 | rm -rf html headers | |
64 | # can't package %doc %{_docdir}/%{name}-%{version} as rpm fails: | |
65 | # error: magic_file(ms, "/home/builder/tmp/cunit-2.0-root-builder/usr/share/doc/cunit-2.0/headers") | |
66 | # failed: mode 040755 cannot open `/home/builder/tmp/cunit-2.0-root-builder/usr/share/doc/cunit-2.0/headers' (No such file or directory) | |
67 | # rpmbuild: rpmfc.c:1564: rpmfcClassify: Assertion `ftype != ((void *)0)' failed. | |
68 | mv -f $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/{html,headers} . | |
69 | ||
70 | %clean | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
73 | %files | |
74 | %defattr(644,root,root,755) | |
75 | %doc AUTHORS ChangeLog NEWS README TODO | |
76 | %doc html headers | |
77 | %{_includedir}/CUnit | |
78 | # maybe attempt to make .so too? | |
79 | %{_libdir}/libcunit.a | |
80 | %{_datadir}/CUnit | |
81 | ||
82 | # dunno, worth to package these at all? | |
83 | %dir %{_libdir}/CUnit | |
84 | %dir %{_libdir}/CUnit/Examples | |
85 | %dir %{_libdir}/CUnit/Examples/Automated | |
86 | %attr(755,root,root) %{_libdir}/CUnit/Examples/Automated/AutomatedTest | |
87 | %{_libdir}/CUnit/Examples/Automated/README | |
88 | ||
89 | %dir %{_libdir}/CUnit/Examples/Basic | |
90 | %attr(755,root,root) %{_libdir}/CUnit/Examples/Basic/BasicTest | |
91 | %{_libdir}/CUnit/Examples/Basic/README | |
92 | ||
93 | %dir %{_libdir}/CUnit/Examples/Console | |
94 | %attr(755,root,root) %{_libdir}/CUnit/Examples/Console/ConsoleTest | |
95 | %{_libdir}/CUnit/Examples/Console/README | |
96 | ||
97 | %dir %{_libdir}/CUnit/Examples/Curses | |
98 | %attr(755,root,root) %{_libdir}/CUnit/Examples/Curses/CursesTest | |
99 | %{_libdir}/CUnit/Examples/Curses/README | |
100 | ||
101 | %dir %{_libdir}/CUnit/Test | |
102 | %attr(755,root,root) %{_libdir}/CUnit/Test/test_cunit | |
103 | ||
104 | %{_mandir}/man3/CUnit.3* |