forked from pool/unittest-cpp
Compare commits
2 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 9c97ce1829 | |||
| cef1366274 |
@@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Mar 22 00:28:12 UTC 2025 - Shawn Dunn <sfalken@opensuse.org>
|
||||||
|
|
||||||
|
- Add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to fix FTBFS with cmake4
|
||||||
|
- Add %check section
|
||||||
|
- Remove Group: declarations, no longer used
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Aug 28 14:52:43 UTC 2022 - antoine.belvire@opensuse.org
|
Sun Aug 28 14:52:43 UTC 2022 - antoine.belvire@opensuse.org
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package unittest-cpp
|
# spec file for package unittest-cpp
|
||||||
#
|
#
|
||||||
# Copyright (c) 2022 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -22,7 +22,6 @@ Version: 2.0.0
|
|||||||
Release: 0
|
Release: 0
|
||||||
Summary: A unit testing framework for C++
|
Summary: A unit testing framework for C++
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Libraries/C and C++
|
|
||||||
URL: https://github.com/unittest-cpp
|
URL: https://github.com/unittest-cpp
|
||||||
Source: %{name}-%{version}.tar.xz
|
Source: %{name}-%{version}.tar.xz
|
||||||
# PATCH-FIX-UPSTREAM correct lib64 install pathes
|
# PATCH-FIX-UPSTREAM correct lib64 install pathes
|
||||||
@@ -30,7 +29,7 @@ Patch1: fix-install.patch
|
|||||||
Patch2: shared.patch
|
Patch2: shared.patch
|
||||||
# PATCH-FIX-UPSTREAM unittest-cpp-2.0.0-gcc12.patch -- Fix build with GCC 12 (https://github.com/unittest-cpp/unittest-cpp/pull/185)
|
# PATCH-FIX-UPSTREAM unittest-cpp-2.0.0-gcc12.patch -- Fix build with GCC 12 (https://github.com/unittest-cpp/unittest-cpp/pull/185)
|
||||||
Patch3: unittest-cpp-2.0.0-gcc12.patch
|
Patch3: unittest-cpp-2.0.0-gcc12.patch
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake >= 3.5
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
|
|
||||||
@@ -42,7 +41,6 @@ advanced library and language features.
|
|||||||
|
|
||||||
%package -n %{lname}
|
%package -n %{lname}
|
||||||
Summary: A unit testing framework for C++
|
Summary: A unit testing framework for C++
|
||||||
Group: System/Libraries
|
|
||||||
|
|
||||||
%description -n %{lname}
|
%description -n %{lname}
|
||||||
UnitTest++ is a unit testing framework for C++. It was designed
|
UnitTest++ is a unit testing framework for C++. It was designed
|
||||||
@@ -52,7 +50,6 @@ advanced library and language features.
|
|||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for unittest-cpp
|
Summary: Development files for unittest-cpp
|
||||||
Group: Development/Libraries/C and C++
|
|
||||||
Requires: %{lname} = %{version}
|
Requires: %{lname} = %{version}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
@@ -65,7 +62,7 @@ application that use %{name}.
|
|||||||
%autosetup -p1
|
%autosetup -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%cmake
|
%cmake -DCMAKE_POLICY_VERSION_MINIMUM=3.5
|
||||||
|
|
||||||
%install
|
%install
|
||||||
export LD_LIBRARY_PATH=. # tests want this
|
export LD_LIBRARY_PATH=. # tests want this
|
||||||
@@ -75,6 +72,9 @@ ln -s libUnitTest++-%{version}.so "%{buildroot}/%{_libdir}/libUnitTest++.so"
|
|||||||
# replace broken .pc file
|
# replace broken .pc file
|
||||||
perl -i -lpe 's{^Version:\s*$}{Version: %{version}}' "%{buildroot}/%{_libdir}/pkgconfig"/*.pc
|
perl -i -lpe 's{^Version:\s*$}{Version: %{version}}' "%{buildroot}/%{_libdir}/pkgconfig"/*.pc
|
||||||
|
|
||||||
|
%check
|
||||||
|
%ctest
|
||||||
|
|
||||||
%post -n %{lname} -p /sbin/ldconfig
|
%post -n %{lname} -p /sbin/ldconfig
|
||||||
%postun -n %{lname} -p /sbin/ldconfig
|
%postun -n %{lname} -p /sbin/ldconfig
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user