forked from pmem/pmemfile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pmemfile-debug.spec
65 lines (53 loc) · 1.64 KB
/
pmemfile-debug.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
Name: pmemfile
Version: 0.1
Release: 0%{?dist}
Summary: Persistent memory-backed, userspace implementation of POSIX-like API.
License: BSD
URL: http://github.com/pmem/pmemfile
Source0: pmemfile-%{version}.tar.gz
#Source0: https://github.com/pmem/pmemfile/archive/%{version}.tar.gz#/pmemfile-%{version}.tar.gz
BuildRequires: glibc-devel
BuildRequires: cmake
BuildRequires: pkgconfig
BuildRequires: libpmemobj-devel
BuildRequires: libsyscall_intercept-devel
#ExclusiveArch: x86_64
%description
XXX
%package -n libpmemfile-posix-debug
Summary: Persistent memory-backed, userspace implementation of POSIX-like API
Group: System Environment/Libraries
%description -n libpmemfile-posix-debug
XXX
%files -n libpmemfile-posix-debug
%defattr(-,root,root,-)
%{_libdir}/pmemfile_debug/libpmemfile-posix.so.*
%{_libdir}/pmemfile_debug/libpmemfile-posix.so
%{_libdir}/pmemfile_debug/libpmemfile-posix.a
%license LICENSE
%package -n libpmemfile-debug
Summary: Persistent memory-backed, transaparent (LD_PRELOAD) userspace implementation of POSIX-like API
Group: System Environment/Libraries
%description -n libpmemfile-debug
XXX
%files -n libpmemfile-debug
%defattr(-,root,root,-)
%{_libdir}/pmemfile_debug/libpmemfile.so.*
%{_libdir}/pmemfile_debug/libpmemfile.so
%license LICENSE
%doc
%prep
%setup -q -n %{name}-%{version}
%build
mkdir dbg_build && cd dbg_build
%cmake .. -DCMAKE_BUILD_TYPE=Debug -DTESTS_USE_FORCED_PMEM=1
make %{?_smp_mflags}
%install
cd dbg_build
make install DESTDIR=%{buildroot}
%check
cd dbg_build
ctest %{?_smp_mflags} -E preload_unix --output-on-failure
%changelog
* Tue Feb 14 2017 Marcin Ślusarz <[email protected]> - 0.1-1
- Initial RPM release