Upgrade simde to 0.7.3 to resolve compilation failures.
(cherry picked from commit dd508cd24c1e6b59962222e6e46d3b96fad3d267)
This commit is contained in:
parent
da2f6532cc
commit
92897995a4
BIN
3378ab337698933ccb2e4068b26acd5c6afe27c5.tar.gz
Normal file
BIN
3378ab337698933ccb2e4068b26acd5c6afe27c5.tar.gz
Normal file
Binary file not shown.
19
simde.spec
19
simde.spec
@ -1,14 +1,15 @@
|
|||||||
%global commit_munit da8f73412998e4f1adf1100dc187533a51af77fd
|
%global commit_munit da8f73412998e4f1adf1100dc187533a51af77fd
|
||||||
|
%global commit_simde 3378ab337698933ccb2e4068b26acd5c6afe27c5
|
||||||
%global hedley_version 14
|
%global hedley_version 14
|
||||||
%global debug_package %{nil}
|
%global debug_package %{nil}
|
||||||
|
|
||||||
Name: simde
|
Name: simde
|
||||||
Version: 0.7.0
|
Version: 0.7.3
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: Implementations of SIMD instruction sets for systems which don't natively support them
|
Summary: Implementations of SIMD instruction sets for systems which don't natively support them
|
||||||
License: MIT and CC0-1.0
|
License: MIT and CC0-1.0
|
||||||
URL: https://github.com/nemequ/simde
|
URL: https://github.com/nemequ/simde
|
||||||
Source0: https://github.com/simd-everywhere/%{name}/archive/v%{version}.tar.gz
|
Source0: https://github.com/simd-everywhere/%{name}/archive/%{commit_simde}.tar.gz
|
||||||
Source1: https://github.com/nemequ/munit/archive/%{commit_munit}.tar.gz
|
Source1: https://github.com/nemequ/munit/archive/%{commit_munit}.tar.gz
|
||||||
BuildRequires: clang
|
BuildRequires: clang
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
@ -36,7 +37,7 @@ The simde-devel package contains the header files needed
|
|||||||
to develop programs that use the SIMDe.
|
to develop programs that use the SIMDe.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{name}-%{version}
|
%autosetup -n %{name}-%{commit_simde} -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
@ -45,6 +46,12 @@ mkdir -p %{buildroot}%{_includedir}
|
|||||||
cp -a simde %{buildroot}%{_includedir}
|
cp -a simde %{buildroot}%{_includedir}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
# Check version.
|
||||||
|
version_major=$(grep '^#define SIMDE_VERSION_MAJOR ' simde/simde-common.h | cut -d ' ' -f 3)
|
||||||
|
version_minor=$(grep '^#define SIMDE_VERSION_MINOR ' simde/simde-common.h | cut -d ' ' -f 3)
|
||||||
|
version_micro=$(grep '^#define SIMDE_VERSION_MICRO ' simde/simde-common.h | cut -d ' ' -f 3)
|
||||||
|
test "%{version}" = "${version_major}.${version_minor}.${version_micro}"
|
||||||
|
|
||||||
for file in $(find simde/ -type f); do
|
for file in $(find simde/ -type f); do
|
||||||
if ! [[ "${file}" =~ \.h$ ]]; then
|
if ! [[ "${file}" =~ \.h$ ]]; then
|
||||||
echo "${file} is not a header file."
|
echo "${file} is not a header file."
|
||||||
@ -55,9 +62,6 @@ for file in $(find simde/ -type f); do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
test "$(grep '^#define HEDLEY_VERSION ' simde/hedley.h | cut -d ' ' -f3)" = \
|
|
||||||
'%{hedley_version}'
|
|
||||||
|
|
||||||
rm -rf test/munit
|
rm -rf test/munit
|
||||||
tar xzvf %{SOURCE1}
|
tar xzvf %{SOURCE1}
|
||||||
mv munit-%{commit_munit} test/munit
|
mv munit-%{commit_munit} test/munit
|
||||||
@ -120,5 +124,8 @@ popd
|
|||||||
%{_includedir}/%{name}
|
%{_includedir}/%{name}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Mar 8 2022 yaoxin <yaoxin30@huawei.com> - 0.7.3-1
|
||||||
|
- Upgrade simde to 0.7.3 to resolve compilation failures.
|
||||||
|
|
||||||
* Fri Jan 8 2021 chengzihan <chengzihan2@huawei.com> - 0.5.0-1
|
* Fri Jan 8 2021 chengzihan <chengzihan2@huawei.com> - 0.5.0-1
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
BIN
v0.7.0.tar.gz
BIN
v0.7.0.tar.gz
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user