[packages/libu2f-emu] - new
qboosh
qboosh at pld-linux.org
Wed Jun 22 21:00:23 CEST 2022
commit 1d480eb365e62471a085ea1488d605bca3de0e48
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Wed Jun 22 21:01:45 2022 +0200
- new
libu2f-emu.spec | 102 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 102 insertions(+)
---
diff --git a/libu2f-emu.spec b/libu2f-emu.spec
new file mode 100644
index 0000000..d44d97f
--- /dev/null
+++ b/libu2f-emu.spec
@@ -0,0 +1,102 @@
+#
+# Conditional build:
+%bcond_without apidocs # API documentation
+#
+Summary: Universal 2nd Factor (U2F) Emulation C Library
+Summary(pl.UTF-8): Biblioteka C emulacji U2F (Universal 2nd Factor)
+Name: libu2f-emu
+Version: 0
+%define gitref d1c4b9c2e1c42e8931033912c8b609521f2a7756
+%define snap 20200905
+Release: 0.%{snap}.1
+License: GPL v2
+Group: Libraries
+#Source0Download: https://github.com/MattGorko/libu2f-emu/tags
+Source0: https://github.com/MattGorko/libu2f-emu/archive/%{gitref}/%{name}-%{snap}.tar.gz
+# Source0-md5: 79aa3b26eaf704d530aa49d8430d306b
+URL: https://github.com/MattGorko/libu2f-emu
+%{?with_apidocs:BuildRequires: doxygen}
+%{?with_apidocs:BuildRequires: graphviz}
+# for tests
+#BuildRequires: gtest-devel >= 1.10.0
+BuildRequires: meson >= 0.52.0
+BuildRequires: ninja >= 1.5
+BuildRequires: openssl-devel >= 1.1.0
+BuildRequires: pkgconfig
+BuildRequires: rpm-build >= 4.6
+BuildRequires: rpmbuild(macros) >= 1.736
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Libu2f-emu provides a C Library for the U2F device emulations.
+
+%description -l pl.UTF-8
+Ten pakiet dostarcza bibliotekę C do emulacji urządzeń U2F.
+
+%package devel
+Summary: Header files for u2f-emu library
+Summary(pl.UTF-8): Pliki nagłówkowe biblioteki u2f-emu
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+Header files for u2f-emu library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki u2f-emu.
+
+%package apidocs
+Summary: API documentation for u2f-emu library
+Summary(pl.UTF-8): Dokumentacja API biblioteki u2f-emu
+Group: Documentation
+BuildArch: noarch
+
+%description apidocs
+API documentation for u2f-emu library.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API biblioteki u2f-emu.
+
+%prep
+%setup -q -n %{name}-%{gitref}
+
+# allow build without -devel already installed
+ln -sf ../src/u2f-emu{,-types}.h tests
+
+%build
+%meson build
+
+%ninja_build -C build
+
+%if %{with apidocs}
+%ninja_build -C build doc
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%ninja_install -C build
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%attr(755,root,root) %{_libdir}/libu2f-emu.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libu2f-emu.so.0
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libu2f-emu.so
+%{_includedir}/u2f-emu*.h
+%{_pkgconfigdir}/u2f-emu.pc
+
+%if %{with apidocs}
+%files apidocs
+%defattr(644,root,root,755)
+%doc build/doc/html/{search,*.{css,html,js,png}}
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libu2f-emu.git/commitdiff/1d480eb365e62471a085ea1488d605bca3de0e48
More information about the pld-cvs-commit
mailing list