forked from gpudirect/libgdsync
-
Notifications
You must be signed in to change notification settings - Fork 0
/
libgdsync.spec.in
99 lines (79 loc) · 2.56 KB
/
libgdsync.spec.in
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
Name: libgdsync
Version: @VERSION@
Release: 1
Summary: libgdsync implements GPUDirect Async support for Infiniband verbs.
Group: System Environment/Libraries
License: BSD
Url: http://github.org/gpudirect/libgdsync
Source: libibverbs-%{version}.tar.gz
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
BuildRequires: libnl-devel
%description
libgdsync implements GPUDirect Async support for Infiniband verbs.
GPUDirect Async is all about moving control logic from third-party devices
to the GPU.
libgdsync provides APIs which are similar to Infiniband verbs but
synchronous to CUDA streams.
%package devel
Summary: Development files for the libgdsync library
Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release}
#Provides: %{_prefix}/include/gdsync.h
%description devel
Header files for the libgdsync library.
%package devel-static
Summary: Static development files for the libgdsync library
Group: System Environment/Libraries
%description devel-static
Static libraries for the libgdsync library.
%package utils
Summary: Examples for the libgdsync library
Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release}
%description utils
Useful libgdsync1 example programs such as ibv_devinfo, which
displays information about RDMA devices.
%prep
%setup -q -n %{name}-@VERSION@
%build
%if %{_with_valgrind}
%configure %{configure_options} --libdir=%{_libdir}/mlnx_ofed/valgrind --with-valgrind
make %{?_smp_mflags}
make DESTDIR=$RPM_BUILD_DIR/%{name}-%{version}/valgrind install
rm -f $RPM_BUILD_DIR/%{name}-%{version}/valgrind/%{_libdir}/mlnx_ofed/valgrind/*.*a
make clean
%endif
%configure %{configure_options}
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=%{buildroot} install
%if %{_with_valgrind}
mkdir -p %{buildroot}/%{_libdir}/mlnx_ofed
cp -a $RPM_BUILD_DIR/%{name}-%{version}/valgrind/%{_libdir}/mlnx_ofed/valgrind %{buildroot}/%{_libdir}/mlnx_ofed
%endif
# remove unpackaged files from the buildroot
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%{_libdir}/libgdsync*.so.*
%doc AUTHORS COPYING ChangeLog README
%files devel
%defattr(-,root,root,-)
%{_libdir}/libgdsync*.so
%{_includedir}/*
%{_mandir}/man3/*
%{_mandir}/man7/*
%files devel-static
%defattr(-,root,root,-)
%{_libdir}/libgdsync*.a
%changelog
* 2019-05-06 Davide Rossetti <[email protected]>
- libgdsync.spec.in: align AC_INIT version to GDS_API_*_VERSION
* Wed Oct 5 2016 Davide Rossetti <[email protected]> - 1.0.0-1
- New upstream release