diff --git a/.cvsignore b/.cvsignore new file mode 100644 index 0000000..5ff901a --- /dev/null +++ b/.cvsignore @@ -0,0 +1 @@ +wxPythonSrc-2.4.2.4.tar.gz diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1ce9dd4 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +# Makefile for source rpm: wxPythonGTK2 +# $Id: Makefile,v 1.1 2004/11/08 05:33:06 cvsextras Exp $ +NAME := wxPythonGTK2 +SPECFILE = $(firstword $(wildcard *.spec)) + +define find-makefile-common +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +endef + +MAKEFILE_COMMON := $(shell $(find-makefile-common)) + +ifeq ($(MAKEFILE_COMMON),) +# attept a checkout +define checkout-makefile-common +test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 +endef + +MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) +endif + +include $(MAKEFILE_COMMON) diff --git a/dead.package b/dead.package deleted file mode 100644 index 100e634..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -Renamed to wxPython. diff --git a/sources b/sources new file mode 100644 index 0000000..d49d5e3 --- /dev/null +++ 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..03f7c44 --- /dev/null +++ b/wxPython.spec @@ -0,0 +1,90 @@ +%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} + +%define buildflags WXPORT=gtk2 UNICODE=1 + +Name: wxPythonGTK2 +Version: 2.4.2.4 +Release: 7.1 +Summary: 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 >= 2.4.2, pkgconfig +BuildRequires: zlib-devel, libpng-devel, libjpeg-devel, libtiff-devel +BuildRequires: python-devel, wxGTK2-gl + +# This is what other packages should depend on, NOT the package name! +Provides: wxPython = %{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 +# included disutils is not multilib aware; use normal +rm -rf distutils +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}/* +%{python_sitearch}/wxPython/ +%{python_sitearch}/wx/ + +%changelog +* Mon Feb 13 2006 Matthew Miller - 2.4.2.4-7.1 +- rebuild in preparation for FC5 +- note for future -- this package is soon to be replaced with + wxPython 2.6.2.3 (dropping the GTK2 from the package name). See + bug #163440 and bug #154618 for details. + +* Wed May 11 2005 Michael Schwendt 2.4.2.4-7 +- d'oh, it's sitearch here + +* Wed May 11 2005 Michael Schwendt 2.4.2.4-6 +- rebuilt +- use %%python_sitelib macro +- drop dependency on python binary, python(abi) dependency is automatic + +* Thu Apr 7 2005 Michael Schwendt 2.4.2.4-5 +- rebuilt + +* Tue Feb 08 2005 Thorsten Leemhuis 0:2.4.2.4-4 +- remove included disutils - it is not multilib aware; this + fixes build on x86_64 + +* 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.