# # spec file for package Vc # # Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2015 Asterios Dramis . # # 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 http://bugs.opensuse.org/ # Name: Vc Version: 0.7.4 Release: 0 Summary: Collection of SIMD Vector Classes License: LGPL-3.0+ Group: System/Libraries Url: http://code.compeng.uni-frankfurt.de/projects/vc/ Source0: http://code.compeng.uni-frankfurt.de/attachments/download/174/%{name}-%{version}.tar.gz BuildRequires: cmake BuildRequires: doxygen BuildRequires: fdupes BuildRequires: gcc-c++ BuildRoot: %{_tmppath}/%{name}-%{version}-build %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++ %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 libraries and headers needed to build software using Vc. %package devel-static Summary: Vc Static Library Group: Development/Libraries/C and C++ %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 %setup -q %build mkdir build cd build _libsuffix=$(echo %_lib | cut -b4-) cmake ../ \ -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DLIB_SUFFIX="$_libsuffix" \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DBUILD_TESTING=OFF make %{?_smp_mflags} VERBOSE=1 cd .. cd doc/ doxygen cd .. %install %make_install -C build # Install devel docs (do it manually to fix also rpmlint warning "files-duplicate" with %%fdupes) mkdir -p %{buildroot}%{_docdir}/%{name}-devel cp -a doc/html/ %{buildroot}%{_docdir}/%{name}-devel/ install -pm 0644 LGPL %{buildroot}%{_docdir}/%{name}-devel/ %fdupes -s %{buildroot} %files devel %defattr(-,root,root,-) %doc %{_docdir}/%{name}-devel/ %{_includedir}/Vc/ %dir /usr/lib/cmake /usr/lib/cmake/Vc/ %files devel-static %defattr(-,root,root,-) %{_libdir}/libVc.a %changelog