commit 3fe9c38d27f807f8ae2886d43c580727f1fb009d8b6617d4d5fa007a1e0439ad Author: Adam Majer Date: Tue May 21 15:34:24 2019 +0000 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 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/Catch2.changes b/Catch2.changes new file mode 100644 index 0000000..a18c28c --- /dev/null +++ b/Catch2.changes @@ -0,0 +1,9 @@ +------------------------------------------------------------------- +Sat May 18 20:37:18 UTC 2019 - Kira Marie Backes - 2.7.2 + +- Finalize .spec of Catch2 v 2.7.2 + +------------------------------------------------------------------- +Sat May 18 19:31:10 UTC 2019 - Kira Marie Backes + +- Try to setup Catch2 as OBS project diff --git a/Catch2.spec b/Catch2.spec new file mode 100644 index 0000000..eaff0b1 --- /dev/null +++ b/Catch2.spec @@ -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 diff --git a/_service b/_service new file mode 100644 index 0000000..2964f94 --- /dev/null +++ b/_service @@ -0,0 +1,3 @@ + + + diff --git a/_service:download_files:Catch2-2.7.2.tar.gz b/_service:download_files:Catch2-2.7.2.tar.gz new file mode 100644 index 0000000..ccc5875 --- /dev/null +++ b/_service:download_files:Catch2-2.7.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9f4116da13d8402b5145f95ab91ae0173cd27b804152d3bb2d4f9b6e64852af7 +size 576963