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 606625 Details for
Bug 851226
[RFE] please also build a python3 version of pytz
[?]
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 for spec file to enable python3 support
pytz-2012d+py3.diff (text/plain), 2.93 KB, created by
Matthias Runge
on 2012-08-23 14:41:53 UTC
(
hide
)
Description:
patch for spec file to enable python3 support
Filename:
MIME Type:
Creator:
Matthias Runge
Created:
2012-08-23 14:41:53 UTC
Size:
2.93 KB
patch
obsolete
>diff --git a/pytz.spec b/pytz.spec >index 8361d35..4bb2071 100644 >--- a/pytz.spec >+++ b/pytz.spec >@@ -1,10 +1,12 @@ >-%if 0%{?fedora} < 13 || 0%{?rhel} < 6 >+%if 0%{?fedora} > 12 || 0%{?rhel} > 6 >+%global with_python3 1 >+%else > %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} > %endif > > Name: pytz >-Version: 2010h >-Release: 6%{?dist} >+Version: 2012d >+Release: 1%{?dist} > Summary: World Timezone Definitions for Python > > Group: Development/Languages >@@ -12,11 +14,14 @@ License: MIT > URL: http://pytz.sourceforge.net/ > Source0: http://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz > >-Patch0: pytz-2010h_zoneinfo.patch > BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) > > BuildArch: noarch >-BuildRequires: python-devel >+BuildRequires: python2-devel >+ >+%if 0%{?with_python3} >+BuildRequires: python3-devel >+%endif > > Requires: tzdata > >@@ -29,19 +34,50 @@ which you can read more about in the Python Library Reference > > Amost all (over 540) of the Olson timezones are supported. > >+%if 0%{?with_python3} >+%package -n python3-%{name} >+Requires: python3 >+Summary: World Timezone Definitions for Python >+ >+Group: Development/Languages >+%description -n python3-%{name} >+pytz brings the Olson tz database into Python. This library allows accurate >+and cross platform timezone calculations using Python 2.3 or higher. It >+also solves the issue of ambiguous times at the end of daylight savings, >+which you can read more about in the Python Library Reference >+(datetime.tzinfo). >+ >+Amost all (over 540) of the Olson timezones are supported. >+%endif >+ > %prep > %setup -q >-%patch0 -p1 >+ >+%if 0%{?with_python3} >+cp -a . %{py3dir} >+%endif > > %build > %{__python} setup.py build >+%if 0%{?with_python3} >+pushd %{py3dir} >+%{__python3} setup.py build >+popd >+%endif # with_python3 >+ > > > %install >-rm -rf $RPM_BUILD_ROOT >-%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT >-chmod +x $RPM_BUILD_ROOT%{python_sitelib}/pytz/*.py >-rm -rf $RPM_BUILD_ROOT%{python_sitelib}/pytz/zoneinfo >+%{__python} setup.py install --skip-build --root %{buildroot} >+chmod +x %{buildroot}%{python_sitelib}/pytz/*.py >+rm -rf %{buildroot}%{python_sitelib}/pytz/zoneinfo >+ >+%if 0%{?with_python3} >+pushd %{py3dir} >+%{__python3} setup.py install --skip-build --root %{buildroot} >+popd >+%endif # with_python3 >+ > > %clean > rm -rf $RPM_BUILD_ROOT >@@ -53,6 +89,14 @@ rm -rf $RPM_BUILD_ROOT > %{python_sitelib}/pytz/ > %{python_sitelib}/*.egg-info > >+%if 0%{?with_python3} >+%files -n python3-pytz >+%doc CHANGES.txt LICENSE.txt README.txt >+%{python3_sitelib}/pytz/ >+%{python3_sitelib}/*.egg-info >+%endif # with_python3 >+ >+ > %changelog > * Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2010h-6 > - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild >
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 851226
: 606625