Registration is now invite-only. Any user can make an invite, you need to create it here and give resulting link to someone to register.

About project

CppUnit is the C++ port of the famous JUnit framework for unit
testing. Test output is in XML for automatic testing and GUI
based for supervised tests.

Last commit

avatar
fedya has added fcb0ea1d93
1.15.1

Files in

100644 | 82 lines (64 sloc) | 2.17 KB
%define major 1
%define api 1.15
%define libname %mklibname cppunit %{api} %{major}
%define devname %mklibname cppunit -d

Summary:	C++ port of JUnit Testing Framework
Name:		cppunit
Version:	1.15.1
Release:	1
License:	LGPLv2+
Group:		System/Libraries
Url:		http://cppunit.sourceforge.net/
Source0:	http://dev-www.libreoffice.org/src/%{name}-%{version}.tar.gz
Patch0:		cppunit-1.11.4-missing-include.patch

%description
CppUnit is the C++ port of the famous JUnit framework for unit testing. Test
output is in XML for automatic testing and GUI based for supervised tests.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	C++ port of JUnit Testing Framework
Group:		System/Libraries

%description -n %{libname}
CppUnit is the C++ port of the famous JUnit framework for unit testing. Test
output is in XML for automatic testing and GUI based for supervised tests.

%files -n %{libname}
%{_libdir}/libcppunit-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}
Provides:	lib%{name}%{api}-devel = %{EVRD}

%description -n %{devname}
CppUnit is the C++ port of the famous JUnit framework for unit testing. Test
output is in XML for automatic testing and GUI based for supervised tests.

%files -n %{devname}
%doc AUTHORS NEWS README THANKS ChangeLog
%{_bindir}/DllPlugInTester
%{_libdir}/*.so
%{_includedir}/cppunit
%{_libdir}/pkgconfig/cppunit.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%configure \
	--enable-shared \
	--disable-static \
	--disable-doxygen \
	--disable-dot \
	--disable-html-docs \
	--disable-latex-docs

# <oden> somehow LIBADD_DL is ignored, is that an intentional change?
perl -pi -e "s|^LIBS =.*|LIBS = -lm -ldl|g" src/cppunit/Makefile

%make

%install
%makeinstall_std

#(tpg) do not duplicate docs
rm -rf %{buildroot}%{_datadir}/doc/cppunit

# clean up
rm -rf %{buildroot}%{_datadir}/cppunit
rm -f %{buildroot}%{_libdir}/*.*a