]>
Commit | Line | Data |
---|---|---|
454cf4e2 JB |
1 | Summary: Fork of Google's cmockery unit testing framework |
2 | Summary(pl.UTF-8): Odgałęzienie szkieletu testów jednostkowych cmockery Google'a | |
3 | Name: cmocka | |
2854ece6 | 4 | Version: 1.1.5 |
dad5c2ae | 5 | Release: 1 |
454cf4e2 JB |
6 | License: Apache v2.0 |
7 | Group: Libraries | |
27e3a7c4 | 8 | Source0: https://cmocka.org/files/1.1/%{name}-%{version}.tar.xz |
2854ece6 | 9 | # Source0-md5: 91f95cd5db88b9b120d191b18d367193 |
27e3a7c4 | 10 | URL: https://cmocka.org/ |
2854ece6 | 11 | BuildRequires: cmake >= 3.5.0 |
454cf4e2 JB |
12 | BuildRequires: tar >= 1:1.22 |
13 | BuildRequires: xz | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %description | |
17 | cmocka is a fork for Google's cmockery unit testing framework | |
27e3a7c4 | 18 | (<https://github.com/google/cmockery>) to fix bugs and support it in |
454cf4e2 JB |
19 | future. |
20 | ||
21 | %description -l pl.UTF-8 | |
22 | cmocka to odgałęzienie szkieletu testów jednostkowych cmockery | |
27e3a7c4 | 23 | Google'a (<https://github.com/google/cmockery>) mające na celu |
454cf4e2 JB |
24 | poprawienie błędów i wsparcie w przyszłości. |
25 | ||
26 | %package devel | |
27 | Summary: Development files for cmocka framework | |
28 | Summary(pl.UTF-8): Pliki programistyczne szkieletu cmocka | |
29 | Group: Development/Libraries | |
30 | Requires: %{name} = %{version}-%{release} | |
31 | ||
32 | %description devel | |
33 | Development files for cmocka framework. | |
34 | ||
35 | %description devel -l pl.UTF-8 | |
36 | Pliki programistyczne szkieletu cmocka. | |
37 | ||
38 | %prep | |
39 | %setup -q | |
40 | ||
41 | %build | |
42 | install -d build | |
43 | cd build | |
44 | %cmake .. | |
45 | %{__make} | |
46 | ||
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %{__make} -C build install \ | |
51 | DESTDIR=$RPM_BUILD_ROOT | |
52 | ||
53 | %clean | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %post -p /sbin/ldconfig | |
57 | %postun -p /sbin/ldconfig | |
58 | ||
59 | %files | |
60 | %defattr(644,root,root,755) | |
0e86d6e3 | 61 | %doc AUTHORS ChangeLog README.md |
454cf4e2 JB |
62 | %attr(755,root,root) %{_libdir}/libcmocka.so.*.*.* |
63 | %attr(755,root,root) %ghost %{_libdir}/libcmocka.so.0 | |
64 | ||
65 | %files devel | |
66 | %defattr(644,root,root,755) | |
67 | %attr(755,root,root) %{_libdir}/libcmocka.so | |
68 | %{_includedir}/cmocka.h | |
8236b90d | 69 | %{_includedir}/cmocka_pbc.h |
454cf4e2 | 70 | %{_pkgconfigdir}/cmocka.pc |
8236b90d | 71 | %{_libdir}/cmake/cmocka |