9fe358
Name: cppunit
9fe358
Version: 1.12.1
9fe358
Release: 11%{?dist}
9fe358
9fe358
Summary: C++ unit testing framework
9fe358
# no license in files
9fe358
License: LGPLv2+
9fe358
Group: Development/Libraries
9fe358
Url: http://cppunit.sourceforge.net/
9fe358
Source: http://downloads.sourceforge.net/cppunit/cppunit-%{version}.tar.gz
9fe358
Patch0: cppunit-1.12.0-nolibdir.patch
9fe358
Patch1: cppunit-msg.patch
9fe358
#https://sourceforge.net/tracker/?func=detail&aid=2912630&group_id=11795&atid=311795
9fe358
Patch2: cppunit-warnings-sf2912630.patch
9fe358
9fe358
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
9fe358
BuildRequires: doxygen, graphviz
9fe358
9fe358
%description
9fe358
CppUnit is the C++ port of the famous JUnit framework for unit testing.
9fe358
Test output is in XML for automatic testing and GUI based for supervised 
9fe358
tests.
9fe358
9fe358
%package devel
9fe358
Summary: Libraries and headers for cppunit development
9fe358
Group: Development/Libraries
9fe358
Requires: pkgconfig, automake
9fe358
Requires: %{name} = %{version}-%{release}
9fe358
9fe358
%description devel
9fe358
This package contains the libraries and headers necessary for developing
9fe358
programs that use cppunit.
9fe358
9fe358
%package doc
9fe358
Summary: HTML formatted API documention for cppunit
9fe358
Group: Documentation
9fe358
9fe358
%description doc
9fe358
The cppunit-doc package contains HTML formatted API documention generated by
9fe358
the popular doxygen documentation generation tool.
9fe358
9fe358
%prep
9fe358
%setup -q
9fe358
%patch0 -p1 -b .nolibdir
9fe358
for file in THANKS ChangeLog NEWS; do
9fe358
   iconv -f latin1 -t utf8 < $file > ${file}.utf8
9fe358
   touch -c -r $file ${file}.utf8
9fe358
   mv ${file}.utf8 $file
9fe358
done
9fe358
%patch1 -p1 -b .nomsg
9fe358
%patch2 -p1 -b .warnings-sf2912630
9fe358
9fe358
%build
9fe358
export LDFLAGS=-ldl
9fe358
%configure --enable-doxygen --disable-static 
9fe358
make %{?_smp_mflags}
9fe358
9fe358
%install
9fe358
rm -rf $RPM_BUILD_ROOT
9fe358
make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
9fe358
rm $RPM_BUILD_ROOT%{_libdir}/*.la
9fe358
# remove double of doc
9fe358
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/cppunit
9fe358
9fe358
# ensure that timestamp of cppunit-config is the same for all arches
9fe358
touch -c -r cppunit-config.in.nolibdir $RPM_BUILD_ROOT%{_bindir}/cppunit-config
9fe358
9fe358
# clean up examples
9fe358
rm -rf __dist-examples __dist-examples-dir
9fe358
cp -a examples __dist-examples
9fe358
make -C __dist-examples distclean
9fe358
# Makefile.am files are left as documentation
9fe358
find __dist-examples \( -name Makefile.in -o -name .cvsignore -o -name '*.dsw' -o -name '*.dsp' \) -exec rm {} \;
9fe358
chmod a-x __dist-examples/qt/run.bat
9fe358
mkdir __dist-examples-dir
9fe358
mv __dist-examples __dist-examples-dir/examples
9fe358
9fe358
%clean
9fe358
rm -rf $RPM_BUILD_ROOT
9fe358
9fe358
%post -p /sbin/ldconfig
9fe358
9fe358
%postun -p /sbin/ldconfig
9fe358
9fe358
%files
9fe358
%defattr(-,root,root,-)
9fe358
%doc AUTHORS COPYING NEWS README THANKS ChangeLog TODO BUGS doc/FAQ
9fe358
%{_bindir}/DllPlugInTester
9fe358
%{_libdir}/libcppunit*.so.*
9fe358
9fe358
%files devel
9fe358
%defattr(-,root,root,-)
9fe358
%{_bindir}/cppunit-config
9fe358
%{_includedir}/cppunit
9fe358
%{_libdir}/libcppunit.so
9fe358
%{_datadir}/aclocal/cppunit.m4
9fe358
%{_mandir}/man1/cppunit-config.1*
9fe358
%{_libdir}/pkgconfig/cppunit.pc
9fe358
9fe358
%files doc
9fe358
%defattr(-,root,root,-)
9fe358
%doc __dist-examples-dir/examples/
9fe358
%doc doc/html
9fe358
9fe358
%changelog
9fe358
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.12.1-11
9fe358
- Mass rebuild 2014-01-24
9fe358
9fe358
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.12.1-10
9fe358
- Mass rebuild 2013-12-27
9fe358
9fe358
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.1-9
9fe358
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
9fe358
9fe358
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.1-8
9fe358
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
9fe358
9fe358
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.1-7
9fe358
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
9fe358
9fe358
* Wed Oct 05 2011 Caolán McNamara <caolanm@redhat.com> - 1.12.1-6
9fe358
- add sf#2912630 fix for unused argument warnings
9fe358
9fe358
* Tue Jun 28 2011 Steven M. Parrish <smparrish@gmail.com> - 1.12.1-5
9fe358
- Fix for bug 452340
9fe358
9fe358
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.1-4
9fe358
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
9fe358
9fe358
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.1-3
9fe358
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
9fe358
9fe358
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.1-2
9fe358
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
9fe358
9fe358
* Thu Sep 18 2008 Patrice Dumas <pertusus@free.fr> 1.12.1-1
9fe358
- Update to 1.12.1
9fe358
9fe358
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.12.0-5
9fe358
- Autorebuild for GCC 4.3
9fe358
9fe358
* Mon Dec 17 2007 Patrice Dumas <pertusus@free.fr> 1.12.0-4
9fe358
- remove libdir reference to cppunit-config, should fix multiarch conflict
9fe358
  (#340951)
9fe358
- fix encoding and remove windows related files in examples
9fe358
- keep timestamps
9fe358
9fe358
* Mon Jan 29 2007 Patrice Dumas <pertusus@free.fr> 1.12.0-3
9fe358
- add rightly files to -devel (#224106)
9fe358
- add necessary requires for -devel (#224106)
9fe358
- ship examples
9fe358
9fe358
* Sun Sep 10 2006 Patrice Dumas <pertusus@free.fr> 1.12.0-2
9fe358
- rebuild for FC6
9fe358
9fe358
* Wed Jul  5 2006 Patrice Dumas <pertusus@free.fr> 1.12.0-1
9fe358
- update to 1.12
9fe358
9fe358
* Sun May 21 2006 Patrice Dumas <pertusus@free.fr> 1.11.6-1
9fe358
- update to 1.11.6
9fe358
9fe358
* Wed Dec 21 2005 Patrice Dumas <pertusus@free.fr> 1.11.4-1
9fe358
- update
9fe358
9fe358
* Mon Aug 15 2005 Tom "spot" Callaway <tcallawa@redhat.com> 1.11.0-2
9fe358
- various cleanups
9fe358
9fe358
* Mon Jul  4 2005 Patrice Dumas <pertusus@free.fr> 1.11.0-1
9fe358
- update using the fedora template 
9fe358
 
9fe358
* Sat Apr 14 2001 Bastiaan Bakker <bastiaan.bakker@lifeline.nl>
9fe358
- Initial release