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