-
Notifications
You must be signed in to change notification settings - Fork 37
/
xpmem-kmod.spec
50 lines (41 loc) · 1.32 KB
/
xpmem-kmod.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
#define buildforkernels newest
#define buildforkernels current
#define buildforkernels akmod
%define kernel_release %(uname -r | sed -e 's/\.[^.]*$//g')
%global debug_package %{nil}
Summary: XPMEM: Cross-partition memory
Name: xpmem-kmod-%{kernel_release}
Version: 2.6.5
Release: 0
License: GPLv2
Group: System Environment/Kernel
Packager: Nathan Hjelm
Source: xpmem-0.2.tar.bz2
BuildRoot: %{_tmppath}/%{name}-0.2-build
Requires: kernel = %{kernel_release}
Provides: xpmem-kmod
%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.
%prep
%setup -n xpmem-0.2
%build
./configure --prefix=/opt/xpmem
pushd kernel ; make ; popd
%install
pushd kernel ; make DESTDIR=$RPM_BUILD_ROOT install ; popd
mkdir -p $RPM_BUILD_ROOT/etc/udev/rules.d
mkdir -p $RPM_BUILD_ROOT/lib/modules/$(uname -r)/kernel/extra
cp 56-xpmem.rules $RPM_BUILD_ROOT/etc/udev/rules.d
cp $RPM_BUILD_ROOT/opt/xpmem/lib/modules/$(uname -r)/xpmem.ko $RPM_BUILD_ROOT/lib/modules/$(uname -r)/kernel/extra
%post
touch /etc/udev/rules.d/56-xpmem.rules
depmod -a
%files
%defattr(-, root, root)
/opt
/lib/modules
%config(noreplace)
/etc/udev/rules.d/56-xpmem.rules