File mingw64-cppunit.spec of Package mingw64-cppunit

#
# spec file for package mingw64-cppunit
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#


Name:           mingw64-cppunit
Version:        1.12.1
Release:        0
Summary:        C++ Port of the JUnit Testing Framework
License:        LGPL-2.1-or-later
Group:          Development/Libraries/C and C++
Url:            http://sf.net/projects/cppunit/
Source:         http://downloads.sf.net/cppunit/cppunit-%{version}.tar.gz
Patch0:         cppunit-1.12.1-windows.patch
#!BuildIgnore: post-build-checks
BuildRequires:  mingw64-cross-binutils
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-gcc-c++
BuildRequires:  mingw64-cross-pkg-config
BuildRequires:  mingw64-filesystem
Obsoletes:      mingw64-libcppunit
Provides:       mingw64-libcppunit
%_mingw64_package_header_debug
BuildArch:      noarch

%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 mingw64-libcppunit-1-12-1
Summary:        C++ Port of the JUnit Testing Framework
Group:          System/Libraries

%description -n mingw64-libcppunit-1-12-1
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 devel
Summary:        C++ Port of the JUnit Testing Framework (development files)
Group:          Development/Libraries/C and C++
Obsoletes:      mingw64-libcppunit-devel
Provides:       mingw64-libcppunit-devel

%description devel
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.

This package contains all necessary include files and libraries needed
to develop applications that require these.

%_mingw64_debug_package

%prep
%setup -q -n cppunit-%{version}
%patch -P 0 -p1 -b .windows

%build
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
%{_mingw64_configure} --enable-shared --disable-static
make %{?_smp_mflags} || make

%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}

%files
%defattr(-,root,root)
%{_mingw64_bindir}/DllPlugInTester.exe

%files -n mingw64-libcppunit-1-12-1
%defattr(-,root,root)
%{_mingw64_bindir}/libcppunit-1-12-1.dll

%files devel
%defattr(-,root,root)
%{_mingw64_bindir}/cppunit-config
%{_mingw64_includedir}/cppunit
%{_mingw64_libdir}/libcppunit.dll.a
%{_mingw64_libdir}/pkgconfig/cppunit.pc
%{_mingw64_datadir}/aclocal/cppunit.m4
%{_mingw64_datadir}/doc/cppunit
%{_mingw64_mandir}/man1/cppunit-config.1*

%changelog
openSUSE Build Service is sponsored by