Przeglądaj źródła

new package: wx 2.4.1 (Cross-Platform GUI Library)

Ralf S. Engelschall 22 lat temu
rodzic
commit
92e7a3b2b0
1 zmienionych plików z 103 dodań i 0 usunięć
  1. 103 0
      wx/wx.spec

+ 103 - 0
wx/wx.spec

@@ -0,0 +1,103 @@
+##
+##  wx.spec -- OpenPKG RPM Specification
+##  Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
+##  Copyright (c) 2000-2003 Ralf S. Engelschall <rse@engelschall.com>
+##  Copyright (c) 2000-2003 Cable & Wireless <http://www.cw.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.wxwindows.org/
+Vendor:       wxWindows Team
+Packager:     The OpenPKG Project
+Distribution: OpenPKG [EVAL]
+Group:        XWindow
+License:      LGPL
+Version:      2.4.1
+Release:      20030725
+
+#   list of sources
+Source0:      http://osdn.dl.sourceforge.net/sourceforge/wxwindows/wxGTK-%{version}.tar.bz2
+
+#   build information
+Prefix:       %{l_prefix}
+BuildRoot:    %{l_buildroot}
+BuildPreReq:  OpenPKG, openpkg >= 20030103, X11, gtk, zlib, png, tiff, jpeg, libiconv, gcc, make
+PreReq:       OpenPKG, openpkg >= 20030103, X11, gtk, zlib, png, tiff, jpeg, libiconv
+AutoReq:      no
+AutoReqProv:  no
+
+%description
+    wxWindows 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.
+
+%prep
+    %setup -q -n wxGTK-%{version}
+
+%build
+    #   configure package
+    CC="%{l_cc}" \
+    CXX="%{l_cxx}" \
+    CFLAGS="%{l_cflags -O}" \
+    CXXFLAGS="%{l_cxxflags -O}" \
+    CPPFLAGS="%{l_cppflags}" \
+    LDFLAGS="%{l_ldflags}" \
+    ./configure \
+        --prefix=%{l_prefix} \
+        --with-x \
+        --x-includes=`%{l_prefix}/etc/rc --query x11_incdir` \
+        --x-libraries=`%{l_prefix}/etc/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 \
+        --disable-shared
+
+    #   build package
+    %{l_make} %{l_mflags -O}
+
+%install
+    #   install package
+    rm -rf $RPM_BUILD_ROOT
+    %{l_make} %{l_mflags} install \
+        prefix=$RPM_BUILD_ROOT%{l_prefix} \
+        exec_prefix=$RPM_BUILD_ROOT%{l_prefix}
+
+    #   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
+