diff --git a/0.9.1.tar.gz b/0.9.1.tar.gz deleted file mode 100644 index 224989a07c606a5574044a28c7f94373027ec9b1..0000000000000000000000000000000000000000 Binary files a/0.9.1.tar.gz and /dev/null differ diff --git a/fido2-1.0.0.tar.gz b/fido2-1.0.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..59ea759879dd08cad352f3f7c5a1f068f0081f29 Binary files /dev/null and b/fido2-1.0.0.tar.gz differ diff --git a/python-fido2.spec b/python-fido2.spec index 05829150668d713da8893d53d05cd1637e1c156b..86470d06852615f0f6aaf5a336423b8752b2ce5f 100644 --- a/python-fido2.spec +++ b/python-fido2.spec @@ -1,49 +1,78 @@ +%global _empty_manifest_terminate_build 0 Name: python-fido2 -Version: 0.9.1 +Version: 1.0.0 Release: 1 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://github.com/Yubico/python-fido2/archive/refs/tags/0.9.1.tar.gz +Source0: https://files.pythonhosted.org/packages/cd/69/1af41955530255ca2337bab370a75b3dbbb8be8707f6280c9efedfb77a85/fido2-1.0.0.tar.gz BuildArch: noarch +Requires: python3-cryptography +Requires: python3-pyscard + %description Provides library functionality for communicating with a FIDO device over USB as well as verifying attestation and assertion signatures. %package -n python3-fido2 -Summary: Python based FIDO 2.0 library -Provides: python-fido2 -BuildRequires: python3-devel python3-setuptools - +Summary: FIDO2/WebAuthn library for implementing clients and servers. +Provides: python-fido2 +BuildRequires: python3-devel +BuildRequires: python3-setuptools %description -n python3-fido2 Provides library functionality for communicating with a FIDO device over USB as well as verifying attestation and assertion signatures. - %package help Summary: Development documents and examples for fido2 Provides: python3-fido2-doc - %description help Documentation for python3-fido2. %prep -%autosetup -n python-fido2-0.9.1 +%autosetup -n fido2-1.0.0 %build %py3_build %install %py3_install +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 +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{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 -%{python3_sitelib}/fido2 -%{python3_sitelib}/fido2-0.9.1-py%{python3_version}.egg-info +%files -n python3-fido2 -f filelist.lst +%dir %{python3_sitelib}/* -%files help -%doc examples +%files help -f doclist.lst +%{_docdir}/* %changelog +* Mon Aug 01 2022 liqiuyu - 1.0.0-1 +- Update to 1.0.0 + * Fri Jul 16 2021 Kou Wenqi - 0.9.1-1 -- Init package +- Init package \ No newline at end of file