| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 |
- ##
- ## wx.spec -- OpenPKG RPM Package Specification
- ## Copyright (c) 2000-2005 OpenPKG Foundation e.V. <http://openpkg.net/>
- ## Copyright (c) 2000-2005 Ralf S. Engelschall <http://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: wx
- Summary: Cross-Platform GUI Library
- URL: http://www.wxwidgets.org/
- Vendor: wxWidgets Team
- Packager: OpenPKG
- Distribution: OpenPKG
- Class: EVAL
- Group: XWindow
- License: LGPL
- Version: 2.6.1
- Release: 20050816
- # list of sources
- Source0: http://osdn.dl.sourceforge.net/sourceforge/wxwindows/wxGTK-%{version}.tar.bz2
- Patch0: wx.patch
- # build information
- Prefix: %{l_prefix}
- BuildRoot: %{l_buildroot}
- BuildPreReq: OpenPKG, openpkg >= 20040130, gcc, make
- PreReq: OpenPKG, openpkg >= 20040130
- BuildPreReq: X11, glib2, glib2::with_threads = yes, gtk2
- PreReq: X11, glib2, glib2::with_threads = yes, gtk2
- BuildPreReq: zlib, png, tiff, jpeg, libiconv
- PreReq: zlib, png, tiff, jpeg, libiconv
- AutoReq: no
- AutoReqProv: no
- %description
- wxWidgets is a cross-platform graphical user interface (GUI) library
- which gives a single, easy-to-use API for writing GUI applications
- on multiple platforms. This package is wxGTK, the Unix/X11/Gtk+
- based version of wxWindows.
- %track
- prog wx = {
- version = %{version}
- url = http://prdownloads.sourceforge.net/wxwindows/
- regex = wxGTK-(\d+\.\d+\.\d+)\.tar\.bz2
- }
- %prep
- %setup -q -n wxGTK-%{version}
- %patch -p0
- %build
- # configure package
- CC="%{l_cc}" \
- CXX="%{l_cxx}" \
- CFLAGS="%{l_cflags -O}" \
- CXXFLAGS="%{l_cxxflags -O}" \
- CPPFLAGS="-I`pwd`/contrib/include %{l_cppflags tiff}" \
- LDFLAGS="%{l_ldflags}" \
- LN_S="ln" \
- ./configure \
- --prefix=%{l_prefix} \
- --with-x \
- --x-includes=`%{l_rc} --query x11_incdir` \
- --x-libraries=`%{l_rc} --query x11_libdir` \
- --with-gtk \
- --with-gtk-prefix=%{l_prefix} \
- --with-gtk-exec-prefix=%{l_prefix} \
- --with-libiconv-prefix=%{l_prefix} \
- --with-libpng \
- --with-libjpeg \
- --with-libtiff \
- --with-zlib \
- --enable-unicode \
- --enable-xrc \
- --disable-shared
- # build package
- %{l_make} %{l_mflags -O}
- for contrib in stc; do
- ( cd contrib/src/$contrib
- %{l_make} %{l_mflags -O}
- ) || exit $?
- done
- %install
- # install package
- rm -rf $RPM_BUILD_ROOT
- %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
- for contrib in stc; do
- ( cd contrib/src/$contrib
- %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
- ) || exit $?
- done
- # strip down installation
- rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/locale
- # determine installation files
- %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
- %{l_files_std} \
- '%not %dir %{l_prefix}/share/aclocal'
- %files -f files
- %clean
- rm -rf $RPM_BUILD_ROOT
|