-
Notifications
You must be signed in to change notification settings - Fork 6
/
xpmem.spec.in
81 lines (66 loc) · 2.35 KB
/
xpmem.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
#define buildforkernels newest
#define buildforkernels current
#define buildforkernels akmod
%global debug_package %{nil}
Summary: XPMEM: Cross-partition memory
Name: xpmem
Version: @PACKAGE_VERSION@
Release: 1
License: LGPLv2.1
Group: System Environment/Libraries
Packager: Nathan Hjelm
Source: %{name}-%{version}.tar.gz
BuildRequires: automake
BuildRequires: autoconf
BuildRequires: libtool
BuildRequires: pkg-config
# Make sure those macros are available. For "other" platforms:
%{!?make_build: %global make_build %{__make} %{?_smp_mflags} %{?mflags} V=1}
%{!?run_ldconfig: %global run_ldconfig %{?ldconfig}}
%description
XPMEM is a Linux kernel module that enables a process to map the
memory of another process into its virtual address space. Source code
can be obtained by cloning the Git repository, original Mercurial
repository or by downloading a tarball from the link above.
%package -n libxpmem
Summary: XPMEM: user-space library
%description -n libxpmem
XPMEM is a Linux kernel module that enables a process to map the
memory of another process into its virtual address space. Source code
can be obtained by cloning the Git repository, original Mercurial
repository or by downloading a tarball from the link above.
This package contains the user-space library needed to interface with XPMEM.
%package -n libxpmem-devel
Summary: XPMEM: user-space library headers
Group: System Environment/Libraries
Requires: libxpmem%{?_isa} = %{version}-%{release}
%description -n libxpmem-devel
XPMEM is a Linux kernel module that enables a process to map the
memory of another process into its virtual address space. Source code
can be obtained by cloning the Git repository, original Mercurial
repository or by downloading a tarball from the link above.
This package contains the development headers for the user-space library
needed to interface with XPMEM.
%prep
%setup
%build
%configure --disable-kernel-module
%make_build
%install
%make_install
rm -rf ${RPM_BUILD_ROOT}/etc # /etc/.version , udev rules
%post -n libxpmem
%if 0%{?fedora} || 0%{?rhel} > 7
# https://fedoraproject.org/wiki/Changes/Removing_ldconfig_scriptlets
%else
%{run_ldconfig}
%endif
%files -n libxpmem
%doc README AUTHORS COPYING.LESSER
%{_libdir}/libxpmem.so.*
%files -n libxpmem-devel
%{_includedir}/xpmem.h
%{_libdir}/libxpmem.a
%{_libdir}/libxpmem.la
%{_libdir}/libxpmem.so
%{_libdir}/pkgconfig/cray-xpmem.pc