qt.spec 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. ##
  2. ## qt.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2001 The OpenPKG Project <http://www.openpkg.org/>
  5. ## Copyright (c) 2000-2001 Ralf S. Engelschall <rse@engelschall.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: qt
  27. Summary: The Qt Toolkit
  28. URL: http://www.trolltech.com/products/qt/
  29. Vendor: TrollTech
  30. Packager: The OpenPKG Project
  31. Distribution: OpenPKG [EXP]
  32. Group: X11
  33. License: GPL
  34. Version: 2.3.1
  35. Release: 20011201
  36. # list of sources
  37. Source0: ftp://ftp.trolltech.com/qt/source/qt-x11-%{version}.tar.gz
  38. # build information
  39. Prefix: %{l_prefix}
  40. BuildRoot: %{l_buildroot}
  41. BuildPreReq: OpenPKG, openpkg >= 20011126.0, jpeg, png, zlib
  42. PreReq: OpenPKG, openpkg >= 20011126.0
  43. AutoReq: no
  44. AutoReqProv: no
  45. %description
  46. Qt is a GUI software toolkit. Qt simplifies the task of writing
  47. and maintaining GUI (graphical user interface) applications. Qt is
  48. written in C++ and is fully object-oriented. It has everything you
  49. need to create professional GUI applications. And it enables you to
  50. create them quickly. Qt is a multi-platform toolkit. When developing
  51. software with Qt, you can run it on the X Window System (Unix/X11)
  52. or Microsoft Windows NT and Windows 95/98. Simply recompile your
  53. source code on the platform you want. Qt cuts down the complexity in
  54. implementing large and complex systems. Its ingenious signal-slot
  55. technology enables true component programming.
  56. %prep
  57. %setup -q
  58. %build
  59. QTDIR=`pwd`; export QTDIR
  60. PATH="%{l_prefix}/bin:$PATH"; export PATH
  61. echo "yes" | ./configure \
  62. -release -shared \
  63. -sm -no-opengl -no-nas-sound -no-thread \
  64. -gif -system-jpeg -system-libpng -system-zlib -no-mng \
  65. -I%{l_prefix}/include -L%{l_prefix}/lib -R%{l_prefix}/lib -ljpeg -lpng -lz
  66. %{l_make} %{l_mflags -O} \
  67. MAKE="%{l_make} %{l_mflags -O}" \
  68. symlinks src-moc sub-src sub-tools
  69. %install
  70. rm -rf $RPM_BUILD_ROOT
  71. %{l_shtool} mkdir -f -p -m 755 \
  72. $RPM_BUILD_ROOT%{l_prefix}/bin \
  73. $RPM_BUILD_ROOT%{l_prefix}/lib \
  74. $RPM_BUILD_ROOT%{l_prefix}/include/qt \
  75. $RPM_BUILD_ROOT%{l_prefix}/man/man3
  76. %{l_shtool} install -c -s -m 755 \
  77. bin/designer bin/moc bin/uic \
  78. $RPM_BUILD_ROOT%{l_prefix}/bin/
  79. %{l_shtool} install -c -m 644 \
  80. include/* $RPM_BUILD_ROOT%{l_prefix}/include/qt/
  81. ( cd lib && tar cf - * ) |\
  82. ( cd $RPM_BUILD_ROOT%{l_prefix}/lib && tar xf - )
  83. ( cd doc/man/man3
  84. for man in *.3qt; do
  85. mv $man `echo $man | sed -e 's;\.3qt$;.3;'`
  86. done
  87. %{l_shtool} install -c -m 644 \
  88. *.3 $RPM_BUILD_ROOT%{l_prefix}/man/man3/
  89. )
  90. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  91. %files -f files
  92. %clean
  93. rm -rf $RPM_BUILD_ROOT