Name: cppunit Version: 1.12.1 Release: 1 Summary: C++ unit testing framework # no license in files License: LGPLv2+ Group: Development/Libraries URL: http://cppunit.sourceforge.net/ Source0: http://downloads.sourceforge.net/cppunit/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: doxygen, make %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. The library is available as 32-bit and 64-bit. %package devel Summary: Libraries and headers for cppunit development Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: pkg-config %description devel This package contains the libraries and headers necessary for developing programs that use cppunit. If you are compiling a 32-bit program, no special compiler options are needed. If you are compiling a 64-bit program, you have to compile and link your application with "xlC -q64" or "g++ -maix64". %package doc Summary: HTML formatted API documention for cppunit Group: Documentation %description doc The cppunit-doc package contains HTML formatted API documention generated by the popular doxygen documentation generation tool. %prep %setup -q %build # setup environment for 32-bit and 64-bit builds export AR="ar -X32_64" export NM="nm -X32_64" # first build the 64-bit version export CC="xlc -q64" export CXX="xlC -q64" ./configure \ --prefix=%{_prefix} \ --mandir=%{_mandir} \ --enable-shared --disable-static gmake %{?_smp_mflags} cp src/%{name}/.libs/lib%{name}-1.12.so.1 . gmake distclean # now build the 32-bit version export CC="xlc" export CXX="xlC" ./configure \ --prefix=%{_prefix} \ --mandir=%{_mandir} \ --enable-shared --disable-static gmake %{?_smp_mflags} # add the 64-bit shared objects to the shared library containing already the # 32-bit shared objects ${AR} -q src/%{name}/.libs/lib%{name}-1.12.a ./lib%{name}-1.12.so.1 %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} gmake DESTDIR=${RPM_BUILD_ROOT} install /usr/bin/strip ${RPM_BUILD_ROOT}%{_bindir}/* || : ( cd ${RPM_BUILD_ROOT} for dir in bin include lib do mkdir -p usr/${dir} cd usr/${dir} ln -sf ../..%{_prefix}/${dir}/* . cd - done ) %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system,-) %doc AUTHORS COPYING NEWS README THANKS ChangeLog TODO BUGS doc/FAQ %{_bindir}/DllPlugInTester %{_libdir}/*.a /usr/bin/DllPlugInTester %files devel %defattr(-,root,system,-) %{_bindir}/cppunit-config %{_includedir}/* %{_libdir}/*.la %{_libdir}/pkgconfig/cppunit.pc %{_mandir}/man1/* %{_datadir}/aclocal/%{name}.m4 /usr/bin/cppunit-config /usr/include/* %files doc %defattr(-,root,system,-) %doc __dist-examples-dir/examples/ %doc doc/html %changelog * Tue Oct 26 2010 Michael Perzl - 1.12.1-1 - first version for AIX V5.1 and higher