diff --git a/libfido2.spec b/libfido2.spec index fe60056257e84f9bdb9be15aae4013974eefb57d..b3f854abe11f9c128bbd42d97f8467f2024271e9 100644 --- a/libfido2.spec +++ b/libfido2.spec @@ -1,66 +1,48 @@ -%define anolis_release 1 -Name: libfido2 - -Version: 1.13.0 -Release: %{anolis_release}%{?dist} -Summary: FIDO2 library - -License: BSD -URL: https://github.com/Yubico/%{name} -Source0: https://developers.yubico.com/%{name}/Releases/%{name}-%{version}.tar.gz - -BuildRequires: gnupg2 -BuildRequires: cmake -BuildRequires: make -BuildRequires: gcc -BuildRequires: pkgconfig(hidapi-hidraw) -BuildRequires: pkgconfig(libcbor) -BuildRequires: pkgconfig(libudev) -BuildRequires: pkgconfig(openssl) -BuildRequires: pkgconfig(zlib) +%define anolis_release 2 -%description -%{name} is an open source library to support the FIDO2 protocol. FIDO2 is -an open authentication standard that consists of the W3C Web Authentication -specification (WebAuthn API), and the Client to Authentication Protocol -(CTAP). CTAP is an application layer protocol used for communication -between a client (browser) or a platform (operating system) with an external -authentication device (for example the Yubico Security Key). +Name: libfido2 +Version: 1.13.0 +Release: %{anolis_release}%{?dist} +Summary: FIDO2 library +License: BSD +URL: https://github.com/Yubico/%{name} +Source0: https://developers.yubico.com/%{name}/Releases/%{name}-%{version}.tar.gz -################################################################################ +BuildRequires: gnupg2 gcc gcc-c++ make cmake autoconf +BuildRequires: pkgconfig(hidapi-hidraw) pkgconfig(libcbor) pkgconfig(libudev) +BuildRequires: pkgconfig(openssl) pkgconfig(zlib) -%package doc -Summary: Documentation files for %{name} -Requires: %{name} = %{version}-%{release} -BuildArch: noarch +%description +libfido2 provides library functionality and command-line tools to communicate +with a FIDO device over USB or NFC, and to verify attestation and assertion signatures. +libfido2 supports the FIDO U2F (CTAP 1) and FIDO2 (CTAP 2) protocols. -%description doc -The %{name}-doc package contains documentation files for %{name}. %package devel - -Summary: Development files for %{name} -Requires: %{name} = %{version}-%{release} +Summary: Development files for %{name} +Requires: %{name} = %{version}-%{release} %description devel -%{name}-devel contains development libraries and header files for %{name}. - -################################################################################ +libfido2-devel contains development libraries and header files for libfido2. %package -n fido2-tools - -Summary: FIDO2 tools -Requires: %{name} = %{version}-%{release} +Summary: FIDO2 tools +Requires: %{name} = %{version}-%{release} %description -n fido2-tools -FIDO2 command line tools to access and configure a FIDO2 compliant -authentication device. +FIDO2 command line tools to access and configure a FIDO2 compliant authentication device. -################################################################################ +%package doc +Summary: Documentation files for %{name} +Requires: %{name} = %{version}-%{release} +BuildArch: noarch + +%description doc +The libfido2-doc package contains documentation files for libfido2. %prep -%autosetup -p1 -n %{name}-%{version} +%autosetup -n %{name}-%{version} -p1 %build %cmake -DBUILD_STATIC_LIBS=OFF @@ -68,26 +50,32 @@ authentication device. %install %cmake_install +%generate_compatibility_deps %files +%dir %{abidir} %license LICENSE %{_libdir}/libfido2.so.1{,.*} - -%files doc -%doc NEWS README.adoc +%{abidir}/libfido2*.dump %files devel +%{_includedir}/* %{_libdir}/pkgconfig/* %{_libdir}/libfido2.so -%{_includedir}/* %{_mandir}/man3/* %files -n fido2-tools -%{_bindir}/* +%{_bindir}/fido2* %{_mandir}/man1/* +%files doc +%doc README.adoc NEWS + %changelog +* Fri Apr 14 2023 chen_yu_ao - 1.13.0-2 +- change spec file format and generate abi files + * Tue Mar 7 2023 Funda Wang - 1.13.0-1 - New version 1.13.0