SHA256
8
0
forked from pool/cppunit

- 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

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cppunit?expand=0&rev=9
This commit is contained in:
Tomáš Chvátal
2017-04-16 19:17:38 +00:00
committed by Git OBS Bridge
parent b3ac7d7adc
commit 664c92d9c1
5 changed files with 33 additions and 22 deletions

View File

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

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3f47d246e3346f2ba4d7c9e882db3ad9ebd3fcbd2e8b732f946e0e3eeb9f429f
size 953596

3
cppunit-1.14.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3d569869d27b48860210c758c4f313082103a5e58219a7669b52bfd29d674780
size 959716

View File

@@ -1,3 +1,15 @@
-------------------------------------------------------------------
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

View File

@@ -1,7 +1,7 @@
#
# spec file for package cppunit
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,18 +16,19 @@
#
%define libname libcppunit-1_13-0
%define libname libcppunit-1_14-0
Name: cppunit
Version: 1.13.2
Version: 1.14.0
Release: 0
Summary: C++ Port of the JUnit Testing Framework
License: LGPL-2.1+
Group: Development/Libraries/C and C++
Url: http://www.freedesktop.org/wiki/Software/cppunit
Source: http://dev-www.libreoffice.org/src/%name-%version.tar.gz
Source: http://dev-www.libreoffice.org/src/%{name}-%{version}.tar.gz
Source1: cppunit-devel.desktop
BuildRequires: doxygen
BuildRequires: gcc-c++
BuildRequires: graphviz
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
@@ -62,9 +63,7 @@ to develop applications that require these.
Summary: Documentation for the cppunit API
Group: Documentation/HTML
Conflicts: libcppunit-devel < 1.13.2
%if 0%{?suse_version} > 1200
BuildArch: noarch
%endif
%description devel-doc
This package contains documentation for the cppunit API.
@@ -75,14 +74,16 @@ This package contains documentation for the cppunit API.
%build
export CXXFLAGS="%{optflags}"
%configure \
--disable-static \
--enable-doxygen
make %{?_smp_mflags} V=1
--docdir=%{_docdir}/%{name} \
--disable-silent-rules \
--disable-static \
--enable-doxygen
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install
%make_install
# remove la archive
rm %{buildroot}%{_libdir}/*.la
find %{buildroot} -type f -name "*.la" -delete -print
# this got also installed to _defaultdocdir
rm -rf %{buildroot}%{_datadir}/cppunit/html/
find %{buildroot}%{_includedir} -type f | xargs chmod a-x
@@ -92,10 +93,9 @@ install %{SOURCE1} %{buildroot}%{_datadir}/susehelp/meta/Development/Libraries/
%suse_update_desktop_file %{buildroot}%{_datadir}/susehelp/meta/Development/Libraries/cppunit-devel.desktop
%check
make check %{?_smp_mflags} V=1
make check %{?_smp_mflags}
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%files -n %{libname}
@@ -107,13 +107,12 @@ make check %{?_smp_mflags} V=1
%files devel
%defattr(-,root,root)
%doc NEWS README THANKS ChangeLog
%dir %{_docdir}/%{name}
%{_docdir}/%{name}/*
%{_bindir}/DllPlugInTester
%{_bindir}/cppunit-config
%{_libdir}/libcppunit*.so
%{_libdir}/pkgconfig/cppunit.pc
%{_includedir}/*
%{_mandir}/*/*
%{_datadir}/aclocal/cppunit.m4
%files devel-doc
%defattr(-,root,root)