tinycdb-vl.spec 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. %define pkg_name tinycdb
  2. %define pkg_version 0.78
  3. %define pkg_release 2%{?_dist_release}
  4. Summary: A package for maintenance of constant databases
  5. Name: %{pkg_name}
  6. Version: %{pkg_version}
  7. Release: %{pkg_release}
  8. License: Public Domain
  9. Group: Applications/System
  10. URL: http://www.corpit.ru/mjt/tinycdb.html
  11. Source: http://www.corpit.ru/mjt/tinycdb/%{name}-%{version}.tar.gz
  12. BuildRoot: %{_tmppath}/%{name}-root
  13. BuildRequires: build-essential
  14. Vendor: Project Vine
  15. Distribution: Vine Linux
  16. Packager: ara_t
  17. %description
  18. tinycdb is a small, fast and reliable utility set and subroutine
  19. library for creating and reading constant databases. The database
  20. structure is tuned for fast reading:
  21. + Successful lookups take normally just two disk accesses.
  22. + Unsuccessful lookups take only one disk access.
  23. + Small disk space and memory size requirements; a database
  24. uses 2048 bytes for the header and 24 bytes plus size of
  25. (key,value) per record.
  26. + Maximum database size is 4GB; individual record size is not
  27. otherwise limited.
  28. + Portable file format.
  29. + Fast creation of new databases.
  30. + No locking, updates are atomical.
  31. This package contains both the utility and the development
  32. files, together with nss_cdb module.
  33. %package devel
  34. Summary: Development files for the tinycdb library.
  35. Group: Development/Libraries
  36. Requires: %{name} = %{version}-%{release}
  37. %description devel
  38. tinycdb is a small, fast and reliable utility set and subroutine
  39. library for creating and reading constant databases.
  40. This package contains tinycdb development libraries and header files.
  41. %package devel-static
  42. Summary: Development files for the tinycdb static library.
  43. Group: Development/Libraries
  44. Requires: %{name}-devel = %{version}-%{release}
  45. %description devel-static
  46. Static library for tinycdb
  47. %prep
  48. %setup -q
  49. %build
  50. %{__make} CFLAGS="$RPM_OPT_FLAGS" \
  51. staticlib sharedlib cdb-shared nss \
  52. sysconfdir=/etc
  53. %install
  54. %{__rm} -rf ${RPM_BUILD_ROOT}
  55. %{__mkdir} -p ${RPM_BUILD_ROOT}
  56. %{make_install} \
  57. libdir=%{_libdir} bindir=%{_bindir} mandir=%{_mandir} \
  58. syslibdir=%{_libdir} sysconfdir=/etc \
  59. includedir=%{_includedir} \
  60. install-all install-nss install-piclib install-sharedlib
  61. %clean
  62. %{__rm} -rf ${RPM_BUILD_ROOT}
  63. %post -p %{_syssbindir}/ldconfig
  64. %postun -p %{_syssbindir}/ldconfig
  65. %files
  66. %defattr(-,root,root)
  67. %{_bindir}/*
  68. %{_mandir}/man1/*
  69. %{_mandir}/man3/*
  70. %{_mandir}/man5/*
  71. %{_libdir}/libcdb.so*
  72. %{_libdir}/libnss_cdb*
  73. /etc/cdb-Makefile
  74. %doc ChangeLog NEWS debian/changelog
  75. %files devel
  76. %defattr(-,root,root)
  77. %{_includedir}/*
  78. %files devel-static
  79. %defattr(-,root,root)
  80. %{_libdir}/libcdb.a
  81. %{_libdir}/libcdb_pic.a
  82. %changelog
  83. * Sun Apr 10 2016 Toshiaki Ara <ara_t@384.jp> 0.78-2
  84. - correct SPEC file
  85. * Mon Jul 13 2015 Toshiaki Ara <ara_t@384.jp> 0.78-1
  86. - Initial release