Accepting request 652818 from home:Guillaume_G:branches:science:machinelearning

- Switch to stable release: 2018.04
- First version

OBS-URL: https://build.opensuse.org/request/show/652818
OBS-URL: https://build.opensuse.org/package/show/science:machinelearning/libmetal?expand=0&rev=1
This commit is contained in:
Christian Goll 2019-01-30 09:29:13 +00:00 committed by Git OBS Bridge
commit cd29597efb
4 changed files with 128 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

3
libmetal-2018.04.tar.gz Normal file
View File

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

9
libmetal.changes Normal file
View File

@ -0,0 +1,9 @@
-------------------------------------------------------------------
Mon Sep 10 13:18:10 UTC 2018 - Guillaume GARDET <guillaume.gardet@opensuse.org>
- Switch to stable release: 2018.04
-------------------------------------------------------------------
Mon Jul 9 16:28:58 UTC 2018 - agraf@suse.com
- First version

93
libmetal.spec Normal file
View File

@ -0,0 +1,93 @@
#
# spec file for package libmetal
#
# Copyright (c) 2018 SUSE LINUX Products 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 http://bugs.opensuse.org/
#
Name: libmetal
Version: 2018.04
Release: 1
License: BSD-3-Clause
Summary: Bare metal interaction APIs
Url: https://github.com/OpenAMP/libmetal
Group: System/Libraries
Source: https://github.com/OpenAMP/libmetal/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: graphviz
BuildRequires: doxygen
BuildRequires: sysfsutils-devel
BuildRequires: cmake
BuildRequires: libhugetlbfs-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
ExclusiveArch: x86_64 %arm aarch64
%description
Libmetal provides common user APIs to access devices, handle device interrupts
and request memory across the following operating environments:
* Linux user space (based on UIO and VFIO support in the kernel)
* RTOS (with and without virtual memory)
* Bare-metal environments
%package -n libmetal0
Summary: Bare metal interaction APIs
Group: Development/Libraries/C and C++
Provides: %{name} = %{version}
%description -n libmetal0
Libmetal provides common user APIs to access devices, handle device interrupts
and request memory across the following operating environments:
* Linux user space (based on UIO and VFIO support in the kernel)
* RTOS (with and without virtual memory)
* Bare-metal environments
%package devel
Summary: Include Files and Libraries mandatory for Development
Group: Development/Languages/C and C++
Requires: libmetal0 = %{version}
%description devel
This package contains all necessary include files and libraries needed
to develop applications that require these.
%prep
%setup -q -n libmetal-%{version}
%ifarch armv6l armv6hl
ln -s arm lib/processor/armv6l
%endif
%ifarch armv7l armv7hl
ln -s arm lib/processor/armv7l
%endif
%build
%cmake
%make_jobs
%install
%cmake_install
rm -rf %{?buildroot}/usr/bin/test-metal*
mv %{?buildroot}%_datadir/doc/{metal,libmetal}
%post -n libmetal0 -p /sbin/ldconfig
%postun -n libmetal0 -p /sbin/ldconfig
%files -n libmetal0
%defattr(-,root,root)
%doc %_datadir/doc/libmetal/
%license %_datadir/doc/libmetal/LICENSE.md
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root)
%{_includedir}/metal/
%{_libdir}/*.so
%{_libdir}/*.a