49fc30
%global apiversion 1.14
49fc30
49fc30
Name: cppunit
49fc30
Version: 1.14.0
49fc30
Release: 4%{?dist}
49fc30
49fc30
Summary: C++ unit testing framework
49fc30
# no license in files
49fc30
License: LGPLv2+
49fc30
Url: https://www.freedesktop.org/wiki/Software/cppunit/
49fc30
Source: http://dev-www.libreoffice.org/src/%{name}-%{version}.tar.gz
49fc30
49fc30
BuildRequires: doxygen
49fc30
BuildRequires: graphviz
49fc30
49fc30
%description
49fc30
CppUnit is the C++ port of the famous JUnit framework for unit testing.
49fc30
Test output is in XML for automatic testing and GUI based for supervised 
49fc30
tests.
49fc30
49fc30
%package devel
49fc30
Summary: Libraries and headers for cppunit development
49fc30
Requires: %{name} = %{version}-%{release}
49fc30
49fc30
%description devel
49fc30
This package contains the libraries and headers necessary for developing
49fc30
programs that use cppunit.
49fc30
49fc30
%package doc
49fc30
Summary: HTML formatted API documention for cppunit
49fc30
49fc30
%description doc
49fc30
The cppunit-doc package contains HTML formatted API documention generated by
49fc30
the popular doxygen documentation generation tool.
49fc30
49fc30
%prep
49fc30
%autosetup -p1
49fc30
49fc30
%build
49fc30
%configure --enable-doxygen --disable-static --disable-silent-rules
49fc30
sed -i \
49fc30
    -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
49fc30
    -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
49fc30
    libtool
