!8 sync 22.09 to 22.03-LTS-Next
From: @peijiankang Reviewed-by: @tanyulong2021 Signed-off-by: @tanyulong2021
This commit is contained in:
commit
8a664afb74
BIN
biometric-authentication-0.9.72.tar.gz
Normal file
BIN
biometric-authentication-0.9.72.tar.gz
Normal file
Binary file not shown.
175
biometric-authentication.spec
Normal file
175
biometric-authentication.spec
Normal file
@ -0,0 +1,175 @@
|
||||
%define debug_package %{nil}
|
||||
|
||||
Name: biometric-authentication
|
||||
Version: 0.9.72
|
||||
Release: 3
|
||||
Summary: biometric-authentication
|
||||
License: LGPL-3.0
|
||||
URL: http://www.ukui.org
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
|
||||
%ifarch x86_64
|
||||
%global platform x86_64
|
||||
%endif
|
||||
%ifarch aarch64
|
||||
%global platform aarch64
|
||||
%endif
|
||||
|
||||
BuildRequires: python3
|
||||
BuildRequires: automake
|
||||
BuildRequires: intltool
|
||||
BuildRequires: gettext-devel
|
||||
BuildRequires: libtool
|
||||
BuildRequires: glib2-devel
|
||||
BuildRequires: gtk3-devel
|
||||
BuildRequires: libusb-devel
|
||||
BuildRequires: sqlite-devel
|
||||
BuildRequires: libfprint-devel
|
||||
BuildRequires: polkit-devel
|
||||
BuildRequires: uuid-devel
|
||||
|
||||
Requires: systemd
|
||||
Requires: python-prettytable
|
||||
Requires: dbus-python
|
||||
|
||||
|
||||
%description
|
||||
biometric identification framework
|
||||
|
||||
%package -n biometric-auth
|
||||
Summary: libs
|
||||
License: LGPL-3.0
|
||||
Provides: biometric-auth
|
||||
|
||||
%description -n biometric-auth
|
||||
Biometric Authentication Service
|
||||
|
||||
|
||||
%package -n biometric-driver-community-multidevice
|
||||
Summary: libs
|
||||
License: LGPL-3.0
|
||||
Provides: biometric-driver-community-multidevice
|
||||
|
||||
%description -n biometric-driver-community-multidevice
|
||||
ometric Authentication Driver (community multidevice)
|
||||
|
||||
%package -n biometric-utils
|
||||
Summary: biometric-utils
|
||||
License: LGPL-3.0
|
||||
Provides: biometric-utils
|
||||
|
||||
%description -n biometric-utils
|
||||
Biometric authentication utils
|
||||
|
||||
|
||||
|
||||
%package -n libbiometric-devel
|
||||
Summary: libbiometric-devel
|
||||
License: LGPL-3.0
|
||||
|
||||
%description -n libbiometric-devel
|
||||
Biometric Identification DRIVER API - development files
|
||||
|
||||
|
||||
|
||||
%package -n libbiometric0
|
||||
Summary: libbiometric0
|
||||
License: LGPL-3.0 license
|
||||
|
||||
%description -n libbiometric0
|
||||
Biometric Identification library
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
export prefix=/usr
|
||||
./autogen.sh
|
||||
./configure --build=%{platform}-linux-gnu \
|
||||
--prefix=/usr \
|
||||
--includedir=\${prefix}/include \
|
||||
--mandir=\${prefix}/share/man \
|
||||
--infodir=\${prefix}/share/info \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--disable-silent-rules \
|
||||
--libdir=\${prefix}/lib/%{platform}-linux-gnu \
|
||||
--libexecdir=\${prefix}/lib/%{platform}-linux-gnu \
|
||||
--disable-dependency-tracking \
|
||||
--enable-static \
|
||||
--enable-shared \
|
||||
--with-bio-db-dir=/var/lib/biometric-auth/ \
|
||||
--with-bio-db-name=biometric.db \
|
||||
--with-bio-config-dir=/etc/biometric-auth/ \
|
||||
--with-bio-driver-dir=/usr/lib/biometric-authentication/drivers \
|
||||
--with-bio-extra-dir=/usr/lib/biometric-authentication/drivers/extra \
|
||||
--libexecdir=\${prefix}/lib/biometric-authentication
|
||||
|
||||
make -j4
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
make install DESTDIR=%{buildroot}
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%files -n biometric-auth
|
||||
%{_sysconfdir}/dbus-1/system.d/org.ukui.Biometric.conf
|
||||
%{_sysconfdir}/init.d/biometric-authentication
|
||||
/usr/lib/biometric-authentication/biometric-authenticationd
|
||||
%{_datadir}/dbus-1/interfaces/org.ukui.Biometric.xml
|
||||
%{_datadir}/polkit-1/actions/org.freedesktop.policykit.pkexec.biometric-authentication.policy
|
||||
%{_datadir}/polkit-1/actions/org.ukui.biometric.policy
|
||||
%{_sysconfdir}/biometric-auth/biometric-drivers.conf
|
||||
/lib/systemd/system/biometric-authentication.service
|
||||
|
||||
|
||||
%files -n biometric-driver-community-multidevice
|
||||
/usr/lib/biometric-authentication/discover-tools/extra/community-multidevice-discover-tool
|
||||
/usr/lib/biometric-authentication/drivers/*.la
|
||||
/usr/lib/biometric-authentication/drivers/*.so
|
||||
/usr/lib/biometric-authentication/discover-tools/usb*
|
||||
|
||||
|
||||
|
||||
%files -n biometric-utils
|
||||
%{_bindir}/biometric-auth-client
|
||||
%{_bindir}/biometric-config-tool
|
||||
%{_bindir}/biometric-device-discover
|
||||
|
||||
|
||||
|
||||
%files -n libbiometric-devel
|
||||
%{_includedir}/libbiometric/biometric_common.h
|
||||
%{_includedir}/libbiometric/biometric_config.h
|
||||
%{_includedir}/libbiometric/biometric_storage.h
|
||||
%{_includedir}/libbiometric/biometric_version.h
|
||||
|
||||
|
||||
%files -n libbiometric0
|
||||
%{_datadir}/locale/bo/LC_MESSAGES/biometric-authentication.mo
|
||||
%{_datadir}/locale/es/LC_MESSAGES/biometric-authentication.mo
|
||||
%{_datadir}/locale/fr/LC_MESSAGES/biometric-authentication.mo
|
||||
%{_datadir}/locale/pt/LC_MESSAGES/biometric-authentication.mo
|
||||
%{_datadir}/locale/ru/LC_MESSAGES/biometric-authentication.mo
|
||||
%{_datadir}/locale/zh_CN/LC_MESSAGES/biometric-authentication.mo
|
||||
/usr/lib/%{platform}-linux-gnu/libbiometric.a
|
||||
/usr/lib/%{platform}-linux-gnu/libbiometric.la
|
||||
/usr/lib/%{platform}-linux-gnu/libbiometric.so
|
||||
/usr/lib/%{platform}-linux-gnu/libbiometric.so.0
|
||||
/usr/lib/%{platform}-linux-gnu/libbiometric.so.0.0.0
|
||||
/usr/lib/%{platform}-linux-gnu/pkgconfig/libbiometric.pc
|
||||
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Aug 3 2022 peijiankang <peijiankang@kylinos.cn> - 0.9.72-3
|
||||
- remove if and endif
|
||||
|
||||
* Fri Jun 24 2022 peijiankang <peijiankang@kylinos.cn> - 0.9.72-2
|
||||
- fix build error
|
||||
|
||||
* Mon May 16 2022 tanyulong <tanyulong@kylinos.cn> - 0.9.72-1
|
||||
- init package for openEuler
|
||||
Loading…
x
Reference in New Issue
Block a user