2 Summary: Lightweight unit testing framework for C++
8 URL: https://github.com/unittest-cpp/unittest-cpp
9 Source0: https://github.com/unittest-cpp/unittest-cpp/releases/download/v%{version}/%{name}-%{version}.tar.gz
10 # Source0-md5: b4849a686b78ba198a51a49966b8ddba
11 BuildRequires: autoconf
12 BuildRequires: libtool
15 %{name} is a lightweight unit testing framework for C++. Simplicity,
16 portability, speed, and small footprint are all very important aspects
20 Summary: Object files for development using %{name}
21 Group: Development/Libraries
22 Requires: %{name} = %{version}-%{release}
25 The %{name}-devel package contains the object files necessary for
26 developing test programs.
29 Summary: Static library for %{name}
30 Group: Development/Libraries
31 Requires: %{name} = %{version}-%{release}
34 The %{name}-static package contains the object files necessary for
35 statically linking test programs.
44 %{?with_tests:%{__make} check}
47 rm -rf $RPM_BUILD_ROOT
50 DESTDIR=$RPM_BUILD_ROOT
52 rm -f $RPM_BUILD_ROOT%{_libdir}/libUnitTest++.la
55 rm -rf $RPM_BUILD_ROOT
57 %post -p /sbin/ldconfig
58 %postun -p /sbin/ldconfig
61 %defattr(644,root,root,755)
63 %attr(755,root,root) %{_libdir}/libUnitTest++.so.*.*
64 %attr(755,root,root) %ghost %{_libdir}/libUnitTest++.so.1
67 %defattr(644,root,root,755)
68 %{_includedir}/UnitTest++
69 %attr(755,root,root) %{_libdir}/libUnitTest++.so
70 %{_pkgconfigdir}/UnitTest++.pc
73 %defattr(644,root,root,755)
74 %{_libdir}/libUnitTest++.a