Accepting request 705458 from science

Change devel project

OBS-URL: https://build.opensuse.org/request/show/705458
OBS-URL: https://build.opensuse.org/package/show/science:machinelearning/ComputeLibrary?expand=0&rev=1
This commit is contained in:
Christian Goll 2019-05-28 15:02:50 +00:00 committed by Git OBS Bridge
commit f9d42d1124
6 changed files with 254 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a02f9dbcf303d0c5d03804f84b009dcf21c392bfe7ccababca94dd7e297ea0c8
size 40298644

62
ComputeLibrary.changes Normal file
View File

@ -0,0 +1,62 @@
-------------------------------------------------------------------
Fri Apr 19 10:25:12 UTC 2019 - Guillaume GARDET <guillaume.gardet@opensuse.org>
- Package scripts
-------------------------------------------------------------------
Thu Apr 11 13:13:54 UTC 2019 - Guillaume GARDET <guillaume.gardet@opensuse.org>
- Add patch to fix build with openCL:
* computelibrary-fix_opencl.patch
-------------------------------------------------------------------
Wed Apr 3 16:27:53 UTC 2019 - Guillaume GARDET <guillaume.gardet@opensuse.org>
- Update to 19.02
-------------------------------------------------------------------
Mon Jan 14 13:08:46 UTC 2019 - Guillaume GARDET <guillaume.gardet@opensuse.org>
- Update to 18.11
-------------------------------------------------------------------
Thu Sep 13 12:50:04 UTC 2018 - guillaume.gardet@opensuse.org
- Update to 18.08
- Remove upstreamed patches:
* fix_build_with_scons3.patch
* fix_c++11_syntax.patch
-------------------------------------------------------------------
Tue Jun 5 07:52:03 UTC 2018 - guillaume.gardet@opensuse.org
- Add missing includes
- Add sample-data
-------------------------------------------------------------------
Mon Jun 4 10:07:34 UTC 2018 - guillaume.gardet@opensuse.org
- Add soname option and require scons >= 2.4
- Add a -devel package
-------------------------------------------------------------------
Fri Jun 1 13:01:07 UTC 2018 - guillaume.gardet@opensuse.org
- Rename from arm_compute to ComputeLibrary (upstream name)
- Split libraries to a separate package
-------------------------------------------------------------------
Fri Jun 1 10:45:00 UTC 2018 - guillaume.gardet@opensuse.org
- Update to 18.05
- Add patches to fix builds on Leap 15.0+:
* fix_build_with_scons3.patch
* fix_c++11_syntax.patch
- Disable openCL on Leap 15.0+ since the build script is not yet
fully compatible with Python3 and breaks when openCL is enabled
-------------------------------------------------------------------
Mon Apr 3 17:03:33 UTC 2017 - afaerber@suse.de
- Initial release 17.03.1

154
ComputeLibrary.spec Normal file
View File

