Group :: Desenvolvimento/C++
RPM: catch
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define _unpackaged_files_terminate_build 1
%define _stripped_files_terminate_build 1
%set_verify_elf_method strict
# TODO: nobody knowns how to run tests
%global optflags_lto %optflags_lto -ffat-lto-objects
Name: catch
Version: 3.4.0
Release: alt1
# src package `catch' version `3.4.0-alt1' is less than its version `v1.6.0-alt1' in sisyphus/task/archive/_172/176589
Epoch: 3
Summary: C++ Unit Test framework ("all in one header")
License: BSL-1.0
Group: Development/C++
Url: https://github.com/catchorg/Catch2
Packager: Pavel Vainerman <pv at altlinux.ru>
BuildRequires(pre): rpm-macros-cmake
BuildRequires: cmake gcc-c++
BuildRequires: ctest python3
# Source-url: https://github.com/catchorg/Catch2/archive/v%{version}.tar.gz
Source: %name-%version.tar
%description
Catch stands for C++ Automated Test Cases in Headers
and is a multi-paradigm automated
test framework for C++ and Objective-C (and, maybe, C).
It is implemented entirely in a set of header files,
but is packaged up as a single header for extra convenience.
%package -n catch-devel
Summary: C++ Unit Test framework ("all in one header")
Group: Development/C++
Conflicts: catch2-devel
# fix unowned files
Requires: cmake
%description -n catch-devel
Catch stands for C++ Automated Test Cases in Headers
and is a multi-paradigm automated
test framework for C++ and Objective-C (and, maybe, C).
It is implemented entirely in a set of header files,
but is packaged up as a single header for extra convenience.
%prep
%setup
%build
%cmake \
-DCATCH_BUILD_EXTRA_TESTS=ON \
-DCATCH_ENABLE_WERROR=OFF \
-DBUILD_SHARED_LIBS=OFF \
-DBUILD_TESTING=ON
%cmake_build
%install
%cmake_install
# NEW duplicate provides detected:
# pkgconfig(catch2) catch-devel catch2-devel
mv %buildroot%_datadir/pkgconfig/catch2.pc %buildroot%_datadir/pkgconfig/catch3.pc
subst 's|catch2|catch3|' %buildroot%_datadir/pkgconfig/catch2-with-main.pc
%check
# TODO: No tests were found!!!
%ctest
%files -n catch-devel
%doc %_docdir/Catch2/
%_includedir/catch2/
%_libdir/libCatch2.a
%_libdir/libCatch2Main.a
%_datadir/Catch2/
%_libdir/cmake/Catch2/
%_datadir/pkgconfig/catch3.pc
%_datadir/pkgconfig/catch2-with-main.pc
%changelog
…
Todas as alterações você pod ver aqui
%define _stripped_files_terminate_build 1
%set_verify_elf_method strict
# TODO: nobody knowns how to run tests
%global optflags_lto %optflags_lto -ffat-lto-objects
Name: catch
Version: 3.4.0
Release: alt1
# src package `catch' version `3.4.0-alt1' is less than its version `v1.6.0-alt1' in sisyphus/task/archive/_172/176589
Epoch: 3
Summary: C++ Unit Test framework ("all in one header")
License: BSL-1.0
Group: Development/C++
Url: https://github.com/catchorg/Catch2
Packager: Pavel Vainerman <pv at altlinux.ru>
BuildRequires(pre): rpm-macros-cmake
BuildRequires: cmake gcc-c++
BuildRequires: ctest python3
# Source-url: https://github.com/catchorg/Catch2/archive/v%{version}.tar.gz
Source: %name-%version.tar
%description
Catch stands for C++ Automated Test Cases in Headers
and is a multi-paradigm automated
test framework for C++ and Objective-C (and, maybe, C).
It is implemented entirely in a set of header files,
but is packaged up as a single header for extra convenience.
%package -n catch-devel
Summary: C++ Unit Test framework ("all in one header")
Group: Development/C++
Conflicts: catch2-devel
# fix unowned files
Requires: cmake
%description -n catch-devel
Catch stands for C++ Automated Test Cases in Headers
and is a multi-paradigm automated
test framework for C++ and Objective-C (and, maybe, C).
It is implemented entirely in a set of header files,
but is packaged up as a single header for extra convenience.
%prep
%setup
%build
%cmake \
-DCATCH_BUILD_EXTRA_TESTS=ON \
-DCATCH_ENABLE_WERROR=OFF \
-DBUILD_SHARED_LIBS=OFF \
-DBUILD_TESTING=ON
%cmake_build
%install
%cmake_install
# NEW duplicate provides detected:
# pkgconfig(catch2) catch-devel catch2-devel
mv %buildroot%_datadir/pkgconfig/catch2.pc %buildroot%_datadir/pkgconfig/catch3.pc
subst 's|catch2|catch3|' %buildroot%_datadir/pkgconfig/catch2-with-main.pc
%check
# TODO: No tests were found!!!
%ctest
%files -n catch-devel
%doc %_docdir/Catch2/
%_includedir/catch2/
%_libdir/libCatch2.a
%_libdir/libCatch2Main.a
%_datadir/Catch2/
%_libdir/cmake/Catch2/
%_datadir/pkgconfig/catch3.pc
%_datadir/pkgconfig/catch2-with-main.pc
%changelog
…
Todas as alterações você pod ver aqui