]>
Commit | Line | Data |
---|---|---|
353111f4 | 1 | Summary: Yubikey tool for generating OATH event-based HOTP and time-based TOTP codes |
cac70163 | 2 | Summary(pl.UTF-8): Narzędzie Yubikey do generowania kodów OATH opartych na zdarzeniach (HOTP) i czasie (TOTP) |
353111f4 | 3 | Name: yubioath-desktop |
cac70163 | 4 | Version: 4.3.4 |
353111f4 | 5 | Release: 1 |
cac70163 | 6 | License: BSD |
353111f4 | 7 | Group: X11/Applications |
353111f4 | 8 | Source0: https://developers.yubico.com/yubioath-desktop/Releases/%{name}-%{version}.tar.gz |
cac70163 JB |
9 | # Source0-md5: a4a18ba12d8ce63e94f0c0af80194a8a |
10 | URL: https://developers.yubico.com/yubioath-desktop/ | |
11 | BuildRequires: Qt5Gui-devel >= 5 | |
12 | BuildRequires: Qt5Qml-devel >= 5 | |
13 | BuildRequires: Qt5Quick-devel >= 5 | |
14 | BuildRequires: Qt5Widgets-devel >= 5 | |
353111f4 | 15 | BuildRequires: desktop-file-utils |
cac70163 JB |
16 | BuildRequires: libstdc++-devel >= 6:4.7 |
17 | BuildRequires: python3 >= 1:3.2 | |
18 | BuildRequires: python3-modules >= 1:3.2 | |
19 | BuildRequires: qt5-build >= 5 | |
20 | BuildRequires: qt5-qmake >= 5 | |
21 | Requires(post,postun): desktop-file-utils | |
353111f4 AM |
22 | Requires: pcsc-driver-ccid |
23 | Requires: python-PySide | |
cac70163 JB |
24 | Requires: yubikey-manager |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
353111f4 AM |
26 | |
27 | %description | |
28 | The Yubico Authenticator is a graphical desktop tool and CLI for | |
29 | generating Open AuTHentication (OATH) event-based HOTP and time-based | |
30 | TOTP one-time password codes, with the help of a YubiKey that protects | |
31 | the shared secrets. | |
32 | ||
cac70163 JB |
33 | %description -l pl.UTF-8 |
34 | Yubico Authenticator to narzędzie graficzne oraz linii poleceń do | |
35 | generowania kodów jednorazowych haseł OATH (Open AuTHentication) | |
36 | opartych na zdarzeniach (HOTP) i czasie (TOTP) z pomocą urządzenia | |
37 | YubiKey, które zabezpiecza współdzielone dane prywatne. | |
38 | ||
353111f4 | 39 | %prep |
cac70163 | 40 | %if 0 |
353111f4 | 41 | %setup -q |
cac70163 JB |
42 | %else |
43 | # 4.3.4 tarball is broken (pure tar saved as .tar.gz) | |
44 | %setup -q -c -T -n %{name} | |
45 | %{__tar} xf %{SOURCE0} -C .. | |
46 | %endif | |
353111f4 AM |
47 | |
48 | %build | |
cac70163 JB |
49 | qmake-qt5 \ |
50 | QMAKE_CXX="%{__cxx}" \ | |
51 | QMAKE_CXXFLAGS_RELEASE="%{rpmcxxflags}" \ | |
52 | QMAKE_LFLAGS_RELEASE="%{rpmldflags}" | |
353111f4 | 53 | |
cac70163 | 54 | %{__make} |
353111f4 AM |
55 | |
56 | %install | |
57 | rm -rf $RPM_BUILD_ROOT | |
353111f4 | 58 | |
cac70163 JB |
59 | %{__make} install \ |
60 | INSTALL_ROOT=$RPM_BUILD_ROOT \ | |
61 | STRIP=: | |
353111f4 AM |
62 | |
63 | # desktop file | |
cac70163 | 64 | desktop-file-install --dir=$RPM_BUILD_ROOT%{_desktopdir} resources/yubioath-desktop.desktop |
353111f4 AM |
65 | # icons |
66 | install -d $RPM_BUILD_ROOT%{_pixmapsdir} | |
cac70163 | 67 | cp -p resources/icons/yubioath.png $RPM_BUILD_ROOT%{_pixmapsdir} |
353111f4 AM |
68 | |
69 | %clean | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
72 | %post | |
353111f4 AM |
73 | %update_desktop_database |
74 | ||
75 | %postun | |
353111f4 AM |
76 | %update_desktop_database |
77 | ||
78 | %files | |
79 | %defattr(644,root,root,755) | |
cac70163 JB |
80 | %doc COPYING NEWS README |
81 | %attr(755,root,root) %{_bindir}/yubioath-desktop | |
82 | %{_desktopdir}/yubioath-desktop.desktop | |
83 | %{_pixmapsdir}/yubioath.png |