-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsmack-bf.spec
96 lines (72 loc) · 2.82 KB
/
smack-bf.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
Summary: low-level IO storage which packs data into sorted (optionally compressed) blobs
Name: smack
Version: 0.5.0
Release: 1%{?dist}.1
License: GPLv2+
Group: System Environment/Libraries
URL: http://www.ioremap.net/projects/smack
Source0: %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%if %{defined rhel} && 0%{?rhel} < 6
BuildRequires: boost141-devel, boost141-iostreams, boost141-filesystem, boost141-system
%else
BuildRequires: boost-devel, boost-filesystem, boost-thread, boost-system, boost-iostreams
%endif
BuildRequires: cmake snappy-devel
%description
SMACK - low-level IO storage which packs data into sorted (zlib/bzip2/snappy compressed) blobs
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
SMACK - low-level IO storage which packs data into sorted (zlib/bzip2/snappy compressed) blobs
This package contains libraries, header files and developer documentation
needed for developing software which uses the eblob library.
%prep
%setup -q
%build
export LDFLAGS="-Wl,-z,defs"
%if %{defined rhel} && 0%{?rhel} < 6
cmake -DCMAKE_INSTALL_PREFIX:PATH=%{buildroot}%{_prefix} -DCMAKE_INSTALL_LIBDIR:PATH=%{buildroot}%{_libdir} -DBOOST_INCLUDEDIR:PATH=/usr/include/boost141 -DBOOST_LIBRARYDIR:PATH=/usr/lib64/boost141 .
%else
cmake -DCMAKE_INSTALL_PREFIX:PATH=%{buildroot}%{_prefix} -DCMAKE_INSTALL_LIBDIR:PATH=%{buildroot}%{_libdir} .
%endif
make VERBOSE=1 %{?_smp_mflags}
%install
rm -rf %{buildroot}
make install
rm -f %{buildroot}%{_libdir}/*.a
rm -f %{buildroot}%{_libdir}/*.la
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
#%{_bindir}/*
%{_libdir}/lib*.so.*
%files devel
%defattr(-,root,root,-)
%{_includedir}/smack/*
%{_libdir}/lib*.so
%changelog
* Mon Aug 20 2012 Evgeniy Polyakov <zbr@ioremap.net> - 0.5.0
- Use log level instead of log mask
* Mon Jul 02 2012 Evgeniy Polyakov <zbr@ioremap.net> - 0.4.0
- Added smack_log_update() helper
- Added chunk header with version and magic
- Benchmark page added
- do the actual locking instead of creating and destroying the locking object on the same line.
* Wed Jun 27 2012 Evgeniy Polyakov <zbr@ioremap.net> - 0.3.0
- Store chunk start/end info in ctl, populate data into rcache via cache_processor pool using multiple threads
* Tue Jun 26 2012 Evgeniy Polyakov <zbr@ioremap.net> - 0.2.1
- Added smack_sync() and smack_total_num() calls
* Mon Jun 25 2012 Evgeniy Polyakov <zbr@ioremap.net> - 0.2.0
- Added lz4 (default and high) compression
- Added zlib high compression
- Interface updates
* Fri Jun 22 2012 Evgeniy Polyakov <zbr@ioremap.net> - 0.1.1
- Do not use lib64 as default install library dir
* Fri Jun 22 2012 Evgeniy Polyakov <zbr@ioremap.net> - 0.1.0
- Initial build for Fedora