Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 595787 Details for
Bug 837087
Python3 support
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch to update python-prettytable
0001-New-version-0.6.1-and-python3-support.patch (text/plain), 4.10 KB, created by
Ralph Bean
on 2012-07-02 17:48:47 UTC
(
hide
)
Description:
Patch to update python-prettytable
Filename:
MIME Type:
Creator:
Ralph Bean
Created:
2012-07-02 17:48:47 UTC
Size:
4.10 KB
patch
obsolete
>From e6c22e1fb886ce2a82eed6487a855c55536bf2da Mon Sep 17 00:00:00 2001 >From: Ralph Bean <rbean@redhat.com> >Date: Mon, 2 Jul 2012 13:44:28 -0400 >Subject: [PATCH] New version 0.6.1 and python3 support. > > - New upstream version > - Employing macros for modname and version to simplify future edits > - Added support for python3 > - Added %%check section > - Removed unnecessary reference to RPM_BUILD_ROOT > - Increased specificity of %%files section > - Included README, COPYING, and CHANGELOG in docs >--- > python-prettytable.spec | 86 +++++++++++++++++++++++++++++++++++++++++++---- > 1 file changed, 79 insertions(+), 7 deletions(-) > >diff --git a/python-prettytable.spec b/python-prettytable.spec >index c106d8e..58ecc60 100644 >--- a/python-prettytable.spec >+++ b/python-prettytable.spec >@@ -1,19 +1,32 @@ > %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} > >-Name: python-prettytable >-Version: 0.5 >-Release: 3%{?dist} >+%if 0%{?fedora} > 12 || 0%{?rhel} > 6 >+%global with_python3 1 >+%endif >+ >+%global modname prettytable >+ >+ >+Name: python-%{modname} >+Version: 0.6.1 >+Release: 1%{?dist} > Summary: Python library to display tabular data in tables > > Group: Development/Languages > License: BSD >-Source0: http://pypi.python.org/packages/source/P/PrettyTable/prettytable-0.5.tar.gz >+Source0: http://pypi.python.org/packages/source/P/PrettyTable/%{modname}-%{version}.tar.gz > URL: http://pypi.python.org/pypi/PrettyTable > > BuildArch: noarch > BuildRequires: python-devel > BuildRequires: python-setuptools > >+%if 0%{?with_python3} >+BuildRequires: python3-devel >+BuildRequires: python3-setuptools >+%endif >+ >+ > %description > PrettyTable is a simple Python library designed to make it quick and easy to > represent tabular data in visually appealing ASCII tables. It was inspired by >@@ -22,24 +35,83 @@ selection of which columns are to be printed, independent alignment of columns > (left or right justified or centred) and printing of "sub-tables" by specifying > a row range. > >+%if 0%{?with_python3} >+%package -n python3-%{modname} >+Summary: Python library to display tabular data in tables >+Group: Development/Languages >+ >+%description -n python3-%{modname} >+PrettyTable is a simple Python library designed to make it quick and easy to >+represent tabular data in visually appealing ASCII tables. It was inspired by >+the ASCII tables used in the PostgreSQL shell psql. PrettyTable allows for >+selection of which columns are to be printed, independent alignment of columns >+(left or right justified or centred) and printing of "sub-tables" by specifying >+a row range. >+%endif >+ >+ > %prep >-%setup -q -n prettytable-%{version} >+%setup -q -n %{modname}-%{version} >+ >+%if 0%{?with_python3} >+rm -rf %{py3dir} >+cp -a . %{py3dir} >+%endif > > > %build > %{__python} setup.py build > >+%if 0%{?with_python3} >+pushd %{py3dir} >+%{__python3} setup.py build >+popd >+%endif >+ >+%check >+%{__python} %{modname}_test.py >+ >+%if 0%{?with_python3} >+pushd %{py3dir} >+%{__python3} %{modname}_test.py >+popd >+%endif >+ > > %install >-rm -rf $RPM_BUILD_ROOT >+%if 0%{?with_python3} >+pushd %{py3dir} >+%{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT >+popd >+%endif >+ > %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT > > > %files >-%{python_sitelib}/* >+%doc README COPYING CHANGELOG >+%{python_sitelib}/%{modname}.py* >+%{python_sitelib}/%{modname}-%{version}* >+ >+%if 0%{?with_python3} >+%files -n python3-%{modname} >+%doc README COPYING CHANGELOG >+%{python3_sitelib}/%{modname}.py* >+%{python3_sitelib}/__pycache__/%{modname}* >+%{python3_sitelib}/%{modname}-%{version}* >+%endif > > > %changelog >+* Mon Jul 02 2012 Ralph Bean <rbean@redhat.com> - 0.6.1-1 >+- New upstream version >+- Employing macros for modname and version to simplify future edits >+- Added support for python3 >+- Added %%check section >+- Removed unnecessary reference to RPM_BUILD_ROOT >+- Increased specificity of %%files section >+- Included README, COPYING, and CHANGELOG in docs >+ > * Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-3 > - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild > >-- >1.7.10.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 837087
: 595787