2019-12-21 10:05:22 +00:00
|
|
|
%global apiversion 1.15
|
2016-02-13 08:18:22 +00:00
|
|
|
|
2005-09-11 14:30:04 +00:00
|
|
|
Name: cppunit
|
2019-12-25 09:12:54 +00:00
|
|
|
Version: 1.15.1
|
2022-11-21 20:03:21 +00:00
|
|
|
Release: %autorelease
|
2005-09-11 14:30:04 +00:00
|
|
|
|
|
|
|
Summary: C++ unit testing framework
|
2007-10-21 10:13:31 +00:00
|
|
|
# no license in files
|
2022-11-21 20:03:19 +00:00
|
|
|
License: LGPL-2.1-or-later
|
2016-02-13 07:43:51 +00:00
|
|
|
Url: https://www.freedesktop.org/wiki/Software/cppunit/
|
2017-05-02 19:55:25 +00:00
|
|
|
Source: http://dev-www.libreoffice.org/src/%{name}-%{version}.tar.gz
|
2005-09-11 14:30:04 +00:00
|
|
|
|
2023-08-24 06:51:48 +00:00
|
|
|
# Backport patch to run tests in deterministic order
|
|
|
|
# https://gerrit.libreoffice.org/c/cppunit/+/123963
|
|
|
|
Patch: run-tests-in-deterministic-order.patch
|
|
|
|
|
2016-02-13 07:56:36 +00:00
|
|
|
BuildRequires: doxygen
|
2018-02-19 11:58:16 +00:00
|
|
|
BuildRequires: gcc-c++
|
2016-02-13 07:56:36 +00:00
|
|
|
BuildRequires: graphviz
|
2020-12-17 03:57:28 +00:00
|
|
|
BuildRequires: make
|
2005-09-11 14:30:04 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
CppUnit is the C++ port of the famous JUnit framework for unit testing.
|
2008-10-04 23:37:08 +00:00
|
|
|
Test output is in XML for automatic testing and GUI based for supervised
|
|
|
|
tests.
|
2005-09-11 14:30:04 +00:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Libraries and headers for cppunit development
|
2018-06-28 16:53:10 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2005-09-11 14:30:04 +00:00
|
|
|
|
|
|
|
%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
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
The cppunit-doc package contains HTML formatted API documention generated by
|
|
|
|
the popular doxygen documentation generation tool.
|
|
|
|
|
|
|
|
%prep
|
2016-02-13 12:05:50 +00:00
|
|
|
%autosetup -p1
|
2005-09-11 14:30:04 +00:00
|
|
|
|
|
|
|
%build
|
2022-01-27 18:18:45 +00:00
|
|
|
%configure --enable-doxygen --disable-static --disable-silent-rules --disable-werror
|
2016-02-13 07:59:06 +00:00
|
|
|
sed -i \
|
|
|
|
-e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
|
|
|
|
-e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
|
|
|
|
libtool
|
2018-06-28 16:53:10 +00:00
|
|
|
|
|
|
|
%make_build
|
2005-09-11 14:30:04 +00:00
|
|
|
|
|
|
|
%install
|
2018-06-28 16:53:10 +00:00
|
|
|
%make_install
|
|
|
|
|
2016-02-13 12:15:42 +00:00
|
|
|
rm %{buildroot}%{_libdir}/*.la
|
2005-09-11 14:30:04 +00:00
|
|
|
# remove double of doc
|
2016-02-13 12:15:42 +00:00
|
|
|
rm -rf %{buildroot}%{_datadir}/doc/cppunit %{buildroot}%{_datadir}/%{name}/html
|
2007-12-16 23:52:14 +00:00
|
|
|
|
2007-01-29 10:55:26 +00:00
|
|
|
# clean up examples
|
2007-10-21 10:13:31 +00:00
|
|
|
rm -rf __dist-examples __dist-examples-dir
|
|
|
|
cp -a examples __dist-examples
|
|
|
|
make -C __dist-examples distclean
|
2007-01-29 10:55:26 +00:00
|
|
|
# Makefile.am files are left as documentation
|
2019-12-25 09:12:54 +00:00
|
|
|
find __dist-examples \( -name Makefile.in -o -name .gitignore -o -name '*.opt' -o -name '*.sln' -o -name '*.vcproj' \) -exec rm {} \;
|
2007-10-21 10:13:31 +00:00
|
|
|
mkdir __dist-examples-dir
|
|
|
|
mv __dist-examples __dist-examples-dir/examples
|
2005-09-11 14:30:04 +00:00
|
|
|
|
|
|
|
|
2018-06-28 16:53:10 +00:00
|
|
|
%ldconfig_scriptlets
|
2005-09-11 14:30:04 +00:00
|
|
|
|
|
|
|
%files
|
2016-02-13 12:08:24 +00:00
|
|
|
%doc AUTHORS NEWS README THANKS TODO BUGS doc/FAQ
|
2016-02-12 20:36:22 +00:00
|
|
|
%license COPYING
|
2005-09-11 14:30:04 +00:00
|
|
|
%{_bindir}/DllPlugInTester
|
2019-12-25 09:12:54 +00:00
|
|
|
%{_libdir}/libcppunit-%{apiversion}.so.1
|
|
|
|
%{_libdir}/libcppunit-%{apiversion}.so.1.*
|
2005-09-11 14:30:04 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_includedir}/cppunit
|
|
|
|
%{_libdir}/libcppunit.so
|
2006-05-21 14:40:44 +00:00
|
|
|
%{_libdir}/pkgconfig/cppunit.pc
|
2005-09-11 14:30:04 +00:00
|
|
|
|
|
|
|
%files doc
|
2016-02-12 20:36:54 +00:00
|
|
|
%license COPYING
|
2007-10-21 10:13:31 +00:00
|
|
|
%doc __dist-examples-dir/examples/
|
2008-10-04 23:37:08 +00:00
|
|
|
%doc doc/html
|
2005-09-11 14:30:04 +00:00
|
|
|
|
|
|
|
%changelog
|
2022-11-21 20:03:21 +00:00
|
|
|
%autochangelog
|