-
Notifications
You must be signed in to change notification settings - Fork 0
/
liburing.spec
155 lines (123 loc) · 3.82 KB
/
liburing.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
Summary: Linux-native io_uring I/O access library
Summary(pl.UTF-8): Biblioteka natywnego dla Linuksa dostępu we/wy io_uring
Name: liburing
Version: 2.6
Release: 1
License: LGPL v2+ or MIT
Group: Libraries
Source0: https://brick.kernel.dk/snaps/%{name}-%{version}.tar.bz2
# Source0-md5: 34a64ac60453932a4d62d733817dc8e2
URL: https://git.kernel.dk/cgit/liburing/
BuildRequires: libstdc++-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define specflags -fomit-frame-pointer -fno-stack-protector
%define filterout_c -fstack-protector.*
%description
Provides native async IO for the Linux kernel, in a fast and efficient
manner, for both buffered and O_DIRECT.
%description -l pl.UTF-8
Biblioteka udostępnia w sposób szybki i wydajny natywne,
asynchroniczne operacje we/wy dla jądra Linuksa, zarówno buforowane,
jak i O_DIRECT.
%package devel
Summary: Header files and development documentation for liburing
Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja programistyczna do biblioteki liburing
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
Development files for Linux-native io_uring I/O access library.
%description devel -l pl.UTF-8
Pliki nagłówkowe do biblioteki dostępu do natywnego dla Linuksa we/wy
io_uring.
%package static
Summary: Static liburing library
Summary(pl.UTF-8): Statyczna biblioteka liburing
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
%description static
Static liburing library.
%description static -l pl.UTF-8
Statyczna biblioteka liburing.
%package ffi
Summary: io_uring FFI library
Summary(pl.UTF-8): Biblioteka FFI dla io_uring
Group: Libraries
%description ffi
io_uring FFI library.
%description ffi -l pl.UTF-8
Biblioteka FFI dla io_uring.
%package ffi-devel
Summary: Development files for liburing-ffi
Summary(pl.UTF-8): Pliki programistyczne do biblioteki liburing-ffi
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
Requires: %{name}-ffi = %{version}-%{release}
%description ffi-devel
Development files for liburing-ffi.
%description ffi-devel -l pl.UTF-8
Pliki programistyczne do biblioteki liburing-ffi.
%package ffi-static
Summary: Static liburing-ffi library
Summary(pl.UTF-8): Statyczna biblioteka liburing-ffi
Group: Development/Libraries
Requires: %{name}-ffi-devel = %{version}-%{release}
%description ffi-static
Static liburing-ffi library.
%description ffi-static -l pl.UTF-8
Statyczna biblioteka liburing-ffi.
%prep
%setup -q
%build
# not autoconf configure
./configure \
--cc="%{__cc}" \
--prefix=%{_prefix} \
--libdir=%{_libdir} \
--libdevdir=%{_libdir} \
--mandir=%{_mandir} \
--includedir=%{_includedir}
%{__make} \
CFLAGS="%{rpmcflags}" \
LDFLAGS="%{rpmldflags}" \
V=1
%install
rm -rf $RPM_BUILD_ROOT
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT \
V=1
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%post ffi -p /sbin/ldconfig
%postun ffi -p /sbin/ldconfig
%files
%defattr(644,root,root,755)
%doc LICENSE README
%attr(755,root,root) %{_libdir}/liburing.so.*.*
%attr(755,root,root) %ghost %{_libdir}/liburing.so.2
%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/liburing.so
%{_includedir}/liburing
%{_includedir}/liburing.h
%{_pkgconfigdir}/liburing.pc
%{_mandir}/man2/io_uring_*.2*
%{_mandir}/man3/__io_uring_*.3*
%{_mandir}/man3/IO_URING_*.3*
%{_mandir}/man3/io_uring_*.3*
%{_mandir}/man7/io_uring.7*
%files static
%defattr(644,root,root,755)
%{_libdir}/liburing.a
%files ffi
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/liburing-ffi.so.*.*
%attr(755,root,root) %ghost %{_libdir}/liburing-ffi.so.2
%files ffi-devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/liburing-ffi.so
%{_pkgconfigdir}/liburing-ffi.pc
%files ffi-static
%defattr(644,root,root,755)
%{_libdir}/liburing-ffi.a