diff --git a/python-fido2.spec b/python-fido2.spec index 8a76556cbc3e85beb2d6b1b1799c9804a850624d..46cc792019b4b0bc549e7102d72f0389477962bf 100644 --- a/python-fido2.spec +++ b/python-fido2.spec @@ -1,12 +1,11 @@ %global _empty_manifest_terminate_build 0 Name: python-fido2 Version: 1.1.1 -Release: 1 +Release: 2 Summary: Python based FIDO 2.0 library License: BSD-2-Clause and Apache-2.0 and MPL-2.0 URL: https://github.com/Yubico/python-fido2 Source0: https://files.pythonhosted.org/packages/5a/67/244ad51cb9fd87eaf8797820d95e79d6d5f940c0aafe931e8051b60dd8a0/fido2-1.1.1.tar.gz -Source1: setup.py BuildArch: noarch %description @@ -17,7 +16,7 @@ over USB as well as verifying attestation and assertion signatures. Summary: Python based FIDO 2.0 library Provides: python-fido2 = %{version}-%{release} BuildRequires: python3-devel -BuildRequires: python3-setuptools +BuildRequires: python3-pip python3-wheel python3-flit Requires: python3-cryptography %description -n python3-fido2 Provides library functionality for communicating with a FIDO device @@ -32,13 +31,12 @@ over USB as well as verifying attestation and assertion signatures. %prep %autosetup -n fido2-%{version} -cp %{SOURCE1} ./ %build -%py3_build +%pyproject_build %install -%py3_install +%pyproject_install fido2==%{version} install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi @@ -47,34 +45,17 @@ if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi if [ -f README.rst ]; then cp -af README.rst %{buildroot}/%{_pkgdocdir}; fi if [ -f README.md ]; then cp -af README.md %{buildroot}/%{_pkgdocdir}; fi if [ -f README.txt ]; then cp -af README.txt %{buildroot}/%{_pkgdocdir}; fi -pushd %{buildroot} -if [ -d usr/lib ]; then - find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/lib64 ]; then - find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/bin ]; then - find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/sbin ]; then - find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst -fi -touch doclist.lst -if [ -d usr/share/man ]; then - find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst -fi -popd -mv %{buildroot}/filelist.lst . -mv %{buildroot}/doclist.lst . -%files -n python3-fido2 -f filelist.lst -%dir %{python3_sitelib}/* +%files -n python3-fido2 +%{python3_sitelib}/* -%files help -f doclist.lst +%files help %{_docdir}/* %changelog +* Tue Apr 25 2023 wubijie - 1.1.1-2 +- Update package to version 1.1.1 + * Tue Apr 11 2023 wubijie - 1.1.1-1 - Update package to version 1.1.1 diff --git a/setup.py b/setup.py deleted file mode 100644 index 37e1aee517b53b50f2aa4a059febdd8fd76fc868..0000000000000000000000000000000000000000 --- a/setup.py +++ /dev/null @@ -1,43 +0,0 @@ -#!/usr/bin/env python - -#from setuptools import setu - -#if __name__ == "__main__": - # setup( - # name = "fido2", # name - # version = "1.1.1", # version -#) -# -*- coding: utf-8 -*- -from setuptools import setup - -packages = \ -['fido2', 'fido2.attestation', 'fido2.ctap2', 'fido2.hid'] - -package_data = \ -{'': ['*']} - -install_requires = \ -['cryptography>=2.6,!=35,<40'] - -extras_require = \ -{'pcsc': ['pyscard>=1.9,<3']} - -setup_kwargs = { - 'name': 'fido2', - 'version': '1.1.0', - 'description': 'FIDO2/WebAuthn library for implementing clients and servers.', - 'long_description': None, - 'author': 'Dain Nilsson', - 'author_email': 'dain@yubico.com', - 'maintainer': None, - 'maintainer_email': None, - 'url': 'https://github.com/Yubico/python-fido2', - 'packages': packages, - 'package_data': package_data, - 'install_requires': install_requires, - 'extras_require': extras_require, - 'python_requires': '>=3.7,<4.0', -} - - -setup(**setup_kwargs)