pgadmin.spec 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. ##
  2. ## pgadmin.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
  4. ## Copyright (c) 2000-2003 Ralf S. Engelschall <rse@engelschall.com>
  5. ## Copyright (c) 2000-2003 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 version
  26. %define V_base 0.9.3
  27. %define V_snap 20030922
  28. # package information
  29. Name: pgadmin
  30. Summary: PostgreSQL Administration GUI
  31. URL: http://www.pgadmin.org/
  32. Vendor: Dave Page et al.
  33. Packager: The OpenPKG Project
  34. Distribution: OpenPKG [EVAL]
  35. Group: Database
  36. License: Artistic
  37. Version: %{V_base}.%{V_snap}
  38. Release: 20030922
  39. # list of sources
  40. Source0: http://www.pgadmin.org/snapshots/src/pgadmin3-src-%{V_snap}.tar.gz
  41. Patch0: pgadmin.patch
  42. # build information
  43. Prefix: %{l_prefix}
  44. BuildRoot: %{l_buildroot}
  45. BuildPreReq: OpenPKG, openpkg >= 20030103, X11, wx, postgresql, openssl
  46. PreReq: OpenPKG, openpkg >= 20030103, X11, wx, postgresql, openssl
  47. AutoReq: no
  48. AutoReqProv: no
  49. %description
  50. pgAdmin III is a comprehensive database design and management
  51. graphical user interface for the PostgreSQL RDBMS.
  52. %prep
  53. %setup -q -n pgadmin3-%{V_base}
  54. %patch -p1
  55. %build
  56. CC="%{l_cc}" \
  57. CXX="%{l_cxx}" \
  58. CFLAGS="%{l_cflags -O}" \
  59. CXXFLAGS="%{l_cxxflags -O}" \
  60. CPPFLAGS="%{l_cppflags}" \
  61. LDFLAGS="%{l_ldflags}" \
  62. LIBS="-lpq -lssl -lcrypto -lcrypt" \
  63. ./configure \
  64. --prefix=%{l_prefix} \
  65. --with-wx=%{l_prefix} \
  66. --with-wx-config=wx-config \
  67. --with-pgsql-include=%{l_prefix}/include/postgresql \
  68. --with-pgsql=%{l_prefix}/lib
  69. %{l_make} %{l_mflags -O}
  70. %install
  71. rm -rf $RPM_BUILD_ROOT
  72. %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  73. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  74. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  75. %files -f files
  76. %clean
  77. rm -rf $RPM_BUILD_ROOT