123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- ##
- ## qt.spec -- OpenPKG RPM Specification
- ## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH
- ## Copyright (c) 2000-2001 Ralf S. Engelschall <rse@engelschall.com>
- ##
- ## Permission to use, copy, modify, and distribute this software for
- ## any purpose with or without fee is hereby granted, provided that
- ## the above copyright notice and this permission notice appear in all
- ## copies.
- ##
- ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
- ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- ## SUCH DAMAGE.
- ##
- # package information
- Name: qt
- Summary: The Qt Toolkit
- URL: http://www.trolltech.com/products/qt/
- Vendor: TrollTech
- Packager: The OpenPKG Project
- Distribution: OpenPKG [EXP]
- Group: X11
- License: GPL
- Version: 2.3.1
- Release: %{l_branch}.0
- # list of sources
- Source0: ftp://ftp.trolltech.com/qt/source/qt-x11-%{version}.tar.gz
- # build information
- Prefix: %{l_prefix}
- BuildRoot: %{l_buildroot}
- BuildPreReq: OpenPKG, openpkg >= 0.9-33, jpeg, png, zlib
- PreReq: OpenPKG, openpkg >= 0.9-33
- AutoReq: no
- AutoReqProv: no
- %description
- Qt is a GUI software toolkit. Qt simplifies the task of writing
- and maintaining GUI (graphical user interface) applications. Qt is
- written in C++ and is fully object-oriented. It has everything you
- need to create professional GUI applications. And it enables you to
- create them quickly. Qt is a multi-platform toolkit. When developing
- software with Qt, you can run it on the X Window System (Unix/X11)
- or Microsoft Windows NT and Windows 95/98. Simply recompile your
- source code on the platform you want. Qt cuts down the complexity in
- implementing large and complex systems. Its ingenious signal-slot
- technology enables true component programming.
- %prep
- %setup -q
- %build
- QTDIR=`pwd`; export QTDIR
- PATH="%{l_prefix}/bin:$PATH"; export PATH
- echo "yes" | ./configure \
- -release -shared \
- -sm -no-opengl -no-nas-sound -no-thread \
- -gif -system-jpeg -system-libpng -system-zlib -no-mng \
- -I%{l_prefix}/include -L%{l_prefix}/lib -R%{l_prefix}/lib -ljpeg -lpng -lz
- %{l_make} %{l_mflags -O} \
- MAKE="%{l_make} %{l_mflags -O}" \
- symlinks src-moc sub-src sub-tools
- %install
- rm -rf $RPM_BUILD_ROOT
- %{l_shtool} mkdir -f -p -m 755 \
- $RPM_BUILD_ROOT%{l_prefix}/bin \
- $RPM_BUILD_ROOT%{l_prefix}/lib \
- $RPM_BUILD_ROOT%{l_prefix}/include/qt \
- $RPM_BUILD_ROOT%{l_prefix}/man/man3
- %{l_shtool} install -c -s -m 755 \
- bin/designer bin/moc bin/uic \
- $RPM_BUILD_ROOT%{l_prefix}/bin/
- %{l_shtool} install -c -m 644 \
- include/* $RPM_BUILD_ROOT%{l_prefix}/include/qt/
- ( cd lib && tar cf - * ) |\
- ( cd $RPM_BUILD_ROOT%{l_prefix}/lib && tar xf - )
- ( cd doc/man/man3
- for man in *.3qt; do
- mv $man `echo $man | sed -e 's;\.3qt$;.3;'`
- done
- %{l_shtool} install -c -m 644 \
- *.3 $RPM_BUILD_ROOT%{l_prefix}/man/man3/
- )
- %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
- %files -f files
- %clean
- rm -rf $RPM_BUILD_ROOT
|