[python-easygui] Initial import.
Jon Ciesla
limb at fedoraproject.org
Wed Sep 28 20:04:48 UTC 2011
commit 28efce6994d2eb19326a6cac6df64eafe5125053
Author: Jon Ciesla <limb at jcomserv.net>
Date: Wed Sep 28 15:04:16 2011 -0500
Initial import.
.gitignore | 1 +
easygui-LICENSE.txt | 24 +++++++++
python-easygui.spec | 138 +++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
4 files changed, 164 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..21af790 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/easygui_v0.96_docs.tar.gz
diff --git a/easygui-LICENSE.txt b/easygui-LICENSE.txt
new file mode 100644
index 0000000..df3b9f9
--- /dev/null
+++ b/easygui-LICENSE.txt
@@ -0,0 +1,24 @@
+ EasyGui version 0.96
+ Copyright (c) 2010, Stephen Raymond Ferg
+ All rights reserved.
+
+ 1. Redistributions of source code must retain the above copyright
+notice, this list of conditions and the following disclaimer.
+
+ 2. Redistributions in binary form must reproduce the above copyright
+notice, this list of conditions and the following disclaimer in the
+documentation and/or other materials provided with the distribution.
+
+ 3. The name of the author may not be used to endorse or promote products
+derived from this software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS 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 AUTHOR 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.
diff --git a/python-easygui.spec b/python-easygui.spec
new file mode 100644
index 0000000..a7569ce
--- /dev/null
+++ b/python-easygui.spec
@@ -0,0 +1,138 @@
+%if 0%{?fedora} < 13 && 0%{?rhel} < 5
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+%{!?python_version: %global python_version %(%{__python} -c "import sys ; print sys.version[:3]")}
+%endif
+
+%{!?python3_version: %global python3_version %(%{__python3} -c "import sys; sys.stdout.write(sys.version[:3])")}
+
+%if 0%{?fedora} > 12 || 0%{?rhel} > 6
+%global with_python3 1
+%endif
+
+
+%global upstream_name easygui
+
+Name: python-easygui
+Version: 0.96
+Release: 1%{?dist}
+Summary: Very simple, very easy GUI programming in Python
+
+Group: Development/Languages
+#License file, says CC 2.0 upstream website says with this version they moved to BSD.
+License: BSD
+URL: http://easygui.sourceforge.net/
+# Source doesn't follow the normal SF convention since upstream isn't using the SF Files system.
+Source0: http://easygui.sourceforge.net/download/version%{version}/easygui_v%{version}_docs.tar.gz
+Source1: easygui-LICENSE.txt
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildArch: noarch
+BuildRequires: python2-devel
+%if 0%{?with_python3}
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+%endif
+BuildRequires: python-setuptools
+Requires: python-setuptools
+Requires: tkinter
+
+%description
+Experienced Pythonistas need support for quick and dirty GUI features. New
+Python programmers need GUI capabilities that don't require any knowledge
+of Tkinter, frames, widgets, callbacks or lambda. This is what EasyGUI
+provides. Using EasyGUI, all GUI interactions are invoked by simple
+function calls.
+
+EasyGUI is different from other GUIs in that EasyGUI is NOT event-driven.
+It allows you to program in a traditional linear fashion, and to put up
+dialogs for simple input and output when you need to. If you have not yet
+learned the event-driven paradigm for GUI programming, EasyGUI will allow
+you to be productive with very basic tasks immediately. Later, if you
+wish to make the transition to an event-driven GUI paradigm, you can do
+so with a more powerful GUI package such as anygui, PythonCard, Tkinter,
+wxPython, etc.
+
+%if 0%{?with_python3}
+%package -n python3-%{upstream_name}
+Summary: Very simple, very easy GUI programming in Python3
+Group: Development/Languages
+Requires: python3-setuptools
+Requires: python3-tkinter
+
+%description -n python3-%{upstream_name}
+Experienced Pythonistas need support for quick and dirty GUI features. New
+Python programmers need GUI capabilities that don't require any knowledge
+of Tkinter, frames, widgets, callbacks or lambda. This is what EasyGUI
+provides. Using EasyGUI, all GUI interactions are invoked by simple
+function calls.
+
+EasyGUI is different from other GUIs in that EasyGUI is NOT event-driven.
+It allows you to program in a traditional linear fashion, and to put up
+dialogs for simple input and output when you need to. If you have not yet
+learned the event-driven paradigm for GUI programming, EasyGUI will allow
+you to be productive with very basic tasks immediately. Later, if you
+wish to make the transition to an event-driven GUI paradigm, you can do
+so with a more powerful GUI package such as anygui, PythonCard, Tkinter,
+wxPython, etc.
+This package allows for use of easygui with Python 3.
+%endif # with_python3
+
+%prep
+%setup -qc %{upstream_name}-%{version}
+
+
+%if 0%{?with_python3}
+rm -rf %{py3dir}
+cp -a . %{py3dir}
+%endif # with_python3
+
+%build
+%{__python} setup.py build
+
+%if 0%{?with_python3}
+pushd %{py3dir}
+CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build
+popd
+%endif # with_python3
+
+%install
+rm -rf %{buildroot}
+# Must do the python3 install first because the scripts in /usr/bin are
+# overwritten with every setup.py install (and we want the python2 version
+# to be the default for now).
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py install --skip-build --root %{buildroot}
+popd
+%endif # with_python3
+
+%{__python} setup.py install --skip-build --root %{buildroot} \
+ --install-data=%{_datadir}
+
+install -m 644 %{SOURCE1} .
+
+%clean
+rm -rf %{buildroot}
+
+
+%files
+%defattr(-,root,root,-)
+%doc easygui_license_info.txt cookbook/ easygui_pydoc.html easygui_version_info.html epydoc/ faq/ pydoc/ tutorial/
+%doc easygui-LICENSE.txt
+%{python_sitelib}/easygui*
+
+%if 0%{?with_python3}
+%files -n python3-%{upstream_name}
+%defattr(-,root,root,-)
+%doc easygui_license_info.txt cookbook/ easygui_pydoc.html easygui_version_info.html epydoc/ faq/ pydoc/ tutorial/
+%doc easygui-LICENSE.txt
+%{python3_sitelib}/easygui*
+%{python3_sitelib}/__pycache__/easygui.cpython-32.py*
+%endif
+
+%changelog
+* Sun Sep 25 2011 Jon Ciesla <limb at jcomserv.net> - 0.96-1
+- Corrected pycache file inclusion.
+
+* Wed May 04 2011 Jon Ciesla <limb at jcomserv.net> - 0.96-0
+- Initial RPM release
diff --git a/sources b/sources
index e69de29..e8da999 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+954fd5d5214d84874a5f8f9e199e3f13 easygui_v0.96_docs.tar.gz
More information about the scm-commits
mailing list