Accepting request 947205 from home:wagi

I want to maintain libnvme in Factory and would like to use Base:System as the devel/feeder project. nvme-cli 2.x depends on libnvme 1.x

OBS-URL: https://build.opensuse.org/request/show/947205
OBS-URL: https://build.opensuse.org/package/show/Base:System/libnvme?expand=0&rev=1
This commit is contained in:
Andreas Jaeger 2022-01-18 11:42:11 +00:00 committed by Git OBS Bridge
commit 43e5d05830
5 changed files with 129 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

3
libnvme-1.0-rc0.tar.gz Normal file
View File

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

4
libnvme.changes Normal file
View File

@ -0,0 +1,4 @@
-------------------------------------------------------------------
Fri Jan 14 17:54:47 UTC 2022 - Daniel Wagner <daniel.wagner@suse.com>
- Initial package creation for libnvme

98
libnvme.spec Normal file
View File

@ -0,0 +1,98 @@
#
# spec file for package libnvme
#
# Copyright (c) 2022 SUSE LLC
#
# 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/
#
%define sover 1
%define version_rc %(echo %{version} | sed 's/~/-rc/')
Name: libnvme
Version: 1.0~0
Release: 0
Summary: Linux-native nvme device management library
License: LGPL-2.1
URL: https://github.com/linux-nvme/nvme-cli/
Source0: https://github.com/linux-nvme/nvme-cli/archive/v%{version_rc}.tar.gz#/%{name}-%{version_rc}.tar.gz
BuildRequires: meson >= 0.47.0
BuildRequires: gcc gcc-c++ make
BuildRequires: libuuid-devel
BuildRequires: libjson-c-devel
BuildRequires: openssl-devel
BuildRequires: swig
BuildRequires: python3-devel
BuildRequires: python3-Sphinx
%description
Provides library functions for accessing and managing NVMe devices on a Linux
system.
%package -n %{name}%{sover}
Summary: Linux-native nvme device management library
%description -n %{name}%{sover}
Provides library functions for accessing and managing NVMe devices on a Linux
system.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{sover} = %{version}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%package -n python3-libnvme
Summary: Python binding for %{name}
Provides: python-libnvme
%description -n python3-libnvme
Provides library functions for accessing and managing NVMe devices on a Linux
system.
Python binding part.
%prep
%autosetup -p1 -n %{name}-%{version_rc}
%build
%meson \
-Dman=true
%meson_build
%install
%meson_install
%post -n %{name}%{sover} -p /sbin/ldconfig
%postun -n %{name}%{sover} -p /sbin/ldconfig
%files -n %{name}%{sover}
%license COPYING
%doc README.md
%{_libdir}/%{name}.so.%{sover}*
%files devel
%doc README.md
%{_includedir}/*
%{_libdir}/%{name}*.so
%{_libdir}/pkgconfig/%{name}.pc
%{_mandir}/*/*
%files -n python3-libnvme
%{python3_sitearch}/libnvme
%{python3_sitearch}/libnvme/*.so
%{python3_sitearch}/libnvme/__init__.py
%{python3_sitearch}/libnvme/nvme.py
%changelog