kiran-authentication-devices/kiran-authentication-devices.spec
wangyucheng fe0b860002 fix ld error: undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
- 修复在低于2.34版本的glibc环境中出现的链接错误
2023-04-21 14:02:36 +08:00

83 lines
2.3 KiB
RPMSpec

Name: kiran-authentication-devices
Version: 2.5.0
Release: 5
Summary: Kiran Authentication Devices
License: MulanPSL-2.0
Source0: %{name}-%{version}.tar.gz
Patch0001: 0001-feature-ukey-The-UKey-device-is-adapted.patch
Patch0002: 0002-fix-cmake-qt5-cmake-command-compatible.patch
Patch0003: 0003-fix-compile-fix-ld-error-undefined-reference-to-symb.patch
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: qt5-qtbase-devel
BuildRequires: qt5-linguist
BuildRequires: kiran-log-qt5-devel
BuildRequires: systemd-devel
Requires: qt5-qtbase
Requires: kiran-log-qt5
Requires: systemd
Requires: libusb
%description
Manage authentication devices
%package devel
Summary: Development files for kiran authentication devices
Requires: %{name} = %{version}-%{release}
%description devel
Development files for kiran authentication devices
%prep
%autosetup -p1
%build
%cmake
make %{?_smp_mflags}
%install
%make_install
%post
%systemd_post kiran-authentication-devices.service
systemctl enable kiran-authentication-devices.service
%preun
%systemd_preun kiran-authentication-devices.service
%files
%{_bindir}/kiran-authentication-devices
%{_datadir}/kiran-authentication-devices/translations/*.qm
%{_datadir}/dbus-1/system-services/com.kylinsec.Kiran.AuthDevice.service
%{_sysconfdir}/dbus-1/system.d/com.kylinsec.Kiran.AuthDevice.Device.conf
%{_sysconfdir}/dbus-1/system.d/com.kylinsec.Kiran.AuthDevice.conf
%{_sysconfdir}/kiran-authentication-devices/drivers.conf
%{_sysconfdir}/kiran-authentication-devices/third-party-devices.conf
%{_usr}/lib/systemd/system/kiran-authentication-devices.service
%files devel
%{_includedir}/kiran-authentication-devices/kiran-auth-device-i.h
%clean
rm -rf ${buildroot}
%changelog
* Fri Apr 21 2023 wangyucheng <wangyucheng@kylinsec.com.cn> - 2.5.0-5
- KYOS-F: fix ld error: undefined reference to symbol 'dlclose@@GLIBC_2.2.5'.
* Fri Apr 21 2023 wangyucheng <wangyucheng@kylinsec.com.cn> - 2.5.0-4
- KYOS-F: qt5 cmake command compatible.
* Thu Apr 20 2023 luoqing <luoqing@kylinsec.com.cn> - 2.5.0-3
- KYOS-F: Add libusb dependency.
* Wed Apr 19 2023 luoqing <luoqing@kylinsec.com.cn> - 2.5.0-2
- KYOS-F: The UKey device is adapted.
* Mon Apr 03 2023 luoqing <luoqing@kylinsec.com.cn> - 2.5.0-1
- Inital build