From 3cd36e3b21ef3b77efb45430326e0040156984c8 Mon Sep 17 00:00:00 2001 From: cvsextras Date: Mon, 8 Nov 2004 05:33:09 +0000 Subject: [PATCH] auto-import changelog data from wxPythonGTK2-2.4.2.4-0.fdr.3.rh90.src.rpm 2.4.2.4-0.fdr.3 - rename package to wxPythonGTK2, provide wxPython (see bug 927) - dont ship binaries in /usr/share 2.4.2.4-0.fdr.2 - add missing buildrequires: python-devel, wxGTK2-gl 2.4.2.4-0.fdr.1 - Initial RPM release. --- .cvsignore | 1 + sources | 1 + wxPython.spec | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 72 insertions(+) create mode 100644 wxPython.spec diff --git a/.cvsignore b/.cvsignore index e69de29..5ff901a 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +wxPythonSrc-2.4.2.4.tar.gz diff --git a/sources b/sources index e69de29..d49d5e3 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +ea4eb68e10a0c2a9be643b35dcb78e41 wxPythonSrc-2.4.2.4.tar.gz diff --git a/wxPython.spec b/wxPython.spec new file mode 100644 index 0000000..4d9b9e4 --- /dev/null +++ b/wxPython.spec @@ -0,0 +1,70 @@ +%define pyver %(python -c 'import sys ; print sys.version[:3]') + +%define buildflags WXPORT=gtk2 UNICODE=1 + +Name: wxPythonGTK2 +Version: 2.4.2.4 +Release: 0.fdr.3.rh90 +Epoch: 0 +Summary: wxPython is a GUI toolkit for the Python programming language. + +Group: Development/Languages +License: LGPL +URL: http://www.wxpython.org/ +Source0: http://dl.sf.net/wxpython/wxPythonSrc-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: wxGTK2-devel >= 0:2.4.2, pkgconfig +BuildRequires: zlib-devel, libpng-devel, libjpeg-devel, libtiff-devel +BuildRequires: python-devel, wxGTK2-gl +Requires: %{_bindir}/python%{pyver} + +# This is what other packages should depend on, NOT the package name! +Provides: wxPython = %{epoch}:%{version}-%{release} + +%description +wxPython is a GUI toolkit for the Python programming language. It allows +Python programmers to create programs with a robust, highly functional +graphical user interface, simply and easily. It is implemented as a Python +extension module (native code) that wraps the popular wxWindows cross +platform GUI library, which is written in C++. + +%prep +%setup -q -n wxPythonSrc-%{version} + +%build +# Just build the wxPython part, not all of wxWindows which we already have +# in Fedora +cd wxPython +python setup.py %{buildflags} build + +# There's a binary included in sources resulting in bogus libwx_gtk2-2.3.so.0 +# dependency for the package, clean it up +cd demo/dllwidget +make clean + +%install +rm -rf $RPM_BUILD_ROOT +cd wxPython +python setup.py %{buildflags} install --root=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc wxPython/docs wxPython/demo wxPython/licence/ wxPython/samples +%{_bindir}/* +%{_libdir}/python%{pyver}/site-packages/wxPython +%{_libdir}/python%{pyver}/site-packages/wx + +%changelog +* Tue Jan 06 2004 Panu Matilainen 0:2.4.2.4-0.fdr.3 +- rename package to wxPythonGTK2, provide wxPython (see bug 927) +- dont ship binaries in /usr/share + +* Thu Nov 20 2003 Panu Matilainen 0:2.4.2.4-0.fdr.2 +- add missing buildrequires: python-devel, wxGTK2-gl + +* Sun Nov 02 2003 Panu Matilainen 0:2.4.2.4-0.fdr.1 +- Initial RPM release.