From 80b50fb83f7019336f97197d0d819be2ecbd7293ca896fa2a01d1975c1368cf1 Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Mon, 31 Aug 2020 13:31:15 +0000 Subject: [PATCH] Accepting request 830818 from home:alois:branches:devel:tools replaces doctest-devel OBS-URL: https://build.opensuse.org/request/show/830818 OBS-URL: https://build.opensuse.org/package/show/devel:tools/doctest?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++++ .gitignore | 1 + doctest-2.4.0.tar.gz | 3 ++ doctest.changes | 4 +++ doctest.spec | 74 ++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 105 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 doctest-2.4.0.tar.gz create mode 100644 doctest.changes create mode 100644 doctest.spec 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/doctest-2.4.0.tar.gz b/doctest-2.4.0.tar.gz new file mode 100644 index 0000000..dcb84c6 --- /dev/null +++ b/doctest-2.4.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f689f48e92c088928d88d8481e769c8e804f0a608b484ab8ef3d6ab6045b5444 +size 2249705 diff --git a/doctest.changes b/doctest.changes new file mode 100644 index 0000000..8062d1c --- /dev/null +++ b/doctest.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Mon Aug 31 13:21:30 UTC 2020 - Luigi Baldoni + +- Initial package (v2.4.0) diff --git a/doctest.spec b/doctest.spec new file mode 100644 index 0000000..f7c4cf6 --- /dev/null +++ b/doctest.spec @@ -0,0 +1,74 @@ +# +# spec file for package doctest +# +# Copyright (c) 2020 SUSE LLC +# +# 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: doctest +Version: 2.4.0 +Release: 0 +Summary: Single-header testing framework +License: MIT +URL: http://bit.ly/doctest-docs +Source0: https://github.com/onqtam/doctest/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz +BuildRequires: cmake +BuildRequires: gcc-c++ +BuildRequires: pkgconfig +ExcludeArch: %arm + +%description +C++98/C++11 single-header testing framework for unit tests and TDD. + +%package devel +Summary: Single-header testing framework + +%description devel +C++98/C++11 single-header testing framework for unit tests and TDD. + +%prep +%autosetup +# fix cmake module path +sed -i 's|lib/cmake|%{_lib}/cmake|g' CMakeLists.txt + +%build +%cmake +%cmake_build + +%install +%cmake_install + +# creates support file for pkg-config +mkdir -p %{buildroot}/%{_libdir}/pkgconfig +tee %{buildroot}/%{_libdir}/pkgconfig/doctest.pc << "EOF" +prefix=%{_prefix} +exec_prefix=${prefix} +libdir=${exec_prefix}/%{_lib} +includedir=${prefix}/include + +Name: doctest +Description: Single-header testing framework +Version: %{version} +Libs: +Cflags: -I${includedir}/doctest +EOF + +%files devel +%doc CHANGELOG.md README.md +%license LICENSE.txt +%{_includedir}/doctest +%{_libdir}/cmake/doctest +%{_libdir}/pkgconfig/doctest.pc + +%changelog