a02ca2
%{?python_enable_dependency_generator}
8aef3e
%global module pyasn1
a02ca2
%global modules_version 0.2.6
8aef3e
8aef3e
Name:           python-pyasn1
a02ca2
Version:        0.4.6
a02ca2
Release:        3%{?dist}
8aef3e
Summary:        ASN.1 tools for Python
8aef3e
License:        BSD
8aef3e
Source0:        https://github.com/etingof/pyasn1/archive/v%{version}.tar.gz
8aef3e
Source1:        https://github.com/etingof/pyasn1-modules/archive/v%{modules_version}.tar.gz
8aef3e
URL:            http://pyasn1.sourceforge.net/
8aef3e
BuildArch:      noarch
8aef3e
8aef3e
%description
8aef3e
This is an implementation of ASN.1 types and codecs in the Python programming
8aef3e
language.
8aef3e
8aef3e
%package -n python3-pyasn1
8aef3e
Summary:    ASN.1 tools for Python 3
8aef3e
%{?python_provide:%python_provide python3-pyasn1}
8aef3e
BuildRequires:  python3-devel
8aef3e
BuildRequires:  python3-setuptools
8aef3e
8aef3e
%description -n python3-pyasn1
8aef3e
This is an implementation of ASN.1 types and codecs in the Python 3 programming
8aef3e
language.
8aef3e
8aef3e
%package -n python3-pyasn1-modules
8aef3e
Summary:    Modules for pyasn1
8aef3e
Requires:   python3-pyasn1 >= %{version}-%{release}
8aef3e
%{?python_provide:%python_provide python3-modules}
8aef3e
8aef3e
%description -n python3-pyasn1-modules
8aef3e
ASN.1 types modules for python3-pyasn1.
8aef3e
8aef3e
%package doc
8aef3e
Summary:        Documentation for pyasn1
8aef3e
BuildRequires:  python3-sphinx
8aef3e
8aef3e
%description doc
8aef3e
%{summary}.
8aef3e
8aef3e
8aef3e
%prep
8aef3e
%setup -n %{module}-%{version} -q -b1
8aef3e
8aef3e
8aef3e
%build
8aef3e
%py3_build
8aef3e
8aef3e
pushd ../pyasn1-modules-%{modules_version}
8aef3e
%py3_build
8aef3e
popd
8aef3e
a02ca2
pushd docs
8aef3e
PYTHONPATH=%{buildroot}%{python3_sitelib} make SPHINXBUILD=sphinx-build-3 html
8aef3e
popd
8aef3e
8aef3e
8aef3e
%install
8aef3e
%py3_install
8aef3e
8aef3e
pushd ../pyasn1-modules-%{modules_version}
8aef3e
%py3_install
8aef3e
popd
8aef3e
8aef3e
8aef3e
%check
8aef3e
PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} setup.py test
8aef3e
8aef3e
8aef3e
%files -n python3-pyasn1
8aef3e
%doc README.md
8aef3e
%license LICENSE.rst
8aef3e
%{python3_sitelib}/%{module}
8aef3e
%{python3_sitelib}/%{module}-%{version}-*.egg-info/
8aef3e
8aef3e
%files -n python3-pyasn1-modules
8aef3e
%{python3_sitelib}/%{module}_modules/
8aef3e
%{python3_sitelib}/%{module}_modules-%{modules_version}-*.egg-info/
8aef3e
8aef3e
%files doc
8aef3e
%license LICENSE.rst
a02ca2
%doc docs/build/html/*
8aef3e
8aef3e
%changelog
a02ca2
* Wed Oct 23 2019 Rob Crittenden <rcritten@redhat.com> - 0.4.6-3
a02ca2
- Remove python2 subpackages (#1764573)
8aef3e
a02ca2
* Thu Oct 03 2019 Miro Hron훾ok <mhroncok@redhat.com> - 0.4.6-2
a02ca2
- Rebuilt for Python 3.8.0rc1 (#1748018)
a02ca2
a02ca2
* Fri Aug 30 2019 Rob Crittenden <rcritten@redhat.com> - 0.4.6-1
a02ca2
- Update to 0.4.6 (#1742424)
a02ca2
- Update modules to 0.2.6
a02ca2
a02ca2
* Fri Aug 16 2019 Miro Hron훾ok <mhroncok@redhat.com> - 0.4.4-6
a02ca2
- Rebuilt for Python 3.8
a02ca2
a02ca2
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.4-5
a02ca2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
a02ca2
a02ca2
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.4-4
a02ca2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
a02ca2
a02ca2
* Tue Oct 16 2018 Rob Crittenden <rcritten@redhat.com> - 0.4.4-3
a02ca2
- Restore python2 subpackages
a02ca2
a02ca2
* Mon Oct 15 2018 Rob Crittenden <rcritten@redhat.com> - 0.4.4-2
a02ca2
- Add back accidentally removed buildrequires
a02ca2
a02ca2
* Mon Oct 15 2018 Rob Crittenden <rcritten@redhat.com> - 0.4.4-1
a02ca2
- Update to 0.4.4 (#1582010)
a02ca2
- Update modules to 0.2.2
a02ca2
- Drop python 2 subpackages
a02ca2
a02ca2
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org>
a02ca2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
a02ca2
a02ca2
* Tue Jun 19 2018 Miro Hron훾ok <mhroncok@redhat.com> - 0.3.7-5
8aef3e
- Use Python 3 Sphinx if with Python 3
8aef3e
- Cleanup
8aef3e
8aef3e
* Sun Jun 17 2018 Miro Hron훾ok <mhroncok@redhat.com> - 0.3.7-4
8aef3e
- Rebuilt for Python 3.7
8aef3e
8aef3e
* Wed Feb 14 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.3.7-3
8aef3e
- Update Python 2 dependency declarations to new packaging standards
8aef3e
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
8aef3e
8aef3e
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.7-2
8aef3e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
8aef3e
8aef3e
* Thu Nov 16 2017 Christian Heimes <cheimes@redhat.com> - 0.3.7-1
8aef3e
- Update to upstream release 0.3.7 (#1492446)
8aef3e
- Update modules to 0.1.5
8aef3e
8aef3e
* Fri Sep 29 2017 Troy Dawson <tdawson@redhat.com> - 0.3.4-2
8aef3e
- Cleanup spec file conditionals
8aef3e
8aef3e
* Fri Sep 15 2017 Rob Crittenden <rcritten@redhat.com> - 0.3.4-1
8aef3e
- Update to upstream release 0.3.4 (#1485669)
8aef3e
- Update modules to 0.1.2
8aef3e
- Patch to fixed crash at SequenceOf native decoder
8aef3e
8aef3e
* Wed Aug 16 2017 Rob Crittenden <rcritten@redhat.com> - 0.3.2-1
8aef3e
- Update to upstream release 0.3.2 (#1475594)
8aef3e
- Update modules to 0.0.11
8aef3e
8aef3e
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.3-2
8aef3e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
8aef3e
8aef3e
* Mon Feb 27 2017 Rob Crittenden <rcritten@redhat.com> - 0.2.3-1
8aef3e
- Update to upstream release 0.2.3 (#1426979)
8aef3e
- Adapt to the way upstream changed the way tests are executed
8aef3e
- Pass PYTHONPATH when building the documentation
8aef3e
8aef3e
* Mon Feb  6 2017 Rob Crittenden <rcritten@redhat.com> - 0.2.1-1
8aef3e
- Update to upstream release 0.2.1 (#1419310)
8aef3e
- Added doc subpackage and moved documentation there
8aef3e
8aef3e
* Fri Dec 09 2016 Charalampos Stratakis <cstratak@redhat.com> - 0.1.9-8.1
8aef3e
- Rebuild for Python 3.6
8aef3e
8aef3e
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.9-7.1
8aef3e
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
8aef3e
8aef3e
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.9-6.1
8aef3e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
8aef3e
8aef3e
* Mon Jan 11 2016 Rob Crittenden <rcritten@redhat.com> - 0.1.9-5.1
8aef3e
- Add in missing colon after Provides
8aef3e
8aef3e
* Mon Jan 11 2016 Rob Crittenden <rcritten@redhat.com> - 0.1.9-5
8aef3e
- If python_provide wasn't defined then the python2 subpackages
8aef3e
  didn't provide python-pyasn1-*
8aef3e
8aef3e
* Tue Jan  5 2016 Martin Kosek <mkosek@redhat.com> - 0.1.9-4
8aef3e
- Fix python2 provides for pyasn1 modules (#1295693)
8aef3e
8aef3e
* Mon Jan  4 2016 Rob Crittenden <rcritten@redhat.com> - 0.1.9-3
8aef3e
- Explicitly provide python2 subpackages, use python_provide macro
8aef3e
8aef3e
* Wed Nov 04 2015 Robert Kuska <rkuska@redhat.com> - 0.1.9-2
8aef3e
- Rebuilt for Python3.5 rebuild
8aef3e
8aef3e
* Mon Oct 19 2015 Rob Crittenden <rcritten@redhat.com> - 0.1.9-1
8aef3e
- Update to new upstream release 0.1.9, modules 0.0.8.
8aef3e
8aef3e
* Sat Aug 15 2015 Rob Crittenden <rcritten@redhat.com> - 0.1.8-2
8aef3e
- Move LICENSE to the license tag instead of doc.
8aef3e
8aef3e
* Wed Jul 15 2015 Jason L Tibbitts III <tibbs@math.uh.edu> - 0.1.8-1
8aef3e
- Update to new upstream release 0.1.8, modules 0.0.6.
8aef3e
8aef3e
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.7-5
8aef3e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
8aef3e
8aef3e
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.7-4
8aef3e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
8aef3e
8aef3e
* Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 0.1.7-3
8aef3e
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
8aef3e
8aef3e
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.7-2
8aef3e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
8aef3e
8aef3e
* Wed Jul 24 2013 Rob Crittenden <rcritten@redhat.com> - 0.1.7-1
8aef3e
- update to upstream release 0.1.7
8aef3e
- update modules to 0.0.5
8aef3e
8aef3e
* Sat Feb 16 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.1.6-1
8aef3e
- update to upstream release 0.1.6
8aef3e
- update modules to 0.0.4
8aef3e
- update description
8aef3e
- add python3-pyasn1 subpackage
8aef3e
- add versioned Requires for the module subpackages
8aef3e
- add %%check section
8aef3e
8aef3e
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.2-3
8aef3e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
8aef3e
8aef3e
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.2-2
8aef3e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
8aef3e
8aef3e
* Mon Jan 02 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.1.2-1
8aef3e
- New upstream version
8aef3e
8aef3e
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.12a-2
8aef3e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
8aef3e
8aef3e
* Wed Dec 22 2010 Rob Crittenden <rcritten@redhat.com> - 0.0.12a-1
8aef3e
- Update to upstream version 0.0.12a
8aef3e
8aef3e
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.0.9a-2
8aef3e
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
8aef3e
8aef3e
* Mon Nov 16 2009 Rob Crittenden <rcritten@redhat.com> - 0.0.9a-1
8aef3e
- Update to upstream version 0.0.9a
8aef3e
- Include patch that adds parsing for the Any type
8aef3e
8aef3e
* Wed Sep  2 2009 Rob Crittenden <rcritten@redhat.com> - 0.0.8a-5
8aef3e
- Include doc/notes.html in the package
8aef3e
8aef3e
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.8a-4
8aef3e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
8aef3e
8aef3e
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.8a-3
8aef3e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
8aef3e
8aef3e
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.0.8a-2
8aef3e
- Rebuild for Python 2.6
8aef3e
8aef3e
* Tue Sep  9 2008 Paul P. Komkoff Jr <i@stingr.net> - 0.0.8a-1
8aef3e
- Update to upstream version 0.0.8a
8aef3e
8aef3e
* Wed Jan 16 2008 Rob Crittenden <rcritten@redhat.com> - 0.0.7a-4
8aef3e
- Use setuptools to install the package
8aef3e
- simplify the files included in the rpm so it includes the .egg-info
8aef3e
8aef3e
* Mon Jan 14 2008 Rob Crittenden <rcritten@redhat.com> - 0.0.7a-3
8aef3e
- Rename to python-pyasn1
8aef3e
- Spec file cleanups
8aef3e
8aef3e
* Mon Nov 19 2007 Karl MacMillan <kmacmill@redhat.com> - 0.0.7a-2
8aef3e
- Update rpm to be more fedora friendly
8aef3e
8aef3e
* Thu Nov 8 2007 Simo Sorce <ssorce@redhat.com> 0.0.7a-1
8aef3e
- New release
8aef3e
8aef3e
* Mon May 28 2007 Andreas Hasenack <andreas@mandriva.com> 0.0.6a-1mdv2008.0
8aef3e
+ Revision: 31989
8aef3e
- fixed (build)requires
8aef3e
- Import pyasn1
8aef3e