/alps/fastwriter

To get this branch, use:
bzr branch http://darksoft.org/webbzr/alps/fastwriter

« back to all changes in this revision

Viewing changes to fastwriter.spec.in

  • Committer: Suren A. Chilingaryan
  • Date: 2016-03-04 15:45:54 UTC
  • Revision ID: csa@suren.me-20160304154554-na5g6icyed8p296p
RPM support

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
23
Requires: xfsprogs
 
24
 
 
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
 
31
 data will follow  
 
32
 * For XFS volumes, the real-time mode can be used
 
33
 
 
34
 
 
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}
 
39
 
 
40
%description -n lib${PACKAGE_NAME}-devel
 
41
Development files for fastwriter
 
42
 
 
43
 
 
44
%prep
 
45
%setup -q
 
46
 
 
47
%build
 
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 .
 
49
make
 
50
 
 
51
%install
 
52
rm -rf $RPM_BUILD_ROOT
 
53
make install DESTDIR=$RPM_BUILD_ROOT
 
54
 
 
55
%clean
 
56
rm -rf $RPM_BUILD_ROOT
 
57
 
 
58
%post -n lib${PACKAGE_NAME}${FASTWRITER_ABI_VERSION} -p /sbin/ldconfig
 
59
 
 
60
%postun -n lib${PACKAGE_NAME}${FASTWRITER_ABI_VERSION} -p /sbin/ldconfig
 
61
 
 
62
%files -n lib${PACKAGE_NAME}${FASTWRITER_ABI_VERSION}
 
63
%defattr(-, root, root)
 
64
%{_libdir}/lib${PACKAGE_NAME}.so.*
 
65
 
 
66
%files -n lib${PACKAGE_NAME}-devel
 
67
%defattr(-, root, root)  
 
68
%{_includedir}/*
 
69
%{_libdir}/lib*.so
 
70
%{_libdir}/pkgconfig/*.pc
 
71
%exclude %{_libdir}/*.a
 
72
 
 
73
%changelog
 
74
* Fri Mar  4 2016 Suren A. Chilingaryan <csa@suren.me> - ${CPACK_PACKAGE_VERSION}
 
75
- Added spec file to the sources