qdbm.spec 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. ##
  2. ## qdbm.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2004 The OpenPKG Project <http://www.openpkg.org/>
  4. ## Copyright (c) 2000-2004 Ralf S. Engelschall <rse@engelschall.com>
  5. ## Copyright (c) 2000-2004 Cable & Wireless <http://www.cw.com/>
  6. ##
  7. ## Permission to use, copy, modify, and distribute this software for
  8. ## any purpose with or without fee is hereby granted, provided that
  9. ## the above copyright notice and this permission notice appear in all
  10. ## copies.
  11. ##
  12. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  13. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  14. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  15. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  16. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  17. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  18. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  19. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  20. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  21. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  22. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  23. ## SUCH DAMAGE.
  24. ##
  25. # package information
  26. Name: qdbm
  27. Summary: Quick Database Manager
  28. URL: http://qdbm.sourceforge.net/
  29. Vendor: Mikio Hirabayashi
  30. Packager: The OpenPKG Project
  31. Distribution: OpenPKG
  32. Class: EVAL
  33. Group: Database
  34. License: LGPL
  35. Version: 1.8.1
  36. Release: 20040226
  37. # list of sources
  38. Source0: http://qdbm.sourceforge.net/qdbm-%{version}.tar.gz
  39. # build information
  40. Prefix: %{l_prefix}
  41. BuildRoot: %{l_buildroot}
  42. BuildPreReq: OpenPKG, openpkg >= 20040130, gcc, make
  43. PreReq: OpenPKG, openpkg >= 20040130
  44. AutoReq: no
  45. AutoReqProv: no
  46. %description
  47. QDBM is a library of routines for managing a database. The database
  48. is a simple data file containing records, each is a pair of a key
  49. and a value. Every key and value is serial bytes with variable
  50. length. Both binary data and character string can be used as a key
  51. and a value. There is neither concept of data tables nor data types.
  52. Records are organized in hash table or B+ tree. Additionally, QDBM
  53. also provides NDBM and GDBM backward compatibility C APIs.
  54. %track
  55. prog qdbm = {
  56. version = %{version}
  57. url = http://qdbm.sourceforge.net/
  58. regex = qdbm-(__VER__)\.tar\.gz
  59. }
  60. %prep
  61. %setup -q
  62. %build
  63. ( echo "ac_cv_lib_iconv_main=no"
  64. echo "ac_cv_lib_z_main=no"
  65. ) >config.cache
  66. CC="%{l_cc}" \
  67. CFLAGS="%{l_cflags -O}" \
  68. ./configure \
  69. --cache-file=./config.cache \
  70. --prefix=%{l_prefix} \
  71. --includedir=%{l_prefix}/include/qdbm \
  72. --disable-zlib \
  73. --disable-iconv \
  74. --enable-nowarn
  75. %{l_make} %{l_mflags -O} \
  76. MYLIBS="libqdbm.a"
  77. %install
  78. rm -rf $RPM_BUILD_ROOT
  79. %{l_make} %{l_mflags} install \
  80. DESTDIR=$RPM_BUILD_ROOT \
  81. MYLIBS="libqdbm.a"
  82. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  83. rm -f $RPM_BUILD_ROOT%{l_prefix}/share/qdbm/[A-Z]*
  84. rm -f $RPM_BUILD_ROOT%{l_prefix}/share/qdbm/spex-ja.html
  85. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  86. %files -f files
  87. %clean
  88. rm -rf $RPM_BUILD_ROOT