]> git.pld-linux.org Git - packages/liburing.git/blob - liburing.spec
up to 2.0 (new soname)
[packages/liburing.git] / liburing.spec
1 Summary:        Linux-native io_uring I/O access library
2 Summary(pl.UTF-8):      Biblioteka natywnego dla Linuksa dostępu we/wy io_uring
3 Name:           liburing
4 Version:        2.0
5 Release:        1
6 License:        LGPL v2+ or MIT
7 Group:          Libraries
8 Source0:        https://brick.kernel.dk/snaps/%{name}-%{version}.tar.bz2
9 # Source0-md5:  16e2b697e36fd8440c498bf54b184406
10 URL:            https://git.kernel.dk/cgit/liburing/
11 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
12
13 %define         specflags       -fomit-frame-pointer
14
15 %description
16 Provides native async IO for the Linux kernel, in a fast and efficient
17 manner, for both buffered and O_DIRECT.
18
19 %description -l pl.UTF-8
20 Biblioteka udostępnia w sposób szybki i wydajny natywne,
21 asynchroniczne operacje we/wy dla jądra Linuksa, zarówno buforowane,
22 jak i O_DIRECT.
23
24 %package devel
25 Summary:        Header files and development documentation for liburing
26 Summary(pl.UTF-8):      Pliki nagłówkowe i dokumentacja programistyczna do biblioteki liburing
27 Group:          Development/Libraries
28 Requires:       %{name} = %{version}-%{release}
29
30 %description devel
31 Development files for Linux-native io_uring I/O access library.
32
33 %description devel -l pl.UTF-8
34 Pliki nagłówkowe do biblioteki dostępu do natywnego dla Linuksa we/wy
35 io_uring.
36
37 %package static
38 Summary:        Static liburing library
39 Summary(pl.UTF-8):      Statyczna biblioteka liburing
40 Group:          Development/Libraries
41 Requires:       %{name}-devel = %{version}-%{release}
42
43 %description static
44 Static liburing library.
45
46 %description static -l pl.UTF-8
47 Statyczna biblioteka liburing.
48
49 %prep
50 %setup -q
51
52 %build
53 # not autoconf configure
54 ./configure \
55         --cc="%{__cc}" \
56         --prefix=%{_prefix} \
57         --libdir=%{_libdir} \
58         --libdevdir=%{_libdir} \
59         --mandir=%{_mandir} \
60         --includedir=%{_includedir}
61  
62 %{__make} \
63         CFLAGS="%{rpmcflags}" \
64         LDFLAGS="%{rpmldflags}"
65
66 %install
67 rm -rf $RPM_BUILD_ROOT
68
69 %{__make} install \
70         DESTDIR=$RPM_BUILD_ROOT
71
72 %clean
73 rm -rf $RPM_BUILD_ROOT
74
75 %post   -p /sbin/ldconfig
76 %postun -p /sbin/ldconfig
77
78 %files
79 %defattr(644,root,root,755)
80 %doc LICENSE README
81 %attr(755,root,root) %{_libdir}/liburing.so.*.*
82 %attr(755,root,root) %ghost %{_libdir}/liburing.so.2
83
84 %files devel
85 %defattr(644,root,root,755)
86 %attr(755,root,root) %{_libdir}/liburing.so
87 %{_includedir}/liburing
88 %{_includedir}/liburing.h
89 %{_pkgconfigdir}/liburing.pc
90 %{_mandir}/man2/io_uring_*.2*
91 %{_mandir}/man3/io_uring_*.3*
92 %{_mandir}/man7/io_uring.7*
93
94 %files static
95 %defattr(644,root,root,755)
96 %{_libdir}/liburing.a
This page took 0.076106 seconds and 4 git commands to generate.