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