forked from accelio/accelio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
libxio.spec
114 lines (85 loc) · 2.23 KB
/
libxio.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
%bcond_with devel_mode
%bcond_without kmod
%define debug_package %{nil}
Name: libxio
Version: 1.6
Release: 2%{?dist}
Summary: Accelio - The Open Source I/O, Message, and RPC Acceleration Library
Group: System Environment/Libraries
License: GPLv2 or BSD
Url: http://www.accelio.org/
Source: http://github.com/accelio/accelio/archive/v%{version}.tar.gz
BuildRequires: autoconf, libtool
BuildRequires: numactl-devel, libaio-devel, libibverbs-devel, librdmacm-devel
%if %{with kmod}
BuildRequires: kernel-devel
%endif
%description
Accelio provides an easy-to-use, reliable, scalable,
and high performance data/message delivery middleware
that maximizes the efficiency of modern CPU and NIC hardware
and that reduces time-to-market of new scale-out applications.
%package devel
Summary: Development files for the libxio library
Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release} libibverbs-devel%{?_isa}
%description devel
Development files for the libxio library.
%if 0%{with kmod}
%package kmod
Summary: Accelio Kernel Modules
Group: System Environment/Libraries
%description kmod
Accelio Kernel Modules
%endif
%prep
%setup -q -n accelio-%{version}
%build
./autogen.sh
%configure \
--disable-static \
%if 0%{with kmod}
--enable-kernel-module \
%endif
%if 0%{without devel_mode}
--enable-stat-counters=no \
--enable-extra-checks=no \
%endif
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install
# remove unpackaged files from the buildroot
find %{buildroot} -name '*.la' -exec rm -f {} ';'
%files
%if 0%{without kmod}
%{_bindir}/*
%{_libdir}/libxio.so*
%{_libdir}/libraio.so*
%endif
%doc AUTHORS COPYING README
%files devel
%if 0%{with kmod}
/opt/*
%else
%{_includedir}/*
%endif
%if 0%{with kmod}
%files kmod
/lib/modules/*
%endif
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%if 0%{with kmod}
%post kmod
depmod -a
%postun kmod
depmod -a
%endif
%changelog
* Fri Jan 15 2016 Vladislav Odintsov <[email protected]> 1.6-2
- Added devel mode build (enabled perfcounters and extra checks)
- Added support for kernel module build
* Tue Nov 17 2015 Mikhail Ushanov <[email protected]> 1.6-1
- Bump version accelio to 1.6
* Tue Nov 17 2015 Mikhail Ushanov <[email protected]> 1.5-1
- Initial spec file