]>
Commit | Line | Data |
---|---|---|
1db96c92 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with psm # infinipath-psm provider | |
4 | # | |
5 | %ifnarch %{ix86} %{x8664} | |
6 | %undefine with_psm | |
7 | %endif | |
8 | Summary: User-space RDMA Fabric interface library | |
9 | Summary(pl.UTF-8): Biblioteka interfejsu przestrzeni użytkownika RDMA Fabric | |
10 | Name: libfabric | |
1db96c92 | 11 | Version: 1.0.0 |
3e199915 | 12 | Release: 1 |
1db96c92 JB |
13 | License: BSD or GPL v2 |
14 | Group: Libraries | |
3e199915 JB |
15 | Source0: https://www.openfabrics.org/downloads/ofi/%{name}-%{version}.tar.bz2 |
16 | # Source0-md5: 1ac5a06325f5c4f2587e98b9af6a5a12 | |
1db96c92 JB |
17 | Patch0: %{name}-missing.patch |
18 | URL: https://github.com/ofiwg/libfabric | |
19 | BuildRequires: autoconf >= 2.57 | |
20 | BuildRequires: automake >= 1:1.11 | |
21 | %{?with_psm:BuildRequires: infinipath-psm-devel >= 3.1} | |
22 | BuildRequires: libibverbs-devel | |
23 | BuildRequires: libnl-devel >= 3.2 | |
24 | BuildRequires: librdmacm-devel | |
25 | BuildRequires: libtool >= 2:2 | |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
29 | libfabric provides a user-space API to access high-performance fabric | |
30 | services, such as RDMA. | |
31 | ||
32 | %description -l pl.UTF-8 | |
33 | libfabric dostarcza API przestrzeni użytkownika pozwalające na dostęp | |
34 | do wysoko wydajnych usług sieci typu fabric, takich jak RDMA. | |
35 | ||
36 | %package devel | |
37 | Summary: Development files for libfabric library | |
38 | Summary(pl.UTF-8): Pliki programistyczne biblioteki libfabric | |
39 | Group: Development/Libraries | |
40 | Requires: %{name} = %{version}-%{release} | |
41 | ||
42 | %description devel | |
43 | Header files for libfabric library. | |
44 | ||
45 | %description devel -l pl.UTF-8 | |
46 | Pliki nagłówkowe biblioteki libfabric. | |
47 | ||
48 | %package static | |
49 | Summary: Static libfabric library | |
50 | Summary(pl.UTF-8): Statyczna biblioteka libfabric | |
51 | Group: Development/Libraries | |
52 | Requires: %{name}-devel = %{version}-%{release} | |
53 | ||
54 | %description static | |
55 | Static libfabric library. | |
56 | ||
57 | %description static -l pl.UTF-8 | |
58 | Statyczna biblioteka libfabric. | |
59 | ||
60 | %prep | |
3e199915 | 61 | %setup -q |
1db96c92 JB |
62 | %patch0 -p1 |
63 | ||
64 | %build | |
65 | %{__libtoolize} | |
66 | %{__aclocal} -I config | |
67 | %{__autoconf} | |
68 | %{__autoheader} | |
69 | %{__automake} | |
70 | %configure \ | |
71 | %{!?with_psm:--disable-psm} \ | |
72 | --disable-silent-rules | |
73 | %{__make} | |
74 | ||
75 | %install | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
78 | %{__make} install \ | |
79 | DESTDIR=$RPM_BUILD_ROOT | |
80 | ||
81 | %clean | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %post -p /sbin/ldconfig | |
85 | %postun -p /sbin/ldconfig | |
86 | ||
87 | %files | |
88 | %defattr(644,root,root,755) | |
89 | %doc AUTHORS COPYING README | |
90 | %attr(755,root,root) %{_libdir}/libfabric.so.*.*.* | |
91 | %attr(755,root,root) %ghost %{_libdir}/libfabric.so.1 | |
92 | ||
93 | %files devel | |
94 | %defattr(644,root,root,755) | |
95 | %attr(755,root,root) %{_libdir}/libfabric.so | |
96 | %{_libdir}/libfabric.la | |
97 | %{_includedir}/rdma/fabric.h | |
98 | %{_includedir}/rdma/fi_*.h | |
99 | %{_mandir}/man3/fi_*.3* | |
100 | %{_mandir}/man7/fabric.7* | |
3e199915 | 101 | %{_mandir}/man7/fi_*.7* |
1db96c92 JB |
102 | |
103 | %files static | |
104 | %defattr(644,root,root,755) | |
105 | %{_libdir}/libfabric.a |