lesstif.spec 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. ##
  2. ## lesstif.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: lesstif
  27. Summary: Replacement for Motif
  28. URL: http://www.lesstif.org/
  29. Vendor: Chris Toshok
  30. Packager: The OpenPKG Project
  31. Distribution: OpenPKG [EVAL]
  32. Group: XWindow
  33. License: LGPL
  34. Version: 0.93.91
  35. Release: 20030916
  36. # list of sources
  37. Source0: http://osdn.dl.sourceforge.net/lesstif/lesstif-%{version}.tar.gz
  38. # build information
  39. Prefix: %{l_prefix}
  40. BuildRoot: %{l_buildroot}
  41. BuildPreReq: OpenPKG, openpkg >= 20030103, X11, gcc
  42. PreReq: OpenPKG, openpkg >= 20030103, X11
  43. AutoReq: no
  44. AutoReqProv: no
  45. %description
  46. LessTif is the Hungry Programmers' version of OSF/Motif®. It aims
  47. to be source compatible with OSF/Motif® meaning that the same
  48. source code should compile with both and work exactly the same!
  49. %prep
  50. %setup -q
  51. %build
  52. CC="%{l_cc}" \
  53. CXX="%{l_cxx}" \
  54. CFLAGS="%{l_cflags -O}" \
  55. CXXFLAGS="%{l_cxxflags -O}" \
  56. CPPFLAGS="%{l_cppflags}" \
  57. LDFLAGS="%{l_ldflags}" \
  58. ./configure \
  59. --prefix=%{l_prefix} \
  60. --with-x \
  61. --x-includes=`%{l_prefix}/etc/rc --query x11_incdir` \
  62. --x-libraries=`%{l_prefix}/etc/rc --query x11_libdir` \
  63. --enable-production \
  64. --disable-debug \
  65. --disable-shared
  66. %{l_make} %{l_mflags -O}
  67. %install
  68. rm -rf $RPM_BUILD_ROOT
  69. %{l_shtool} mkdir -f -p -m 755 \
  70. $RPM_BUILD_ROOT%{l_prefix}/bin \
  71. $RPM_BUILD_ROOT%{l_prefix}/include/Dt \
  72. $RPM_BUILD_ROOT%{l_prefix}/include/Mrm \
  73. $RPM_BUILD_ROOT%{l_prefix}/include/Xm \
  74. $RPM_BUILD_ROOT%{l_prefix}/include/uil \
  75. $RPM_BUILD_ROOT%{l_prefix}/lib/X11/app-defaults \
  76. $RPM_BUILD_ROOT%{l_prefix}/lib/X11/config \
  77. $RPM_BUILD_ROOT%{l_prefix}/lib/X11/mwm \
  78. $RPM_BUILD_ROOT%{l_prefix}/man/man1 \
  79. $RPM_BUILD_ROOT%{l_prefix}/man/man3 \
  80. $RPM_BUILD_ROOT%{l_prefix}/man/man5
  81. %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  82. rm -rf $RPM_BUILD_ROOT%{l_prefix}/LessTif
  83. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  84. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  85. %files -f files
  86. %clean
  87. rm -rf $RPM_BUILD_ROOT