/alps/fastwriter

To get this branch, use:
bzr branch http://darksoft.org/webbzr/alps/fastwriter
16 by Suren A. Chilingaryan
RPM support
1
Summary: Fast data streaming library
2
Name: ${PACKAGE_NAME}
3
Version: ${CPACK_PACKAGE_VERSION}
4
Release: csa
5
License: GPL-3.0
6
Group: Development/Libraries
7
Source: ${CPACK_SOURCE_PACKAGE_FILE_NAME}.tar.bz2
8
BuildRoot: %{_tmppath}/%{name}-%{version}-root
9
URL: http://darksoft.org
10
Prefix: %{_prefix}
11
Docdir: %{_docdir}
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>
16
17
%description
18
Fast data streaming library (nothing goes here...)
19
20
%package -n lib${PACKAGE_NAME}${FASTWRITER_ABI_VERSION}
21
Summary: Fast data streaming library
22
Group: Development/Libraries
17 by Suren A. Chilingaryan
Add provides to spec file
23
Provides: libfastwriter = %{version}
16 by Suren A. Chilingaryan
RPM support
24
Requires: xfsprogs
25
26
%description -n lib${PACKAGE_NAME}${FASTWRITER_ABI_VERSION}
27
Standard C storage routines are not efficient if a single, but fast stream of 
28
data have to be written on the disk. The fastwriter is optimized for this use
29
case. The following methods are used to speed-up writting.
30
 * Linux AIO is used to avoid intermediate file caches
31
 * The large extents are pre-allocated and the file system is hinted that more
32
 data will follow  
33
 * For XFS volumes, the real-time mode can be used
34
35
36
%package -n lib${PACKAGE_NAME}-devel
37
Summary: Fast data streaming library
38
Group: Development/Libraries 
39
Requires: lib${PACKAGE_NAME}${FASTWRITER_ABI_VERSION} = %{version}
40
41
%description -n lib${PACKAGE_NAME}-devel
42
Development files for fastwriter
43
44
45
%prep
46
%setup -q
47
48
%build
18 by Suren A. Chilingaryan
Use GNUInstallDirs to detect install paths
49
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=%{_libdir} -DCMAKE_INSTALL_BINDIR=%{_bindir} -DCMAKE_INSTALL_DATADIR=%{_datadir} -DCMAKE_INSTALL_DATAROOTDIR=%{_datadir} -DCMAKE_INSTALL_INCLUDEDIR=%{_includedir} -DCMAKE_BUILD_TYPE=Release .
16 by Suren A. Chilingaryan
RPM support
50
make
51
52
%install
53
rm -rf $RPM_BUILD_ROOT
54
make install DESTDIR=$RPM_BUILD_ROOT
55
56
%clean
57
rm -rf $RPM_BUILD_ROOT
58
59
%post -n lib${PACKAGE_NAME}${FASTWRITER_ABI_VERSION} -p /sbin/ldconfig
60
61
%postun -n lib${PACKAGE_NAME}${FASTWRITER_ABI_VERSION} -p /sbin/ldconfig
62
63
%files -n lib${PACKAGE_NAME}${FASTWRITER_ABI_VERSION}
64
%defattr(-, root, root)
65
%{_libdir}/lib${PACKAGE_NAME}.so.*
66
67
%files -n lib${PACKAGE_NAME}-devel
68
%defattr(-, root, root)  
69
%{_includedir}/*
70
%{_libdir}/lib*.so
71
%{_libdir}/pkgconfig/*.pc
72
%exclude %{_libdir}/*.a
73
74
%changelog
75
* Fri Mar  4 2016 Suren A. Chilingaryan <csa@suren.me> - ${CPACK_PACKAGE_VERSION}
76
- Added spec file to the sources