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