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