Signed-off-by: 华亚东 <huayadong@kylinos.cn> (cherry picked from commit 7fa8510035db49c5f23215c83e6f4ff42cbd1d80)
204 lines
6.5 KiB
RPMSpec
204 lines
6.5 KiB
RPMSpec
Name: biometric-authentication
|
|
Version: 0.9.72
|
|
Release: 5
|
|
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
|
|
BuildRequires: chrpath
|
|
|
|
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}
|
|
chrpath -d %{buildroot}/usr/lib/biometric-authentication/drivers/aes1610.so
|
|
chrpath -d %{buildroot}/usr/lib/biometric-authentication/drivers/aes1660.so
|
|
chrpath -d %{buildroot}/usr/lib/biometric-authentication/drivers/aes2501.so
|
|
chrpath -d %{buildroot}/usr/lib/biometric-authentication/drivers/aes2550.so
|
|
chrpath -d %{buildroot}/usr/lib/biometric-authentication/drivers/aes2660.so
|
|
chrpath -d %{buildroot}/usr/lib/biometric-authentication/drivers/aes3500.so
|
|
chrpath -d %{buildroot}/usr/lib/biometric-authentication/drivers/aes4000.so
|
|
chrpath -d %{buildroot}/usr/lib/biometric-authentication/drivers/elan.so
|
|
chrpath -d %{buildroot}/usr/lib/biometric-authentication/drivers/etes603.so
|
|
chrpath -d %{buildroot}/usr/lib/biometric-authentication/drivers/fdu2000.so
|
|
chrpath -d %{buildroot}/usr/lib/biometric-authentication/drivers/upeksonly.so
|
|
chrpath -d %{buildroot}/usr/lib/biometric-authentication/drivers/upektc.so
|
|
chrpath -d %{buildroot}/usr/lib/biometric-authentication/drivers/upektc_img.so
|
|
chrpath -d %{buildroot}/usr/lib/biometric-authentication/drivers/upekts.so
|
|
chrpath -d %{buildroot}/usr/lib/biometric-authentication/drivers/uru4000.so
|
|
chrpath -d %{buildroot}/usr/lib/biometric-authentication/drivers/vcom5s.so
|
|
chrpath -d %{buildroot}/usr/lib/biometric-authentication/drivers/vfs0050.so
|
|
chrpath -d %{buildroot}/usr/lib/biometric-authentication/drivers/vfs101.so
|
|
chrpath -d %{buildroot}/usr/lib/biometric-authentication/drivers/vfs301.so
|
|
chrpath -d %{buildroot}/usr/lib/%{platform}-linux-gnu/libbiometric.so
|
|
chrpath -d %{buildroot}/usr/lib/%{platform}-linux-gnu/libbiometric.so.0
|
|
chrpath -d %{buildroot}/usr/lib/%{platform}-linux-gnu/libbiometric.so.0.0.0
|
|
chrpath -d %{buildroot}/usr/bin/biometric-config-tool
|
|
|
|
%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
|
|
* Thu Dec 15 2022 huayadong <huayadong@kylinos.cn> - 0.9.72-5
|
|
- Fix unsafe compilation options STRIP, RPATH
|
|
|
|
* Thu Dec 08 2022 fushanqing <fushanqing@kylinos.cn> - 0.9.72-4
|
|
- Enable debuginfo for fix strip
|
|
|
|
* 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
|