@ -0,0 +1,154 @@
#
# spec file for package ComputeLibrary
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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/
#
%ifarch aarch64
%if 0%{?suse_version} == 1315
%define broken_gcc48 1
%endif
%endif
%define so_ver 14
Name: ComputeLibrary
Version: 19.02
Release: 0
Summary: ARM Compute Library
License: MIT
Group: Productivity/Graphics/Other
Url: https://developer.arm.com/technologies/compute-library
Source: https://github.com/ARM-software/ComputeLibrary/archive/v%{version}.tar.gz#/ComputeLibrary-%{version}.tar.gz
Patch0: computelibrary-fix_opencl.patch
%if 0%{?broken_gcc48}
BuildRequires: gcc5
BuildRequires: gcc5-c++
%else
BuildRequires: gcc-c++
%endif
BuildRequires: git
BuildRequires: ocl-icd-devel
BuildRequires: scons >= 2.4
BuildRoot: %{_tmppath}/%{name}-%{version}-build
ExclusiveArch: aarch64 armv7l armv7hl x86_64
Recommends: %{name}-sample-data
%description
A software library for computer vision and machine learning.
The Compute Library is a collection of low-level functions optimized for Arm CPU and GPU architectures targeted at image processing, computer vision, and machine learning.
Examples binaries part.
%package -n libarm_compute%{so_ver}
Summary: ARM Compute Library -- libs
Group: System/Libraries
%description -n libarm_compute%{so_ver}
A software library for computer vision and machine learning.
The Compute Library is a collection of low-level functions optimized for Arm CPU and GPU architectures targeted at image processing, computer vision, and machine learning.
Library part.
%package devel
Summary: ARM Compute Library -- devel
Group: Development/Languages/C and C++
Requires: libarm_compute%{so_ver}
%description devel
A software library for computer vision and machine learning.
The Compute Library is a collection of low-level functions optimized for Arm CPU and GPU architectures targeted at image processing, computer vision, and machine learning.
Devel part, including headers.
%package sample-data
%define sampledir sample-data
Summary: Compute Library sample data
Group: Productivity/Graphics/Visualization/Other
%description sample-data
Free *.npy and *.ppm files to use with example binaries.
%prep
%setup -q -n ComputeLibrary-%{version}
%patch0 -p1
%build
%if 0%{?broken_gcc48}
export CC=gcc-5
export CXX=g++-5
%endif
scons os=linux build=native \
set_soname=1 \
examples=1 \
gles_compute=0 \
%ifarch aarch64 aarch64_ilp32
neon=1 arch=arm64-v8a \
%else
%ifarch armv7l armv7hl
neon=0 arch=armv7a \
%else
neon=0 arch=x86_64 \
%endif
%endif
opencl=1 \
extra_cxx_flags="%{optflags}" \
Werror=0 %{?_smp_mflags}
%install
rm build/examples/*.o
mkdir -p %{buildroot}%{_bindir}
cp -a build/examples/* %{buildroot}%{_bindir}/
mkdir -p %{buildroot}%{_libdir}
cp -a build/*.so* %{buildroot}%{_libdir}/
mkdir -p %{buildroot}%{_includedir}/
cp -a arm_compute/ include/half/ include/libnpy/ support/ utils/ %{buildroot}%{_includedir}/
# Remove *.cpp files from includedir
rm -f $(find %{buildroot}%{_includedir}/ -name *.cpp)
# Install sample data
mkdir -p %{buildroot}%{_datadir}/ComputeLibrary/%{sampledir}
cp -r data/* %{buildroot}%{_datadir}/ComputeLibrary/%{sampledir}
# Install scripts
cp scripts/* %{buildroot}%{_bindir}
%post -n libarm_compute%{so_ver} -p /sbin/ldconfig
%postun -n libarm_compute%{so_ver} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/*
%files -n libarm_compute%{so_ver}
%defattr(-,root,root)
%{_libdir}/*.so.%{so_ver}*
%files devel
%defattr(-,root,root)
%dir %{_includedir}/arm_compute
%dir %{_includedir}/half
%dir %{_includedir}/libnpy
%dir %{_includedir}/support
%dir %{_includedir}/utils
%{_includedir}/arm_compute/*
%{_includedir}/half/*
%{_includedir}/libnpy/*
%{_includedir}/support/*
%{_includedir}/utils/*
%{_libdir}/*.so
%files sample-data
%dir %{_datadir}/ComputeLibrary/
%{_datadir}/ComputeLibrary/%{sampledir}
%changelog

View File

@ -0,0 +1,11 @@
--- ComputeLibrary-19.02.orig/SConscript 2019-04-11 14:22:27.016123111 +0200
+++ ComputeLibrary-19.02/SConscript 2019-04-11 14:22:30.812150049 +0200
@@ -70,7 +70,7 @@ def resolve_includes(target, source, env
for i in range(len(source)):
src = source[i]
dst = target[i]
- contents = src.get_contents().splitlines()
+ contents = src.get_contents().decode('utf-8').splitlines()
entry = FileEntry(target_name=dst, file_contents=contents)
files.append((os.path.basename(src.get_path()),entry))