Accepting request 704522 from home:audaki:branches:devel:libraries:c_c++
- Finalize .spec of Catch2 v 2.7.2 - Try to setup Catch2 as OBS project OBS-URL: https://build.opensuse.org/request/show/704522 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/Catch2?expand=0&rev=1
This commit is contained in:
commit
3fe9c38d27
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
9
Catch2.changes
Normal file
9
Catch2.changes
Normal file
@ -0,0 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat May 18 20:37:18 UTC 2019 - Kira Marie Backes <kira@kiralein.de> - 2.7.2
|
||||
|
||||
- Finalize .spec of Catch2 v 2.7.2
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat May 18 19:31:10 UTC 2019 - Kira Marie Backes <kira@kiralein.de>
|
||||
|
||||
- Try to setup Catch2 as OBS project
|
75
Catch2.spec
Normal file
75
Catch2.spec
Normal file
@ -0,0 +1,75 @@
|
||||
#
|
||||
# spec file for package Catch2
|
||||
#
|
||||
# Copyright (c) 2019 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
|
||||
# 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 https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: Catch2
|
||||
Version: 2.7.2
|
||||
Release: 0
|
||||
Summary: A modern, C++-native, header-only, test framework for unit-tests, TDD and BDD
|
||||
License: BSL-1.0
|
||||
Group: Development/Languages/C and C++
|
||||
URL: https://github.com/catchorg/%{name}/
|
||||
Source: https://github.com/catchorg/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
BuildRequires: cmake >= 3.5
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: pkgconfig
|
||||
|
||||
%description
|
||||
Catch2 stands for C++ Automated Test Cases in a Header and is a multi-paradigm
|
||||
test framework for C++. which also supports Objective-C (and maybe C).
|
||||
It is primarily distributed as a single header file, although certain
|
||||
extensions may require additional headers.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%package devel
|
||||
Summary: A modern, C++-native, header-only, test framework for unit-tests, TDD and BDD
|
||||
|
||||
%description devel
|
||||
Catch2 stands for C++ Automated Test Cases in a Header and is a multi-paradigm
|
||||
test framework for C++. which also supports Objective-C (and maybe C).
|
||||
It is primarily distributed as a single header file, although certain
|
||||
extensions may require additional headers.
|
||||
|
||||
%build
|
||||
%cmake -DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_INSTALL_DOCDIR=%{_defaultdocdir}/%{name} \
|
||||
-DPKGCONFIG_INSTALL_DIR=%{_libdir}/pkgconfig
|
||||
%make_jobs
|
||||
|
||||
%check
|
||||
%ctest
|
||||
|
||||
%install
|
||||
%cmake_install
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%if 0%{?leap_version} >= 420200 || 0%{?suse_version} > 1320
|
||||
%license LICENSE.txt
|
||||
%else
|
||||
%doc LICENSE.txt
|
||||
%endif
|
||||
%doc README.md CODE_OF_CONDUCT.md
|
||||
%doc %{_defaultdocdir}/%{name}
|
||||
%{_datadir}/%{name}
|
||||
%{_includedir}/catch2
|
||||
%{_libdir}/cmake/%{name}
|
||||
%{_libdir}/pkgconfig/catch2.pc
|
||||
|
||||
%changelog
|
3
_service
Normal file
3
_service
Normal file
@ -0,0 +1,3 @@
|
||||
<services>
|
||||
<service name="download_files"/>
|
||||
</services>
|
3
_service:download_files:Catch2-2.7.2.tar.gz
Normal file
3
_service:download_files:Catch2-2.7.2.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:9f4116da13d8402b5145f95ab91ae0173cd27b804152d3bb2d4f9b6e64852af7
|
||||
size 576963
|
Loading…
x
Reference in New Issue
Block a user