1
Summary: Fast data streaming library
3
Version: ${CPACK_PACKAGE_VERSION}
6
Group: Development/Libraries
7
Source: ${CPACK_SOURCE_PACKAGE_FILE_NAME}.tar.bz2
8
BuildRoot: %{_tmppath}/%{name}-%{version}-root
9
URL: http://darksoft.org
12
BuildRequires: xfsprogs-devel libuuid-devel
13
BuildRequires: pkg-config libtool cmake
14
Vendor: Institute for Data Processing and Electronics, KIT
15
Packager: Suren A. Chilingaryan <csa@suren.me>
18
Fast data streaming library (nothing goes here...)
20
%package -n lib${PACKAGE_NAME}${FASTWRITER_ABI_VERSION}
21
Summary: Fast data streaming library
22
Group: Development/Libraries
25
%description -n lib${PACKAGE_NAME}${FASTWRITER_ABI_VERSION}
26
Standard C storage routines are not efficient if a single, but fast stream of
27
data have to be written on the disk. The fastwriter is optimized for this use
28
case. The following methods are used to speed-up writting.
29
* Linux AIO is used to avoid intermediate file caches
30
* The large extents are pre-allocated and the file system is hinted that more
32
* For XFS volumes, the real-time mode can be used
35
%package -n lib${PACKAGE_NAME}-devel
36
Summary: Fast data streaming library
37
Group: Development/Libraries
38
Requires: lib${PACKAGE_NAME}${FASTWRITER_ABI_VERSION} = %{version}
40
%description -n lib${PACKAGE_NAME}-devel
41
Development files for fastwriter
48
cmake -DCMAKE_INSTALL_PREFIX=/usr -DLIB_INSTALL_DIR=%{_libdir} -DBIN_INSTALL_DIR=%{_bindir} -DDATA_INSTALL_DIR=%{_datadir} -DINCLUDE_INSTALL_DIR=%{_includedir} -DCMAKE_BUILD_TYPE=Release .
52
rm -rf $RPM_BUILD_ROOT
53
make install DESTDIR=$RPM_BUILD_ROOT
56
rm -rf $RPM_BUILD_ROOT
58
%post -n lib${PACKAGE_NAME}${FASTWRITER_ABI_VERSION} -p /sbin/ldconfig
60
%postun -n lib${PACKAGE_NAME}${FASTWRITER_ABI_VERSION} -p /sbin/ldconfig
62
%files -n lib${PACKAGE_NAME}${FASTWRITER_ABI_VERSION}
63
%defattr(-, root, root)
64
%{_libdir}/lib${PACKAGE_NAME}.so.*
66
%files -n lib${PACKAGE_NAME}-devel
67
%defattr(-, root, root)
70
%{_libdir}/pkgconfig/*.pc
71
%exclude %{_libdir}/*.a
74
* Fri Mar 4 2016 Suren A. Chilingaryan <csa@suren.me> - ${CPACK_PACKAGE_VERSION}
75
- Added spec file to the sources