Sync from SUSE:SLFO:Main cppunit revision a6c504103a6387e9829c77568b8bc96d

This commit is contained in:
Adrian Schröter 2024-05-03 11:52:19 +02:00
commit 0509bbee1a
6 changed files with 332 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

4
baselibs.conf Normal file
View File

@ -0,0 +1,4 @@
libcppunit-1_15-1
cppunit-devel
requires -libcppunit-<targettype>
requires "libcppunit-1_15-1-<targettype> = <version>"

BIN
cppunit-1.15.1.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

8
cppunit-devel.desktop Normal file
View File

@ -0,0 +1,8 @@
[Desktop Entry]
Name=CppUnit API
Comment=CppUnit development kit
Comment[de]=CppUnit Entwicklungspaket
Comment[hu]=CppUnit fejlesztői készlet
DocPath=/usr/share/doc/packages/cppunit-devel-doc/index.html
X-DOC-SearchMethod=htdig

177
cppunit.changes Normal file
View File

@ -0,0 +1,177 @@
-------------------------------------------------------------------
Mon Jul 13 22:22:05 UTC 2020 - Matthias Eliasson <elimat@opensuse.org>
- Version update to 1.15.1
Portability:
* Fix Wdefaulted-function-deleted warning with clang
* Remove old Visual Studio project files
- Changes in version 1.15.0
* Report (un)signed character as intergers
* add CPPUNIT_TEST_FIXTURE()
* add message_to_string trait to allow custom string formatters
Portability:
* Fix build with gcc 9
* Fix various compiler warnings
- Run spec-cleaner
* remove rpm groups
- Drop patches fixed upstream:
* gcc9-Wdeprecated-copy-1.patch
* gcc9-Wdeprecated-copy-2.patch
-------------------------------------------------------------------
Mon Apr 29 14:11:16 UTC 2019 - Martin Liška <mliska@suse.cz>
- Add gcc9-Wdeprecated-copy-1.patch and gcc9-Wdeprecated-copy-2.patch
in order to fix boo#1121281.
-------------------------------------------------------------------
Wed Feb 7 13:02:04 UTC 2018 - jengelh@inai.de
- Fix RPM group of shlib subpackage.
-------------------------------------------------------------------
Wed Feb 7 10:09:21 UTC 2018 - tchvatal@suse.com
- Fix description bsc#1079783
-------------------------------------------------------------------
Sun Apr 16 19:15:54 UTC 2017 - tchvatal@suse.com
- Version update to 1.14.0:
* TestCaller supports any callable that can be put into
std::function<void()>.
* CPPUNIT_TEST_PARAMETERIZED executes a test for any value in
an iteratable.
* Added new Assertion macros: ASSERT_LESS, ASSERT_GREATER,
ASSERT_LESSEQUAL, ASSERT_GREATEREQUAL
* Remove QT test runner
-------------------------------------------------------------------
Thu Nov 14 09:51:33 UTC 2013 - tchvatal@suse.com
- Avoid collisions with libcppunit.
-------------------------------------------------------------------
Wed Nov 13 09:54:32 UTC 2013 - tchvatal@suse.com
- Fix the desktop file placement and help location within it.
-------------------------------------------------------------------
Tue Nov 12 09:51:22 UTC 2013 - tchvatal@suse.com
- Fix baselibs.conf
- Run tests and split documentation in own devel-doc subpackage.
- Remove la file and do not build static lib.
-------------------------------------------------------------------
Mon Nov 11 23:59:56 UTC 2013 - tbehrens@suse.com
- Version bump to 1.13.2
* report dlopen errors now correctly
-------------------------------------------------------------------
Mon Dec 17 18:08:56 UTC 2012 - tchvatal@suse.com
- Version bump to 1.13.1
* remove unused patches that are incorporated in the build system
* cleanup the spec file at least a bit
-------------------------------------------------------------------
Fri Nov 23 17:16:53 UTC 2012 - joop.boonen@opensuse.org
- Fixed SLE build replaced make_install makro by
make DESTDIR=\%{buildroot} install
-------------------------------------------------------------------
Fri Apr 20 12:03:31 UTC 2012 - joop.boonen@opensuse.org
- Build cppunit 1.12.1
- Passed the spec file through spec-cleaner
-------------------------------------------------------------------
Thu Feb 9 02:11:29 UTC 2012 - jengelh@medozas.de
- Simply regeneration of autotools scripts
-------------------------------------------------------------------
Sun Nov 13 15:12:52 UTC 2011 - jengelh@medozas.de
- Remove redundant/unwanted tags/section (cf. specfile guidelines)
- Use %_smp_mflags for parallel building
- Add missing "make" call in %build
-------------------------------------------------------------------
Sun Nov 13 09:14:42 UTC 2011 - coolo@suse.com
- add libtool as explicit buildrequire to avoid implicit dependency from prjconf
-------------------------------------------------------------------
Fri Jun 19 10:35:46 CEST 2009 - coolo@novell.com
- disable as-needed for this package as it fails to build with it
-------------------------------------------------------------------
Sun Jul 15 08:15:03 CEST 2007 - aj@suse.de
- Use libcppunit-devel to follow lib package name scheme
-------------------------------------------------------------------
Wed Jul 4 16:03:35 CEST 2007 - adrian@suse.de
- update to version 0.12.0
- minor bugfixes
- now generated with doxygen 1.4.7 new 'tabs' style.
- rename package to follow lib package name scheme
-------------------------------------------------------------------
Sun Apr 22 16:18:49 CEST 2007 - dmueller@suse.de
- don't install devel files as executable
-------------------------------------------------------------------
Wed Jan 25 21:35:11 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Fri Aug 12 22:27:17 CEST 2005 - dmueller@suse.de
- actually apply the quoting patch
-------------------------------------------------------------------
Tue Dec 7 18:53:06 CET 2004 - pth@suse.de
- Fix quoting in AC_DEFUN
-------------------------------------------------------------------
Tue Nov 16 17:26:22 CET 2004 - adrian@suse.de
- do not package debug dir
- translate suse help desktop file
-------------------------------------------------------------------
Thu Aug 12 12:24:36 CEST 2004 - ro@suse.de
- added libpng to neededforbuild (for doxygen)
-------------------------------------------------------------------
Mon Jul 26 09:35:31 CEST 2004 - adrian@suse.de
- remove unneeded /usr/bin/simple to solve conflicts
-------------------------------------------------------------------
Mon Jun 21 10:31:59 CEST 2004 - adrian@suse.de
- update to version 1.10.2
- add susehelp desktop file
-------------------------------------------------------------------
Sat Mar 20 21:19:34 CET 2004 - adrian@suse.de
- remove executable permissions of header files (#36337)
-------------------------------------------------------------------
Tue Jul 29 15:52:02 CEST 2003 - adrian@suse.de
- initial package of version 1.8.0

117
cppunit.spec Normal file
View File

@ -0,0 +1,117 @@
#
# spec file for package cppunit
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define libname libcppunit-1_15-1
Name: cppunit
Version: 1.15.1
Release: 0
Summary: C++ Port of the JUnit Testing Framework
License: LGPL-2.1-or-later
URL: https://www.freedesktop.org/wiki/Software/cppunit
Source: http://dev-www.libreoffice.org/src/%{name}-%{version}.tar.gz
Source1: cppunit-devel.desktop
Source99: baselibs.conf
BuildRequires: doxygen
BuildRequires: gcc-c++
BuildRequires: graphviz
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
%description
CppUnit is the C++ port of the famous JUnit framework for unit testing.
Test output is in XML for automatic testing and GUI based for
supervised tests.
%package -n %{libname}
Summary: Cppunit library for writting C++ unittests
%description -n %{libname}
Cppunit library for writting C++ unittests in JUnit like fashion.
%package devel
Summary: Include Files and Libraries for cppunit
Requires: %{libname} = %{version}
Suggests: devel-doc = %{version}
Provides: libcppunit-devel = %{version}
Obsoletes: libcppunit-devel < %{version}
%description devel
Cppunit library, headers, and all relevant additions for writting C++ unittests
in JUnit like fashion.
%package devel-doc
Summary: Documentation for the cppunit API
Conflicts: libcppunit-devel < 1.13.2
BuildArch: noarch
%description devel-doc
This package contains documentation for the cppunit API.
%prep
%autosetup
%build
export CXXFLAGS="%{optflags}"
%configure \
--docdir=%{_docdir}/%{name} \
--disable-silent-rules \
--disable-static \
--enable-doxygen
%make_build
%install
%make_install
# remove la archive
find %{buildroot} -type f -name "*.la" -delete -print
# remove INSTALL* files from package docs
find %{buildroot}%{_docdir}/%{name}/ -type f -name "INSTALL*" -delete -print
# this got also installed to _defaultdocdir
rm -rf %{buildroot}%{_datadir}/cppunit/html/
find %{buildroot}%{_includedir} -type f | xargs chmod a-x
# install susehelp file
mkdir -p %{buildroot}%{_datadir}/susehelp/meta/Development/Libraries/
install %{SOURCE1} %{buildroot}%{_datadir}/susehelp/meta/Development/Libraries/
%suse_update_desktop_file %{buildroot}%{_datadir}/susehelp/meta/Development/Libraries/cppunit-devel.desktop
%check
%make_build check
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%files -n %{libname}
%license COPYING
%doc AUTHORS
%{_libdir}/libcppunit*.so.*
%{_datadir}/cppunit
%files devel
%doc NEWS README THANKS ChangeLog
%dir %{_docdir}/%{name}
%{_docdir}/%{name}/*
%{_bindir}/DllPlugInTester
%{_libdir}/libcppunit*.so
%{_libdir}/pkgconfig/cppunit.pc
%{_includedir}/*
%files devel-doc
%doc doc/html/*
%{_datadir}/susehelp
%changelog