summaryrefslogtreecommitdiffstats
path: root/libnvme.spec.in
diff options
context:
space:
mode:
Diffstat (limited to '')
-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