49fc30
make %{?_smp_mflags}
49fc30
49fc30
%install
49fc30
make install DESTDIR=%{buildroot} INSTALL='install -p'
49fc30
rm %{buildroot}%{_libdir}/*.la
49fc30
# remove double of doc
49fc30
rm -rf %{buildroot}%{_datadir}/doc/cppunit %{buildroot}%{_datadir}/%{name}/html
49fc30
# remove unused cppunit-config
49fc30
rm -f %{buildroot}%{_bindir}/cppunit-config %{buildroot}%{_mandir}/man1/cppunit-config.1* %{buildroot}%{_datadir}/aclocal/cppunit.m4
49fc30
49fc30
# clean up examples
49fc30
rm -rf __dist-examples __dist-examples-dir
49fc30
cp -a examples __dist-examples
49fc30
make -C __dist-examples distclean
49fc30
# Makefile.am files are left as documentation
49fc30
find __dist-examples \( -name Makefile.in -o -name .cvsignore -o -name '*.dsw' -o -name '*.dsp' \) -exec rm {} \;
49fc30
mkdir __dist-examples-dir
49fc30
mv __dist-examples __dist-examples-dir/examples
49fc30
49fc30
%post -p /sbin/ldconfig
49fc30
49fc30
%postun -p /sbin/ldconfig
49fc30
49fc30
%files
49fc30
%doc AUTHORS NEWS README THANKS TODO BUGS doc/FAQ
49fc30
%license COPYING
49fc30
%{_bindir}/DllPlugInTester
49fc30
%{_libdir}/libcppunit-%{apiversion}.so.0
49fc30
%{_libdir}/libcppunit-%{apiversion}.so.0.*
49fc30
49fc30
%files devel
49fc30
%{_includedir}/cppunit
49fc30
%{_libdir}/libcppunit.so
49fc30
%{_libdir}/pkgconfig/cppunit.pc
49fc30
49fc30
%files doc
49fc30
%license COPYING
49fc30
%doc __dist-examples-dir/examples/
49fc30
%doc doc/html
49fc30
49fc30
%changelog
49fc30
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.0-4
49fc30
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
49fc30
49fc30
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.0-3
49fc30
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
49fc30
49fc30
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.0-2
49fc30
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
49fc30
49fc30
* Tue May 02 2017 David Tardon <dtardon@redhat.com> - 1.14.0-1
49fc30
- new upstream release
49fc30
49fc30
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.2-3
49fc30
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
49fc30
49fc30
* Sat Feb 13 2016 David Tardon <dtardon@redhat.com> - 1.13.2-2
49fc30
- drop obsolete cppunit-config
49fc30
49fc30
* Sat Feb 13 2016 David Tardon <dtardon@redhat.com> - 1.13.2-1
49fc30
- switch to new upstream
49fc30
49fc30
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.1-17
49fc30
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
49fc30
49fc30
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.1-16
49fc30
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
49fc30
49fc30
* Sat Apr 11 2015 David Tardon <dtardon@redhat.com> - 1.12.1-15
49fc30
- rebuild for yet another C++ ABI break
49fc30
49fc30
* Fri Feb 20 2015 David Tardon <dtardon@redhat.com> - 1.12.1-14
49fc30
- rebuild for C++ stdlib ABI change in gcc5
49fc30
49fc30
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.1-13
49fc30
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
49fc30
49fc30
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.1-12
49fc30
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
49fc30
49fc30
* Tue May 20 2014 David Tardon <dtardon@redhat.com> - 1.12.1-11
49fc30
- rhbz#925193 add support for aarch64
49fc30
49fc30
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.1-10
49fc30
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
49fc30
49fc30
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.1-9
49fc30
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
49fc30
49fc30
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.1-8
49fc30
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
49fc30
49fc30
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.1-7
49fc30
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
49fc30
49fc30
* Wed Oct 05 2011 Caolán McNamara <caolanm@redhat.com> - 1.12.1-6
49fc30
- add sf#2912630 fix for unused argument warnings
49fc30
49fc30
* Tue Jun 28 2011 Steven M. Parrish <smparrish@gmail.com> - 1.12.1-5
49fc30
- Fix for bug 452340
49fc30
49fc30
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.1-4
49fc30
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
49fc30
49fc30
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.1-3
49fc30
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
49fc30
49fc30
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.1-2
49fc30
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
49fc30
49fc30
* Thu Sep 18 2008 Patrice Dumas <pertusus@free.fr> 1.12.1-1
49fc30
- Update to 1.12.1
49fc30
49fc30
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.12.0-5
49fc30
- Autorebuild for GCC 4.3
49fc30
49fc30
* Mon Dec 17 2007 Patrice Dumas <pertusus@free.fr> 1.12.0-4
49fc30
- remove libdir reference to cppunit-config, should fix multiarch conflict
49fc30
  (#340951)
49fc30
- fix encoding and remove windows related files in examples
49fc30
- keep timestamps
49fc30
49fc30
* Mon Jan 29 2007 Patrice Dumas <pertusus@free.fr> 1.12.0-3
49fc30
- add rightly files to -devel (#224106)
49fc30
- add necessary requires for -devel (#224106)
49fc30
- ship examples
49fc30
49fc30
* Sun Sep 10 2006 Patrice Dumas <pertusus@free.fr> 1.12.0-2
49fc30
- rebuild for FC6
49fc30
49fc30
* Wed Jul  5 2006 Patrice Dumas <pertusus@free.fr> 1.12.0-1
49fc30
- update to 1.12
49fc30
49fc30
* Sun May 21 2006 Patrice Dumas <pertusus@free.fr> 1.11.6-1
49fc30
- update to 1.11.6
49fc30
49fc30
* Wed Dec 21 2005 Patrice Dumas <pertusus@free.fr> 1.11.4-1
49fc30
- update
49fc30
49fc30
* Mon Aug 15 2005 Tom "spot" Callaway <tcallawa@redhat.com> 1.11.0-2
49fc30
- various cleanups
49fc30
49fc30
* Mon Jul  4 2005 Patrice Dumas <pertusus@free.fr> 1.11.0-1
49fc30
- update using the fedora template 
49fc30
 
49fc30
* Sat Apr 14 2001 Bastiaan Bakker <bastiaan.bakker@lifeline.nl>
49fc30
- Initial release