2011-08-31 15:09:58 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-pyasn1
|
|
|
|
#
|
2024-04-03 14:06:05 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2011-08-31 15:09:58 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
2011-09-01 15:34:59 +00:00
|
|
|
|
2018-12-07 11:40:57 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-08-31 15:09:58 +00:00
|
|
|
#
|
|
|
|
|
2011-12-12 09:05:17 +00:00
|
|
|
|
2023-04-21 14:09:31 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2011-08-31 15:09:58 +00:00
|
|
|
Name: python-pyasn1
|
2024-10-07 14:43:40 +00:00
|
|
|
Version: 0.6.1
|
2012-04-17 15:13:45 +00:00
|
|
|
Release: 0
|
2011-08-31 15:09:58 +00:00
|
|
|
Summary: ASN.1 types and codecs
|
2015-03-03 18:11:04 +00:00
|
|
|
License: BSD-2-Clause
|
2011-08-31 15:09:58 +00:00
|
|
|
Group: Development/Languages/Python
|
2023-05-04 19:31:14 +00:00
|
|
|
URL: https://github.com/pyasn1/pyasn1
|
2018-12-07 11:40:57 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/p/pyasn1/pyasn1-%{version}.tar.gz
|
2023-05-04 19:25:54 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2017-03-16 14:20:56 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2023-05-04 19:25:54 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2017-06-30 11:02:05 +00:00
|
|
|
BuildRequires: fdupes
|
2017-03-16 14:20:56 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2018-12-07 11:40:57 +00:00
|
|
|
BuildArch: noarch
|
2017-03-16 14:20:56 +00:00
|
|
|
%python_subpackages
|
2011-08-31 15:09:58 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This is an implementation of ASN.1 types and codecs in 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.
|
|
|
|
|
|
|
|
%prep
|
2017-11-26 22:36:01 +00:00
|
|
|
%setup -q -n pyasn1-%{version}
|
2011-08-31 15:09:58 +00:00
|
|
|
|
|
|
|
%build
|
2023-05-04 19:25:54 +00:00
|
|
|
%pyproject_wheel
|
2015-04-22 12:44:02 +00:00
|
|
|
|
2011-08-31 15:09:58 +00:00
|
|
|
%install
|
2023-05-04 19:25:54 +00:00
|
|
|
%pyproject_install
|
2018-12-07 11:40:57 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2017-03-16 14:20:56 +00:00
|
|
|
|
|
|
|
%check
|
2021-05-27 09:49:49 +00:00
|
|
|
%pyunittest discover -v
|
2011-08-31 15:09:58 +00:00
|
|
|
|
2018-12-07 11:40:57 +00:00
|
|
|
%files %{python_files}
|
2018-08-07 14:48:20 +00:00
|
|
|
%doc CHANGES.rst README.md TODO.rst
|
|
|
|
%license LICENSE.rst
|
2023-05-04 19:25:54 +00:00
|
|
|
%{python_sitelib}/pyasn1
|
|
|
|
%{python_sitelib}/pyasn1-%{version}.dist-info
|
2011-08-31 15:09:58 +00:00
|
|
|
|
|
|
|
%changelog
|