diff options
author | Jens Axboe <axboe@kernel.dk> | 2019-01-08 06:51:07 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-01-08 07:38:15 -0700 |
commit | f93c84e1b07474a7d776403b3516feeff4f3c933 (patch) | |
tree | 4b71b6a4013c643d669398fdb8f33f74b6081cd2 /liburing.spec | |
download | liburing-f93c84e1b07474a7d776403b3516feeff4f3c933.tar.gz liburing-f93c84e1b07474a7d776403b3516feeff4f3c933.tar.bz2 |
Initial commit
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'liburing.spec')
-rw-r--r-- | liburing.spec | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/liburing.spec b/liburing.spec new file mode 100644 index 0000000..35da5cb --- /dev/null +++ b/liburing.spec @@ -0,0 +1,55 @@ +Name: liburing +Version: 0.1 +Release: 1 +Summary: Linux-native io_uring I/O access library +License: LGPL +Group: System Environment/Libraries +Source: %{name}-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-root + +%description +Provides native async IO for the Linux kernel, in a fast and efficient +manner, for both buffered and O_DIRECT. + +%package devel +Summary: Development files for Linux-native io_uring I/O access library +Group: Development/System +Requires: liburing +Provides: liburing.so.1 + +%description devel +This package provides header files to include and libraries to link with +for the Linux-native io_uring. + +%prep +%setup + +%build +make + +%install +[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT + +make install DESTDIR=$RPM_BUILD_ROOT prefix=/usr libdir=/%{_libdir} + +%clean +[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%attr(0755,root,root) %{_libdir}/liburing.so.* +%doc COPYING TODO + +%files devel +%defattr(-,root,root) +%attr(0644,root,root) %{_includedir}/* +%attr(0755,root,root) %{_libdir}/liburing.so +%attr(0644,root,root) %{_libdir}/liburing.a + +%changelog +* Tue Jan 8 2019 Jens Axboe <axboe@kernel.dk> - 0.1 +- Initial version |