diff --git a/README.md b/README.md index 75aaed2..1f4f4dc 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libnvme +C Library for NVM Express on Linux. + diff --git a/libnvme.spec b/libnvme.spec new file mode 100644 index 0000000..66d0161 --- /dev/null +++ b/libnvme.spec @@ -0,0 +1,89 @@ +Name: libnvme +Version: 1.5 +Release: 1mamba +Summary: C Library for NVM Express on Linux +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/linux-nvme/libnvme +Source: https://github.com/linux-nvme/libnvme.git/v%{version}/libnvme-%{version}.tar.bz2 +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libjson-c-devel +BuildRequires: libkeyutils-devel +BuildRequires: libopenssl-devel +BuildRequires: libpython3-devel +## AUTOBUILDREQ-END +BuildRequires: meson + +%description +C Library for NVM Express on Linux. + +%package devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +## note: you can add this requirement if .pc files are provided by this package +#Requires: pkg-config + +%description devel +This package contains libraries and header files for developing applications that use %{name}. + +%package -n python-libnvme-py3 +Group: System/Libraries/Python +Summary: Python bindings to %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description -n python-libnvme-py3 +This package contains the Python bindings to %{name}. + +%debug_package + +%prep +%setup -q + +%build +%meson +%meson_build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%meson_install + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_libdir}/libnvme-mi.so.* +%{_libdir}/libnvme.so.* +%doc COPYING + +%files devel +%defattr(-,root,root) +%{_includedir}/libnvme-mi.h +%{_includedir}/libnvme.h +%dir %{_includedir}/nvme +%{_includedir}/nvme/*.h +%{_libdir}/libnvme-mi.so +%{_libdir}/libnvme.so +%{_libdir}/pkgconfig/libnvme-mi.pc +%{_libdir}/pkgconfig/libnvme.pc +%doc README.md + +%files -n python-libnvme-py3 +%defattr(-,root,root) +%dir %{python3_sitearch}/libnvme +%dir %{python3_sitearch}/libnvme/__pycache__ +%{python3_sitearch}/libnvme/__pycache__/*.pyc +%{python3_sitearch}/libnvme/_nvme.cpython-*.so +%{python3_sitearch}/libnvme/*.py + +%changelog +* Sat Aug 19 2023 Silvan Calarco 1.5-1mamba +- package created using the webbuild interface