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 882342 Details for
Bug 1084096
[RFE][PATCH] Add python3 subpackage
[?]
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 add a python3 subpackage
0001-Add-python3-subpackage.patch (text/plain), 2.73 KB, created by
Ralph Bean
on 2014-04-03 15:18:57 UTC
(
hide
)
Description:
Patch to add a python3 subpackage
Filename:
MIME Type:
Creator:
Ralph Bean
Created:
2014-04-03 15:18:57 UTC
Size:
2.73 KB
patch
obsolete
>From 83af482f3a5c57d694937e19f54327ff65bda970 Mon Sep 17 00:00:00 2001 >From: Ralph Bean <rbean@redhat.com> >Date: Thu, 3 Apr 2014 11:17:03 -0400 >Subject: [PATCH] Add python3 subpackage. > >--- > python-pbr.spec | 43 ++++++++++++++++++++++++++++++++++++++++++- > 1 file changed, 42 insertions(+), 1 deletion(-) > >diff --git a/python-pbr.spec b/python-pbr.spec >index 687f195..a04cbd5 100644 >--- a/python-pbr.spec >+++ b/python-pbr.spec >@@ -1,4 +1,9 @@ > %global pypi_name pbr >+ >+%if 0%{?fedora} >+%global with_python3 1 >+%endif >+ > %if 0%{?fedora} > 19 > %global do_test 1 > %endif >@@ -8,7 +13,7 @@ > > Name: python-%{pypi_name} > Version: 0.7.0 >-Release: 1%{?dist} >+Release: 2%{?dist} > Summary: Python Build Reasonableness > > License: ASL 2.0 >@@ -43,6 +48,10 @@ BuildRequires: python-sphinx10 > BuildRequires: python-sphinx >= 1.1.3 > %endif > >+%if 0%{?with_python3} >+BuildRequires: python3-devel >+BuildRequires: python3-d2to1 >+%endif > > %description > PBR is a library that injects some useful and sensible default behaviors into >@@ -51,6 +60,14 @@ between all of the OpenStack projects. Around the time that OpenStack hit 18 > different projects each with at least 3 active branches, it seems like a good > time to make that code into a proper re-usable library. > >+%if 0%{?with_python3} >+%package -n python3-pbr >+Summary: Python Build Reasonableness >+ >+%description -n python3-pbr >+Manage dynamic plugins for Python applications >+%endif >+ > %prep > %setup -q -n %{pypi_name}-%{version} > # Remove the requirements file so that pbr hooks don't add it >@@ -60,10 +77,20 @@ rm -rf {test-,}requirements.txt > # Remove bundled egg-info > rm -rf %{pypi_name}.egg-info > >+%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 >+ > # generate html docs > %if 0%{?rhel}==6 > sphinx-1.0-build doc/source html >@@ -77,6 +104,12 @@ rm -rf html/.{doctrees,buildinfo} > %install > %{__python} setup.py install --skip-build --root %{buildroot} > >+%if 0%{?with_python3} >+pushd %{py3dir} >+%{__python3} setup.py install -O1 --skip-build --root=%{buildroot} >+popd >+%endif >+ > %if 0%{?do_test} > %check > # we don't have the necessary br's, yet >@@ -88,7 +121,15 @@ rm -rf html/.{doctrees,buildinfo} > %{python_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info > %{python_sitelib}/%{pypi_name} > >+%files -n python3-pbr >+%doc html README.rst LICENSE >+%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info >+%{python3_sitelib}/%{pypi_name} >+ > %changelog >+* Thu Apr 03 2014 Ralph Bean <rbean@redhat.com> - 0.7.0-2 >+- Added python3 subpackage. >+ > * Mon Mar 24 2014 Matthias Runge <mrunge@redhat.com> - 0.7.0-1 > - update to 0.7.0 (rhbz#1078761) > >-- >1.9.0 >
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 1084096
: 882342