fastwriter.spec.in 2.3 KB

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