forked from pmem/pmemfile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pmemfile.spec
106 lines (88 loc) · 2.54 KB
/
pmemfile.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
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
99
100
101
102
103
104
105
106
%global __python %{__python3}
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
Summary: Persistent memory-backed, userspace implementation of POSIX-like API
Group: System Environment/Libraries
%description -n libpmemfile-posix
XXX
%files -n libpmemfile-posix
%defattr(-,root,root,-)
%{_libdir}/libpmemfile-posix.so.*
%license LICENSE
%doc README.md
%package -n libpmemfile-posix-devel
Summary: Development files for libpmemfile-posix library
Group: Development/Libraries
Requires: libpmemfile-posix = %{version}-%{release}
%description -n libpmemfile-posix-devel
Development files for libpmemfile-posix library
%files -n libpmemfile-posix-devel
%defattr(-,root,root,-)
%{_libdir}/libpmemfile-posix.so
%{_libdir}/libpmemfile-posix.a
%{_libdir}/pkgconfig/libpmemfile-posix.pc
%{_includedir}/libpmemfile-posix.h
%{_includedir}/libpmemfile-posix-stubs.h
%{_mandir}/man3/libpmemfile-posix.3.gz
%license LICENSE
%doc
%package -n libpmemfile
Summary: Persistent memory-backed, transaparent (LD_PRELOAD) userspace implementation of POSIX-like API
Group: System Environment/Libraries
%description -n libpmemfile
XXX
%files -n libpmemfile
%defattr(-,root,root,-)
%{_libdir}/libpmemfile.so.*
%{_libdir}/libpmemfile.so
%{_mandir}/man1/libpmemfile.1.gz
%license LICENSE
%doc
%package -n pmemfile-tools
Summary: Tools for pmemfile
Group: System Environment/Libraries
Requires: python3
%description -n pmemfile-tools
XXX
%files -n pmemfile-tools
%defattr(-,root,root,-)
%{_bindir}/mkfs.pmemfile
%{_bindir}/pmemfile-fuse
%{_bindir}/pmemfile-mount
%{_mandir}/man1/mkfs.pmemfile.1.gz
%{_bindir}/antool
%{_datadir}/antool/*
%license LICENSE
%doc
%prep
%setup -q -n %{name}-%{version}
%build
mkdir build && cd build
%cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo -DTESTS_USE_FORCED_PMEM=1
make %{?_smp_mflags}
%install
cd build
make install DESTDIR=%{buildroot}
%check
cd build
ctest %{?_smp_mflags} -E preload_unix --output-on-failure
%post -n libpmemfile-posix -p /sbin/ldconfig
%postun -n libpmemfile-posix -p /sbin/ldconfig
%changelog
* Tue Feb 14 2017 Marcin Ślusarz <[email protected]> - 0.1-1
- Initial RPM release