fastwriter.spec.in 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. %description
  17. Fast data streaming library (nothing goes here...)
  18. %package -n lib${PACKAGE_NAME}${FASTWRITER_ABI_VERSION}
  19. Summary: Fast data streaming library
  20. Group: Development/Libraries
  21. Requires: xfsprogs
  22. %description -n lib${PACKAGE_NAME}${FASTWRITER_ABI_VERSION}
  23. Standard C storage routines are not efficient if a single, but fast stream of
  24. data have to be written on the disk. The fastwriter is optimized for this use
  25. case. The following methods are used to speed-up writting.
  26. * Linux AIO is used to avoid intermediate file caches
  27. * The large extents are pre-allocated and the file system is hinted that more
  28. data will follow
  29. * For XFS volumes, the real-time mode can be used
  30. %package -n lib${PACKAGE_NAME}-devel
  31. Summary: Fast data streaming library
  32. Group: Development/Libraries
  33. Requires: lib${PACKAGE_NAME}${FASTWRITER_ABI_VERSION} = %{version}
  34. %description -n lib${PACKAGE_NAME}-devel
  35. Development files for fastwriter
  36. %prep
  37. %setup -q
  38. %build
  39. 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 .
  40. make
  41. %install
  42. rm -rf $RPM_BUILD_ROOT
  43. make install DESTDIR=$RPM_BUILD_ROOT
  44. %clean
  45. rm -rf $RPM_BUILD_ROOT
  46. %post -n lib${PACKAGE_NAME}${FASTWRITER_ABI_VERSION} -p /sbin/ldconfig
  47. %postun -n lib${PACKAGE_NAME}${FASTWRITER_ABI_VERSION} -p /sbin/ldconfig
  48. %files -n lib${PACKAGE_NAME}${FASTWRITER_ABI_VERSION}
  49. %defattr(-, root, root)
  50. %{_libdir}/lib${PACKAGE_NAME}.so.*
  51. %files -n lib${PACKAGE_NAME}-devel
  52. %defattr(-, root, root)
  53. %{_includedir}/*
  54. %{_libdir}/lib*.so
  55. %{_libdir}/pkgconfig/*.pc
  56. %exclude %{_libdir}/*.a
  57. %changelog
  58. * Fri Mar 4 2016 Suren A. Chilingaryan <csa@suren.me> - ${CPACK_PACKAGE_VERSION}
  59. - Added spec file to the sources