3ad0f89f51
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/Vc?expand=0&rev=43
106 lines
3.0 KiB
RPMSpec
106 lines
3.0 KiB
RPMSpec
#
|
|
# spec file for package Vc
|
|
#
|
|
# Copyright (c) 2024 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: Vc
|
|
Version: 1.4.5
|
|
Release: 0
|
|
Summary: Collection of SIMD Vector Classes
|
|
License: BSD-3-Clause
|
|
Group: System/Libraries
|
|
URL: https://github.com/VcDevel/Vc/
|
|
Source0: %{url}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
BuildRequires: cmake
|
|
BuildRequires: doxygen
|
|
BuildRequires: gcc-c++
|
|
|
|
%description
|
|
Vc is a free software library to ease explicit vectorization of C++ code. It
|
|
has an intuitive API and provides portability between different compilers and
|
|
compiler versions as well as portability between different vector instruction
|
|
sets.
|
|
|
|
%package devel
|
|
Summary: Development Files for Vc
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %{name}-devel-static = %{version}
|
|
|
|
%description devel
|
|
Vc is a free software library to ease explicit vectorization of C++ code. It
|
|
has an intuitive API and provides portability between different compilers and
|
|
compiler versions as well as portability between different vector instruction
|
|
sets.
|
|
|
|
This package provides development headers needed to build software using Vc.
|
|
|
|
%package devel-doc
|
|
Summary: API documentation for Vc
|
|
Group: Development/Libraries/C and C++
|
|
BuildArch: noarch
|
|
|
|
%description devel-doc
|
|
Vc is a free software library to ease explicit vectorization of C++ code. It
|
|
has an intuitive API and provides portability between different compilers and
|
|
compiler versions as well as portability between different vector instruction
|
|
sets.
|
|
|
|
This package provides the API documentation
|
|
|
|
%package devel-static
|
|
Summary: Vc Static Library
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %{name}-devel = %{version}
|
|
|
|
%description devel-static
|
|
Vc is a free software library to ease explicit vectorization of C++ code. It
|
|
has an intuitive API and provides portability between different compilers and
|
|
compiler versions as well as portability between different vector instruction
|
|
sets.
|
|
|
|
This package provides the Vc static library.
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
|
%cmake \
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
-DBUILD_TESTING=OFF
|
|
%cmake_build
|
|
|
|
cd ../doc
|
|
doxygen
|
|
cd ..
|
|
|
|
%install
|
|
%cmake_install
|
|
|
|
%files devel-doc
|
|
%doc README.md doc/html/
|
|
|
|
%files devel
|
|
%license LICENSE
|
|
%{_includedir}/Vc/
|
|
%dir %{_libdir}/cmake
|
|
%{_libdir}/cmake/Vc/
|
|
|
|
%files devel-static
|
|
%{_libdir}/libVc.a
|
|
|
|
%changelog
|