summaryrefslogtreecommitdiffstats
path: root/libnvme.spec.in
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-08-15 12:26:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-08-15 12:26:29 +0000
commit33b8fe1a294d670d67a2e9802ca0c753826b1562 (patch)
treec7909b9865f0ee1b4f517d16283a0420ce08566b /libnvme.spec.in
parentReleasing debian version 1.1~rc0-1. (diff)
downloadlibnvme-33b8fe1a294d670d67a2e9802ca0c753826b1562.tar.xz
libnvme-33b8fe1a294d670d67a2e9802ca0c753826b1562.zip
Merging upstream version 1.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'libnvme.spec.in')
-rw-r--r--libnvme.spec.in26
1 files changed, 11 insertions, 15 deletions
diff --git a/libnvme.spec.in b/libnvme.spec.in
index 8a2e4e5..ea263ce 100644
--- a/libnvme.spec.in
+++ b/libnvme.spec.in
@@ -4,14 +4,10 @@ Release: 0
Summary: Linux-native nvme device management library
License: @LICENSE@
-Source: %{name}-%{version}.tar.gz
+Source: libnvme.tar.gz
BuildRoot: %{_tmppath}/%{name}-root
URL: http://github.com/linux-nvme/libnvme
-BuildRequires: libuuid-devel
-BuildRequires: meson
-BuildRequires: gcc
-
%description
Provides library functions for accessing and managing nvme devices on a Linux
system.
@@ -29,29 +25,29 @@ for Linux-native nvme device maangement.
%autosetup -c
%build
-%meson
-%meson_build
+meson .build -Ddocs=man -Ddocs-build=true -Ddefault_library=both
%install
-%meson_install
-
-%check
-%meson_test
+cd .build
+meson install --destdir %{buildroot} --skip-subprojects
%files
%defattr(-,root,root)
-%attr(0755,root,root) %{_libdir}/libnvme.so.*
+%attr(0755,root,root) %{_libdir}/libnvme*
%doc COPYING
%files devel
%defattr(-,root,root)
%attr(-,root,root) %{_includedir}/nvme/
-%attr(0644,root,root) %{_includedir}/libnvme.h
-%attr(0755,root,root) %{_libdir}/libnvme.so
-%attr(0644,root,root) %{_libdir}/libnvme.a
+%attr(0644,root,root) %{_includedir}/libnvme*
+%attr(0755,root,root) %{_libdir}/libnvme*
%attr(0644,root,root) %{_libdir}/pkgconfig/*
%attr(0644,root,root) %{_mandir}/man2/*
%changelog
+* Wed Jul 13 2022 Steven Seungcheol Lee <sc108.lee@samsung.com>
+- Enable building rpm
+- meson is needed higher version then what rpm repo offering (use pip install)
+
* Thu Dec 12 2019 Keith Busch <kbusch@kernel.org> - 0.1
- Initial version