wx.spec 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. ##
  2. ## wx.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 information
  26. Name: wx
  27. Summary: Cross-Platform GUI Library
  28. URL: http://www.wxwindows.org/
  29. Vendor: wxWindows Team
  30. Packager: The OpenPKG Project
  31. Distribution: OpenPKG [EVAL]
  32. Group: XWindow
  33. License: LGPL
  34. Version: 2.4.1
  35. Release: 20030728
  36. # list of sources
  37. Source0: http://osdn.dl.sourceforge.net/sourceforge/wxwindows/wxGTK-%{version}.tar.bz2
  38. # build information
  39. Prefix: %{l_prefix}
  40. BuildRoot: %{l_buildroot}
  41. BuildPreReq: OpenPKG, openpkg >= 20030103, X11, glib, glib::with_threads = yes, gtk, zlib, png, tiff, jpeg, libiconv, gcc, make
  42. PreReq: OpenPKG, openpkg >= 20030103, X11, glib, glib::with_threads = yes, gtk, zlib, png, tiff, jpeg, libiconv
  43. AutoReq: no
  44. AutoReqProv: no
  45. %description
  46. wxWindows is a cross-platform graphical user interface (GUI) library
  47. which gives a single, easy-to-use API for writing GUI applications
  48. on multiple platforms. This package is wxGTK, the Unix/X11/Gtk+
  49. based version of wxWindows.
  50. %prep
  51. %setup -q -n wxGTK-%{version}
  52. %build
  53. # configure package
  54. CC="%{l_cc}" \
  55. CXX="%{l_cxx}" \
  56. CFLAGS="%{l_cflags -O}" \
  57. CXXFLAGS="%{l_cxxflags -O}" \
  58. CPPFLAGS="%{l_cppflags tiff}" \
  59. LDFLAGS="%{l_ldflags}" \
  60. ./configure \
  61. --prefix=%{l_prefix} \
  62. --with-x \
  63. --x-includes=`%{l_prefix}/etc/rc --query x11_incdir` \
  64. --x-libraries=`%{l_prefix}/etc/rc --query x11_libdir` \
  65. --with-gtk \
  66. --with-gtk-prefix=%{l_prefix} \
  67. --with-gtk-exec-prefix=%{l_prefix} \
  68. --with-libiconv-prefix=%{l_prefix} \
  69. --with-libpng \
  70. --with-libjpeg \
  71. --with-libtiff \
  72. --with-zlib \
  73. --disable-shared
  74. # build package
  75. %{l_make} %{l_mflags -O}
  76. for contrib in xrc stc; do
  77. ( cd contrib/src/$contrib
  78. %{l_make} %{l_mflags -O}
  79. ) || exit $?
  80. done
  81. %install
  82. # install package
  83. rm -rf $RPM_BUILD_ROOT
  84. %{l_make} %{l_mflags} install \
  85. prefix=$RPM_BUILD_ROOT%{l_prefix} \
  86. exec_prefix=$RPM_BUILD_ROOT%{l_prefix}
  87. for contrib in xrc stc; do
  88. ( cd contrib/src/$contrib
  89. %{l_make} %{l_mflags} install \
  90. prefix=$RPM_BUILD_ROOT%{l_prefix} \
  91. exec_prefix=$RPM_BUILD_ROOT%{l_prefix}
  92. ) || exit $?
  93. done
  94. # strip down installation
  95. rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/locale
  96. # determine installation files
  97. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  98. %{l_files_std} \
  99. '%not %dir %{l_prefix}/share/aclocal'
  100. %files -f files
  101. %clean
  102. rm -rf $RPM_BUILD_ROOT