From cd29597efb77030665454e690f6790e82e98c63df9e29f08975e4432adb780c2 Mon Sep 17 00:00:00 2001 From: Christian Goll Date: Wed, 30 Jan 2019 09:29:13 +0000 Subject: [PATCH] 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 --- .gitattributes | 23 ++++++++++ libmetal-2018.04.tar.gz | 3 ++ libmetal.changes | 9 ++++ libmetal.spec | 93 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 128 insertions(+) create mode 100644 .gitattributes create mode 100644 libmetal-2018.04.tar.gz create mode 100644 libmetal.changes create mode 100644 libmetal.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/libmetal-2018.04.tar.gz b/libmetal-2018.04.tar.gz new file mode 100644 index 0000000..e590237 --- /dev/null +++ b/libmetal-2018.04.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:081646360392483e31f2d402ccf353580d951ac3209530020aa367ede795b506 +size 151842 diff --git a/libmetal.changes b/libmetal.changes new file mode 100644 index 0000000..549e462 --- /dev/null +++ b/libmetal.changes @@ -0,0 +1,9 @@ +------------------------------------------------------------------- +Mon Sep 10 13:18:10 UTC 2018 - Guillaume GARDET + +- Switch to stable release: 2018.04 + +------------------------------------------------------------------- +Mon Jul 9 16:28:58 UTC 2018 - agraf@suse.com + +- First version diff --git a/libmetal.spec b/libmetal.spec new file mode 100644 index 0000000..c11a273 --- /dev/null +++ b/libmetal.spec @@ -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