Blame packages/libn/libnvme/libnvme.spec

4316c9
#
4316c9
# spec file for package libnvme
4316c9
#
4316c9
# Copyright (c) 2022 SUSE LLC
4316c9
#
4316c9
# All modifications and additions to the file contributed by third parties
4316c9
# remain the property of their copyright owners, unless otherwise agreed
4316c9
# upon. The license for this file, and modifications and additions to the
4316c9
# file, is the same license as for the pristine package itself (unless the
4316c9
# license for the pristine package is not an Open Source License, in which
4316c9
# case the license is the MIT License). An "Open Source License" is a
4316c9
# license that conforms to the Open Source Definition (Version 1.9)
4316c9
# published by the Open Source Initiative.
4316c9
4316c9
# Please submit bugfixes or comments via https://bugs.opensuse.org/
4316c9
#
4316c9
17d306
4316c9
%define sover 1
4316c9
4316c9
Name:           libnvme
Bernhard M. Wiedemann f155be
Version:        1.0~3
4316c9
Release:        0
4316c9
Summary:        Linux-native nvme device management library
17d306
License:        LGPL-2.1-only
4316c9
URL:            https://github.com/linux-nvme/libnvme/
4316c9
Source0:        libnvme-%{version}.tar.gz
17d306
BuildRequires:  gcc
17d306
BuildRequires:  gcc-c++
4316c9
BuildRequires:  libjson-c-devel
17d306
BuildRequires:  libuuid-devel
17d306
BuildRequires:  make
17d306
BuildRequires:  meson >= 0.47.0
4316c9
BuildRequires:  openssl-devel
17d306
BuildRequires:  python3-devel
17d306
BuildRequires:  swig
4316c9
4316c9
%description
4316c9
Provides library functions for accessing and managing NVMe devices on a Linux
4316c9
system.
4316c9
4316c9
%package -n %{name}%{sover}
4316c9
Summary:        Linux-native nvme device management library
4316c9
4316c9
%description -n %{name}%{sover}
4316c9
Provides library functions for accessing and managing NVMe devices on a Linux
4316c9
system.
4316c9
4316c9
%package        devel
4316c9
Summary:        Development files for %{name}
4316c9
Requires:       %{name}%{sover} = %{version}
4316c9
4316c9
%description    devel
4316c9
The %{name}-devel package contains libraries and header files for
4316c9
developing applications that use %{name}.
4316c9
4316c9
%package -n	python3-libnvme
4316c9
Summary:        Python binding for %{name}
4316c9
4316c9
%description -n python3-libnvme
4316c9
Provides library functions for accessing and managing NVMe devices on a Linux
4316c9
system.
4316c9
4316c9
Python binding part.
4316c9
4316c9
%prep
4316c9
%autosetup -p1
4316c9
4316c9
%build
4316c9
%meson \
Bernhard M. Wiedemann f155be
    -Ddocs=man
4316c9
%meson_build
4316c9
4316c9
%install
4316c9
%meson_install
4316c9
4316c9
%post -n %{name}%{sover} -p /sbin/ldconfig
4316c9
%postun -n %{name}%{sover} -p /sbin/ldconfig
4316c9
4316c9
%files -n %{name}%{sover}
4316c9
%license COPYING
4316c9
%doc README.md
4316c9
%{_libdir}/%{name}.so.%{sover}*
4316c9
4316c9
%files devel
4316c9
%doc README.md
4316c9
%{_includedir}/*
4316c9
%{_libdir}/%{name}*.so
4316c9
%{_libdir}/pkgconfig/%{name}.pc
4316c9
%{_mandir}/*/*
4316c9
4316c9
%files -n python3-libnvme
4316c9
%{python3_sitearch}/libnvme
4316c9
%{python3_sitearch}/libnvme/*.so
4316c9
%{python3_sitearch}/libnvme/__init__.py
4316c9
%{python3_sitearch}/libnvme/nvme.py
4316c9
4316c9
%changelog