Search
j0ke.net Open Build Service
>
Projects
>
hardware
:
dell
>
cppunit-rhel
> cppunit.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File cppunit.spec of Package cppunit-rhel
Name: cppunit Version: 1.12.1 Release: 1%{?dist} Summary: C++ unit testing framework # no license in files License: LGPLv2+ Group: Development/Libraries Url: http://cppunit.sourceforge.net/ Source: http://downloads.sourceforge.net/cppunit/cppunit-%{version}.tar.gz Patch0: cppunit-1.12.0-nolibdir.patch BuildRequires: gcc-c++ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %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 devel Summary: Libraries and headers for cppunit development Group: Development/Libraries Requires: pkgconfig, automake Requires: %{name} = %{version}-%{release} %description devel This package contains the libraries and headers necessary for developing programs that use cppunit. %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 %patch0 -p1 -b .nolibdir for file in THANKS ChangeLog NEWS; do iconv -f latin1 -t utf8 < $file > ${file}.utf8 touch -c -r $file ${file}.utf8 mv ${file}.utf8 $file done %build export LDFLAGS=-ldl %configure --disable-doxygen --disable-static make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' rm $RPM_BUILD_ROOT%{_libdir}/*.la # remove double of doc rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/cppunit # ensure that timestamp of cppunit-config is the same for all arches touch -c -r cppunit-config.in.nolibdir $RPM_BUILD_ROOT%{_bindir}/cppunit-config # clean up examples rm -rf __dist-examples __dist-examples-dir cp -a examples __dist-examples make -C __dist-examples distclean # Makefile.am files are left as documentation find __dist-examples \( -name Makefile.in -o -name .cvsignore -o -name '*.dsw' -o -name '*.dsp' \) -exec rm {} \; chmod a-x __dist-examples/qt/run.bat mkdir __dist-examples-dir mv __dist-examples __dist-examples-dir/examples %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc AUTHORS COPYING NEWS README THANKS ChangeLog TODO BUGS doc/FAQ %{_bindir}/DllPlugInTester %{_libdir}/libcppunit*.so.* %files devel %defattr(-,root,root,-) %{_bindir}/cppunit-config %{_includedir}/cppunit %{_libdir}/libcppunit.so %{_datadir}/aclocal/cppunit.m4 %{_mandir}/man1/cppunit-config.1* %{_libdir}/pkgconfig/cppunit.pc %files doc #%defattr(-,root,root,-) #%doc __dist-examples-dir/examples/ #%doc doc/html %changelog * Thu Sep 18 2008 Patrice Dumas <pertusus@free.fr> 1.12.1-1 - Update to 1.12.1 * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.12.0-5 - Autorebuild for GCC 4.3 * Mon Dec 17 2007 Patrice Dumas <pertusus@free.fr> 1.12.0-4 - remove libdir reference to cppunit-config, should fix multiarch conflict (#340951) - fix encoding and remove windows related files in examples - keep timestamps * Mon Jan 29 2007 Patrice Dumas <pertusus@free.fr> 1.12.0-3 - add rightly files to -devel (#224106) - add necessary requires for -devel (#224106) - ship examples * Sun Sep 10 2006 Patrice Dumas <pertusus@free.fr> 1.12.0-2 - rebuild for FC6 * Wed Jul 5 2006 Patrice Dumas <pertusus@free.fr> 1.12.0-1 - update to 1.12 * Sun May 21 2006 Patrice Dumas <pertusus@free.fr> 1.11.6-1 - update to 1.11.6 * Wed Dec 21 2005 Patrice Dumas <pertusus@free.fr> 1.11.4-1 - update * Mon Aug 15 2005 Tom "spot" Callaway <tcallawa@redhat.com> 1.11.0-2 - various cleanups * Mon Jul 4 2005 Patrice Dumas <pertusus@free.fr> 1.11.0-1 - update using the fedora template * Sat Apr 14 2001 Bastiaan Bakker <bastiaan.bakker@lifeline.nl> - Initial release