]> git.pld-linux.org Git - packages/libibverbs.git/blob - libibverbs.spec
d9a25601adef5459b256ad564c75ca2b9b4dc16d
[packages/libibverbs.git] / libibverbs.spec
1 Summary:        A library for direct userspace use of InfiniBand hardware
2 Summary(pl.UTF-8):      Biblioteka bezpośredniego dostępu do sprzętu InfiniBand z przestrzeni użytkownika
3 Name:           libibverbs
4 Version:        1.1.7
5 Release:        1
6 License:        BSD or GPL v2
7 Group:          Libraries
8 Source0:        http://www.openfabrics.org/downloads/verbs/%{name}-%{version}.tar.gz
9 # Source0-md5:  5aea59e4766ae4548419010ac84032ff
10 Source1:        %{name}.pc.in
11 URL:            http://openib.org/
12 BuildRequires:  rpmbuild(macros) >= 1.402
13 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15 %description
16 libibverbs is a library that allows userspace processes to use
17 InfiniBand "verbs" as described in the InfiniBand Architecture
18 Specification. This includes direct hardware access for fast path
19 operations.
20
21 For this library to be useful, a device-specific plug-in module should
22 also be installed.
23
24 %description -l pl.UTF-8
25 libibverbs to biblioteka pozwalająca procesom przestrzeni użytkownika
26 używać metod "verbs" InfiniBand opisanej w specyfikacji architektury
27 InfiniBand. Obejmuje to bezpośredni dostęp do sprzętu dla operacji po
28 szybkiej ścieżce.
29
30 Aby ta biblioteka była użyteczna powinien być zainstalowany także
31 odpowiedni moduł dla używanego sprzętu.
32
33 %package devel
34 Summary:        Development files for libibverbs library
35 Summary(pl.UTF-8):      Pliki programistyczne biblioteki libibverbs
36 Group:          Development/Libraries
37 Requires:       %{name} = %{version}-%{release}
38
39 %description devel
40 Header files for libibverbs library.
41
42 %description devel -l pl.UTF-8
43 Pliki nagłówkowe biblioteki libibverbs.
44
45 %package static
46 Summary:        Static libibverbs library
47 Summary(pl.UTF-8):      Statyczna biblioteka libibverbs
48 Group:          Development/Libraries
49 Requires:       %{name}-devel = %{version}-%{release}
50 Obsoletes:      libibverbs-devel-static
51
52 %description static
53 Static libibverbs library.
54
55 %description static -l pl.UTF-8
56 Statyczna biblioteka libibverbs.
57
58 %package utils
59 Summary:        Examples for the libibverbs library
60 Summary(pl.UTF-8):      Przykładowe programy do biblioteki libibverbs
61 Group:          Applications/System
62 Requires:       %{name} = %{version}-%{release}
63
64 %description utils
65 Useful libibverbs example programs such as ibv_devinfo, which
66 displays information about InfiniBand devices.
67
68 %description utils -l pl.UTF-8
69 Przydatne programy przykładowe do biblioteki libibverbs, takie jak
70 ibv_devinfo wyświetlający informacje o urządzeniach InfiniBand.
71
72 %prep
73 %setup -q
74
75 %build
76 %configure \
77         --disable-silent-rules
78 %{__make}
79
80 %install
81 rm -rf $RPM_BUILD_ROOT
82 install -d $RPM_BUILD_ROOT%{_sysconfdir}/libibverbs.d
83
84 %{__make} install \
85         DESTDIR=$RPM_BUILD_ROOT
86
87 # check if not present already
88 [ ! -f $RPM_BUILD_ROOT%{_pkgconfigdir}/ibverbs.pc ] || exit 1
89 install -d $RPM_BUILD_ROOT%{_pkgconfigdir}
90 sed -e 's,@prefix@,%{_prefix},;
91         s,@libdir@,%{_libdir},;
92         s,@LIBVERSION@,%{version},' %{SOURCE1} >$RPM_BUILD_ROOT%{_pkgconfigdir}/ibverbs.pc
93
94 %clean
95 rm -rf $RPM_BUILD_ROOT
96
97 %post   -p /sbin/ldconfig
98 %postun -p /sbin/ldconfig
99
100 %files
101 %defattr(644,root,root,755)
102 %doc AUTHORS COPYING ChangeLog README
103 %attr(755,root,root) %{_libdir}/libibverbs.so.*.*.*
104 %attr(755,root,root) %ghost %{_libdir}/libibverbs.so.1
105 %dir %{_sysconfdir}/libibverbs.d
106
107 %files devel
108 %defattr(644,root,root,755)
109 %attr(755,root,root) %{_libdir}/libibverbs.so
110 %{_libdir}/libibverbs.la
111 %{_includedir}/infiniband
112 %{_pkgconfigdir}/ibverbs.pc
113 %{_mandir}/man3/ibv_*.3*
114 %{_mandir}/man3/mbps_to_ibv_rate.3*
115 %{_mandir}/man3/mult_to_ibv_rate.3*
116
117 %files static
118 %defattr(644,root,root,755)
119 %{_libdir}/libibverbs.a
120
121 %files utils
122 %defattr(644,root,root,755)
123 %attr(755,root,root) %{_bindir}/ibv_*
124 %{_mandir}/man1/ibv_*.1*
This page took 0.55576 seconds and 2 git commands to generate.