Accepting request 578553 from home:StefanBruens:branches:devel:libraries:c_c++

Enable for PPC/ARM, cleanup

- Drop ExclusiveArch, Vc 1.3.3 is no longer x86 only
  Add default_to_scalar_implementation_for_unknown_arch.patch
- Split documentation to subpackage
- Drop redundant %doc in front of %_docdir
- Remove unneeded fdupes BuildRequires

OBS-URL: https://build.opensuse.org/request/show/578553
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/Vc?expand=0&rev=23
This commit is contained in:
Asterios Dramis 2018-02-24 19:08:01 +00:00 committed by Git OBS Bridge
parent 259c8ecd44
commit f06395f0fb
3 changed files with 44 additions and 8 deletions

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Tue Feb 20 20:46:38 UTC 2018 - stefan.bruens@rwth-aachen.de
- Drop ExclusiveArch, Vc 1.3.3 is no longer x86 only
Add default_to_scalar_implementation_for_unknown_arch.patch
- Split documentation to subpackage
- Drop redundant %doc in front of %_docdir
- Remove unneeded fdupes BuildRequires
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Feb 15 19:13:43 UTC 2018 - asterios.dramis@gmail.com Thu Feb 15 19:13:43 UTC 2018 - asterios.dramis@gmail.com

31
Vc.spec
View File

@ -27,11 +27,11 @@ Url: https://github.com/VcDevel/Vc/
Source0: https://github.com/VcDevel/Vc/releases/download/%{version}/%{name}-%{version}.tar.gz Source0: https://github.com/VcDevel/Vc/releases/download/%{version}/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM fix_i686_build.patch asterios.dramis@gmail.com -- Fix i686 build # PATCH-FIX-UPSTREAM fix_i686_build.patch asterios.dramis@gmail.com -- Fix i686 build
Patch0: fix_i686_build.patch Patch0: fix_i686_build.patch
# PATCH-FIX-SUSE default_to_scalar_implementation_for_unknown_arch.patch stefan.bruens@rwth-aachen.de -- fix PPC build
Patch1: default_to_scalar_implementation_for_unknown_arch.patch
BuildRequires: cmake BuildRequires: cmake
BuildRequires: doxygen BuildRequires: doxygen
BuildRequires: fdupes
BuildRequires: gcc-c++ BuildRequires: gcc-c++
ExclusiveArch: %{ix86} x86_64
%description %description
Vc is a free software library to ease explicit vectorization of C++ code. It Vc is a free software library to ease explicit vectorization of C++ code. It
@ -51,6 +51,19 @@ sets.
This package provides development headers needed to build software using Vc. 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 %package devel-static
Summary: Vc Static Library Summary: Vc Static Library
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
@ -67,6 +80,7 @@ This package provides the Vc static library.
%prep %prep
%setup -q %setup -q
%patch0 -p1 %patch0 -p1
%patch1 -p0
%build %build
%cmake \ %cmake \
@ -81,15 +95,16 @@ cd ..
%install %install
%cmake_install %cmake_install
# Install devel docs (do it manually to fix also rpmlint warning "files-duplicate" with %%fdupes) # Install devel docs
mkdir -p %{buildroot}%{_docdir}/%{name}-devel mkdir -p %{buildroot}%{_docdir}/%{name}-devel-doc/
cp -a doc/html/ %{buildroot}%{_docdir}/%{name}-devel/ cp -a doc/html %{buildroot}%{_docdir}/%{name}-devel-doc/
%fdupes -s %{buildroot} %files devel-doc
%doc README.md
%{_docdir}/%{name}-devel-doc/
%files devel %files devel
%doc LICENSE README.md %doc LICENSE
%doc %{_docdir}/%{name}-devel/
%{_includedir}/Vc/ %{_includedir}/Vc/
%dir %{_libdir}/cmake %dir %{_libdir}/cmake
%{_libdir}/cmake/Vc/ %{_libdir}/cmake/Vc/

View File

@ -0,0 +1,12 @@
--- CMakeLists.txt.orig 2018-02-20 21:40:23.851663534 +0100
+++ CMakeLists.txt 2018-02-20 21:41:10.567838665 +0100
@@ -149,7 +149,8 @@
elseif(Vc_ARM)
list(APPEND _srcs src/support_dummy.cpp)
else()
- message(FATAL_ERROR "Unsupported target architecture '${CMAKE_SYSTEM_PROCESSOR}'. No support_???.cpp file exists for this architecture.")
+ message(STATUS "Unsupported target architecture '${CMAKE_SYSTEM_PROCESSOR}'. No support_???.cpp file exists for this architecture.")
+ list(APPEND _srcs src/support_dummy.cpp)
endif()
add_library(Vc STATIC ${_srcs})
set_property(TARGET Vc APPEND PROPERTY COMPILE_OPTIONS ${libvc_compile_flags})