Sophie

Sophie

distrib > Mageia > 3 > i586 > by-pkgid > fc8572b9cbb4e5961037f2c75e23e6c7 > files > 4

cppunit1_12-1.12.1-10.mga3.src.rpm

%define major 1
%define api 1.12
%define libname %mklibname cppunit %{api}_%{major}
%define develname %mklibname cppunit1_12 -d
%define testrunnermajor 1
%define testrunnerlibname %mklibname qttestrunner %testrunnermajor

Summary:	C++ port of JUnit Testing Framework
Name:		cppunit1_12
Version:	1.12.1
Release:	%mkrel 10
License:	LGPLv2+
Group:		System/Libraries
URL:		http://cppunit.sourceforge.net/
Source0:	http://downloads.sourceforge.net/cppunit/cppunit-%{version}.tar.bz2
Patch:		cppunit-1.11.4-missing-include.patch
Patch1:     cppunit-1.12.1-qt3-gcc43.patch
BuildRequires:	doxygen
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

%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.

%if ! %with qt3
%package -n %{testrunnerlibname}
Summary:	QT Testrunner for %{name}
Group:		System/Libraries

%description -n %{testrunnerlibname}
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.
%endif

%package -n %{develname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Provides:	lib%{name}-devel = %{version}-%{release}
Provides:	lib%{name}%{api}-devel = %{version}-%{release}
Obsoletes:	%{mklibname cppunit 1.12_0 -d}

%description -n %{develname}
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.

%prep
%setup -q -n cppunit-%version
%patch -p1

%build
%configure2_5x --disable-static \
    --enable-doxygen 

# <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
rm -f %{buildroot}%{_libdir}/*.la

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

# clean up
rm -rf %{buildroot}%{_datadir}/cppunit
%multiarch_binaries %{buildroot}%{_bindir}/cppunit-config

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

%files -n %{develname}
%doc AUTHORS NEWS README THANKS ChangeLog
%{_bindir}/cppunit-config
%{multiarch_bindir}/cppunit-config
%{_bindir}/DllPlugInTester
%{_libdir}/*.so
%{_includedir}/cppunit
%{_datadir}/aclocal/cppunit.m4
%{_mandir}/man1/*
%{_libdir}/pkgconfig/cppunit.pc


%changelog

* Mon Jan 07 2013 tv <tv> 1.12.1-10.mga3
+ Revision: 341348
- branch for LO
- branch for LO

  + fwang <fwang>
    - drop static build

* Wed Jan 12 2011 dmorgan <dmorgan> 1.12.1-8.mga1
+ Revision: 7623
- Do not build the qt3 gui
- imported package cppunit