!1 package init

Merge pull request !1 from small_leek/master
This commit is contained in:
openeuler-ci-bot 2020-07-22 16:29:17 +08:00 committed by Gitee
commit 2ca3871a84
3 changed files with 64 additions and 0 deletions

BIN
catch1-1.12.2.tar.gz Normal file

Binary file not shown.

60
catch1.spec Normal file
View File

@ -0,0 +1,60 @@
%global debug_package %{nil}
Name: catch1
Version: 1.12.2
Release: 5
Summary: A modern, C++-native, header-only, framework for unit-tests, TDD and BDD
License: Boost
URL: https://github.com/philsquared/Catch
Source0: https://github.com/philsquared/Catch/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: cmake make gcc-c++
%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 devel
Summary: Development files for %{name}
Provides: %{name}-static = %{version}-%{release}
Conflicts: catch-devel
%description 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
%autosetup -p 1 -n Catch2-%{version}
%build
%cmake . -Bbuild
%make_build -Cbuild
%install
mkdir -p %{buildroot}%{_includedir}
cp -pr include %{buildroot}%{_includedir}/catch
%check
cd build
ctest -V %{?_smp_mflags}
%files devel
%doc README.md catch-logo-small.png docs
%license LICENSE.txt
%{_includedir}/catch
%changelog
* Sat Jul 18 2020 sunguoshuai <sunguoshuai@huawei.com> - 1.12.2-5
- Package init

4
catch1.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: philsquared/Catch
tag_prefix: "^v"
seperator: "."