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 698288 Details for
Bug 911936
python-pyasn1 package does not include the python3 version
[?]
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]
Add python3-pyasn1 and python3-pyasn1-modules subpackages
0001-Add-python3-pyasn1-modules-subpackages-and-update.patch (text/plain), 5.03 KB, created by
Jamie Nguyen
on 2013-02-16 20:31:11 UTC
(
hide
)
Description:
Add python3-pyasn1 and python3-pyasn1-modules subpackages
Filename:
MIME Type:
Creator:
Jamie Nguyen
Created:
2013-02-16 20:31:11 UTC
Size:
5.03 KB
patch
obsolete
>From 7130de32bf41ffdaeb38f0f0a625bc44164ba47f Mon Sep 17 00:00:00 2001 >From: Jamie Nguyen <j@jamielinux.com> >Date: Sat, 16 Feb 2013 08:40:09 +0000 >Subject: [PATCH] Add python3-pyasn1{,-modules} subpackages and update > >--- > .gitignore | 6 ++-- > python-pyasn1.spec | 89 ++++++++++++++++++++++++++++++++++++++++++++++++------ > sources | 4 +-- > 3 files changed, 84 insertions(+), 15 deletions(-) > >diff --git a/.gitignore b/.gitignore >index 476bcf1..b01b38c 100644 >--- a/.gitignore >+++ b/.gitignore >@@ -1,4 +1,2 @@ >-pyasn1-0.0.9a.tar.gz >-/pyasn1-0.0.12a.tar.gz >-/pyasn1-0.1.2.tar.gz >-/pyasn1-modules-0.0.2.tar.gz >+/pyasn1-0.1.6.tar.gz >+/pyasn1-modules-0.0.4.tar.gz >diff --git a/python-pyasn1.spec b/python-pyasn1.spec >index 84d27ff..db5630b 100644 >--- a/python-pyasn1.spec >+++ b/python-pyasn1.spec >@@ -1,11 +1,15 @@ >-%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} >+%if 0%{?fedora} > 12 >+%global with_python3 1 >+%else >+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib())")} >+%endif > > %global module pyasn1 >-%global modules_version 0.0.2 >+%global modules_version 0.0.4 > > Name: python-pyasn1 >-Version: 0.1.2 >-Release: 3%{?dist} >+Version: 0.1.6 >+Release: 1%{?dist} > Summary: ASN.1 tools for Python > License: BSD > Group: System Environment/Libraries >@@ -16,21 +20,50 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) > BuildArch: noarch > BuildRequires: python-devel python-setuptools > >+%if 0%{?with_python3} >+BuildRequires: python3-devel >+BuildRequires: python3-setuptools >+%endif >+ > %description >-This project is dedicated to implementation of ASN.1 types (concrete syntax) >-and codecs (transfer syntaxes) for Python programming environment. ASN.1 >-compiler is planned for implementation in the future. >+This is an implementation of ASN.1 types and codecs in the Python programming >+language. It has been first written to support particular protocol (SNMP) >+but then generalized to be suitable for a wide range of protocols based on >+ASN.1 specification. > > %package modules > Summary: Modules for pyasn1 >- >+Requires: python-pyasn1 >= 0.1.4 > > %description modules >-ASN.1 types modules. >+ASN.1 types modules for python-pyasn1. >+ >+%package -n python3-pyasn1 >+Summary: ASN.1 tools for Python 3 >+ >+%description -n python3-pyasn1 >+This is an implementation of ASN.1 types and codecs in the Python 3 programming >+language. It has been first written to support particular protocol (SNMP) >+but then generalized to be suitable for a wide range of protocols based on >+ASN.1 specification. >+ >+%package -n python3-pyasn1-modules >+Summary: Modules for pyasn1 >+Requires: python3-pyasn1 >= 0.1.4 >+ >+%description -n python3-pyasn1-modules >+ASN.1 types modules for python3-pyasn1. >+ > > %prep > %setup -n %{module}-%{version} -q -b1 > >+%if 0%{?with_python3} >+rm -rf %{py3dir} >+cp -a . %{py3dir} >+cp -a ../pyasn1-modules-%{modules_version} %{py3dir}-modules >+%endif >+ > > %build > %{__python} setup.py build >@@ -38,6 +71,15 @@ pushd ../pyasn1-modules-%{modules_version} > %{__python} setup.py build > popd > >+%if 0%{?with_python3} >+pushd %{py3dir} >+%{__python3} setup.py build >+popd >+pushd %{py3dir}-modules >+%{__python3} setup.py build >+popd >+%endif >+ > > %install > rm -rf $RPM_BUILD_ROOT >@@ -46,6 +88,15 @@ pushd ../pyasn1-modules-%{modules_version} > %{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT > popd > >+%if 0%{?with_python3} >+pushd %{py3dir} >+%{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT >+popd >+pushd %{py3dir}-modules >+%{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT >+popd >+%endif >+ > > %clean > rm -rf $RPM_BUILD_ROOT >@@ -62,8 +113,28 @@ rm -rf $RPM_BUILD_ROOT > %{python_sitelib}/%{module}_modules/ > %{python_sitelib}/%{module}_modules-%{modules_version}-*.egg-info/ > >+%if 0%{?with_python3} >+%files -n python3-pyasn1 >+%defattr(-,root,root,-) >+%doc README LICENSE doc/*.html >+%{python3_sitelib}/%{module} >+%{python3_sitelib}/%{module}-%{version}-*.egg-info/ >+ >+%files -n python3-pyasn1-modules >+%defattr(-,root,root,-) >+%{python3_sitelib}/%{module}_modules/ >+%{python3_sitelib}/%{module}_modules-%{modules_version}-*.egg-info/ >+%endif >+ > > %changelog >+* Sat Feb 16 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.1.6-1 >+- update to upstream release 0.1.6 >+- update modules to 0.0.4 >+- update description >+- add python3-pyasn1 subpackage >+- add versioned Requires for the module subpackages >+ > * Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.2-3 > - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild > >diff --git a/sources b/sources >index 3aee379..fb65b04 100644 >--- a/sources >+++ b/sources >@@ -1,2 +1,2 @@ >-a7c67f5880a16a347a4d3ce445862a47 pyasn1-0.1.2.tar.gz >-adc49aee6603a162f9d4a6830c8dc470 pyasn1-modules-0.0.2.tar.gz >+35fe440115a6edcb99f70e894ba23cfb pyasn1-0.1.6.tar.gz >+12eb7a0eb10fe57cd02ec5cbb19be7a7 pyasn1-modules-0.0.4.tar.gz >-- >1.8.1.2 >
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 911936
: 698288