rekall.spec 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. ##
  2. ## rekall.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2006 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ## Copyright (c) 2000-2006 Ralf S. Engelschall <http://engelschall.com/>
  5. ##
  6. ## Permission to use, copy, modify, and distribute this software for
  7. ## any purpose with or without fee is hereby granted, provided that
  8. ## the above copyright notice and this permission notice appear in all
  9. ## copies.
  10. ##
  11. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  12. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  13. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  14. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  15. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  16. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  17. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  18. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  19. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  20. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  21. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  22. ## SUCH DAMAGE.
  23. ##
  24. # package information
  25. Name: rekall
  26. Summary: RDBMS Application Frontend GUI
  27. URL: http://www.rekallrevealed.org/
  28. Vendor: Mike Richardson & John Dean
  29. Packager: OpenPKG
  30. Distribution: OpenPKG
  31. Class: EVAL
  32. Group: Database
  33. License: GPL
  34. Version: 2.4.0
  35. Release: 20060115
  36. # package options
  37. %option with_rt no
  38. %option with_kjs yes
  39. %option with_xbase yes
  40. %option with_pgsql no
  41. %option with_mysql no
  42. # list of sources
  43. Source0: http://www.rekallrevealed.org/packages/rekall-%{version}.tar.gz
  44. Source1: http://www.rekallrevealed.org/packages/RekallDemo.tgz
  45. Patch0: rekall.patch
  46. # build information
  47. Prefix: %{l_prefix}
  48. BuildRoot: %{l_buildroot}
  49. BuildPreReq: OpenPKG, openpkg >= 20040130, gcc, pkgconfig, scons
  50. PreReq: OpenPKG, openpkg >= 20040130
  51. BuildPreReq: X11, qt, python
  52. PreReq: X11, qt, python
  53. %if "%{with_mysql}" == "yes"
  54. BuildPreReq: mysql
  55. PreReq: mysql
  56. %endif
  57. %if "%{with_pgsql}" == "yes"
  58. BuildPreReq: postgresql
  59. PreReq: postgresql
  60. %endif
  61. AutoReq: no
  62. AutoReqProv: no
  63. %description
  64. Rekall is a RDBMS frontend GUI similar in concept to Microsoft
  65. Access. It supports the local RDBMS XBase/XBSQL and remote RDBMS
  66. MySQL and PostgreSQL for data storage. Its own meta information is
  67. stored in XML format either locally on the filesystem or also in the
  68. remote RDBMS.
  69. %track
  70. prog rekall = {
  71. version = %{version}
  72. url = http://www.rekallrevealed.org/packages/
  73. regex = rekall-(__VER__)\.tar\.gz
  74. }
  75. %prep
  76. %setup -q
  77. %setup -q -D -T -a 1
  78. %patch -p0
  79. %build
  80. # workaround build-time problems
  81. find . -name "*.orig" -print | xargs rm -f
  82. # configure program
  83. ( echo "with-qt-includes=%{l_prefix}/include/qt"
  84. echo "with-qt-libraries=%{l_prefix}/lib"
  85. echo "with-qt-binaries=%{l_prefix}/bin"
  86. echo "with-python-includes=%{l_prefix}/include/python"
  87. echo "with-python-libraries=%{l_prefix}/lib/python/config"
  88. echo "prefix=%{l_prefix}"
  89. %if "%{with_rt}" == "yes"
  90. echo "enable-rt=yes"
  91. %else
  92. echo "enable-rt=no"
  93. %endif
  94. %if "%{with_kjs}" == "yes"
  95. echo "enable-kjs=yes"
  96. %else
  97. echo "enable-kjs=no"
  98. %endif
  99. %if "%{with_xbase}" == "yes"
  100. echo "enable-xbase=yes"
  101. %else
  102. echo "enable-xbase=no"
  103. %endif
  104. %if "%{with_mysql}" == "yes"
  105. echo "enable-mysql=yes"
  106. echo "with-mysql-includes=%{l_prefix}/include/mysql"
  107. echo "with-mysql-libraries=%{l_prefix}/lib/mysql"
  108. %else
  109. echo "enable-mysql=no"
  110. %endif
  111. %if "%{with_pgsql}" == "yes"
  112. echo "enable-pgsql=yes"
  113. echo "with-pgsql-includes=%{l_prefix}/include/postgresql"
  114. echo "with-pgsql-libraries=%{l_prefix}/lib"
  115. %else
  116. echo "enable-pgsql=no"
  117. %endif
  118. echo "enable-debug=no"
  119. echo "enable-tests=no"
  120. echo "libprefix=rekall"
  121. echo "appname=rekall"
  122. echo "mode=qt3"
  123. ) >settings
  124. cp scons/Makefile .
  125. %{l_make} %{l_mflags} config
  126. # build program
  127. %{l_make} %{l_mflags}
  128. %install
  129. # install program
  130. rm -rf $RPM_BUILD_ROOT
  131. %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
  132. # post-adjust installation
  133. %{l_shtool} mkdir -f -p -m 755 \
  134. $RPM_BUILD_ROOT%{l_prefix}/libexec/rekall
  135. for bin in \
  136. rekall \
  137. rekallManual \
  138. %if "%{with_rt}" == "yes"
  139. rekallrt \
  140. %endif
  141. ; do
  142. mv $RPM_BUILD_ROOT%{l_prefix}/bin/$bin \
  143. $RPM_BUILD_ROOT%{l_prefix}/libexec/rekall/$bin
  144. strip $RPM_BUILD_ROOT%{l_prefix}/libexec/rekall/$bin >/dev/null 2>&1 || true
  145. ( echo "#!/bin/sh"
  146. echo "PATH=\"%{l_prefix}/libexec/rekall:\$PATH\""
  147. echo "export PATH"
  148. echo "LD_LIBRARY_PATH=\"%{l_prefix}/lib/rekall:\$LD_LIBRARY_PATH\""
  149. echo "export LD_LIBRARY_PATH"
  150. echo "exec %{l_prefix}/libexec/rekall/$bin \${1+\"$@\"} 2>/dev/null"
  151. ) >$RPM_BUILD_ROOT%{l_prefix}/bin/$bin
  152. chmod 755 $RPM_BUILD_ROOT%{l_prefix}/bin/$bin
  153. done
  154. # install demo application
  155. %{l_shtool} mkdir -f -p -m 755 \
  156. $RPM_BUILD_ROOT%{l_prefix}/share/rekall/demo
  157. rm -f RekallDemo/*~
  158. %{l_shtool} install -c -m 644 \
  159. RekallDemo/* $RPM_BUILD_ROOT%{l_prefix}/share/rekall/demo/
  160. # determine installation files
  161. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  162. %files -f files
  163. %clean
  164. rm -rf $RPM_BUILD_ROOT