1 Summary: Provide C programmers basic testing functionality
7 Source0: https://linphone.org/releases/sources/bcunit/%{name}-%{version}.tar.gz
8 # Source0-md5: 3c197563b790131da8ad1be6a23f9c91
10 URL: https://linphone.org/
12 BuildRequires: ncurses-devel
13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 BCUnit is a unit testing framework for C, derived from CUnit. (B)CUnit
17 provides various interfaces to the framework, some of which are
18 platform dependent (e.g. curses on *nix). The framework complies with
19 the conventional structure of test cases bundled into suites which are
20 registered with the framework for running.
23 Summary: Header files and develpment documentation for bcunit
24 Group: Development/Libraries
25 Requires: %{name} = %{epoch}:%{version}-%{release}
28 Header files and develpment documentation for bcunit.
31 Summary: Static bcunit library
32 Group: Development/Libraries
33 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
36 Static bcunit library.
39 %setup -q -n BCunit-%{version}-Source
47 -DENABLE_AUTOMATED=ON \
51 -DENABLE_EXAMPLES=ON \
57 rm -rf $RPM_BUILD_ROOT
59 %{__make} -C build install \
60 DESTDIR=$RPM_BUILD_ROOT
63 rm -rf $RPM_BUILD_ROOT
65 %post -p /sbin/ldconfig
66 %postun -p /sbin/ldconfig
69 %defattr(644,root,root,755)
70 %doc AUTHORS ChangeLog NEWS README TODO
71 %attr(755,root,root) %{_libdir}/libbcunit.so.*.*
72 %attr(755,root,root) %ghost %{_libdir}/libbcunit.so.1
75 %defattr(644,root,root,755)
76 %attr(755,root,root) %{_libdir}/libbcunit.so
78 %{_pkgconfigdir}/bcunit.pc