kiran-authentication-devices/kiran-authentication-devices.spec
2023-04-20 16:32:56 +08:00

75 lines
1.9 KiB
RPMSpec

Name: kiran-authentication-devices
Version: 2.5.0
Release: 3
Summary: Kiran Authentication Devices
License: MulanPSL-2.0
Source0: %{name}-%{version}.tar.gz
Patch0001: 0001-feature-ukey-The-UKey-device-is-adapted.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
* 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