]> git.pld-linux.org Git - packages/yubioath-desktop.git/blob - yubioath-desktop.spec
- updated to 4.3.4
[packages/yubioath-desktop.git] / yubioath-desktop.spec
1 Summary:        Yubikey tool for generating OATH event-based HOTP and time-based TOTP codes
2 Summary(pl.UTF-8):      Narzędzie Yubikey do generowania kodów OATH opartych na zdarzeniach (HOTP) i czasie (TOTP)
3 Name:           yubioath-desktop
4 Version:        4.3.4
5 Release:        1
6 License:        BSD
7 Group:          X11/Applications
8 Source0:        https://developers.yubico.com/yubioath-desktop/Releases/%{name}-%{version}.tar.gz
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
15 BuildRequires:  desktop-file-utils
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
22 Requires:       pcsc-driver-ccid
23 Requires:       python-PySide
24 Requires:       yubikey-manager
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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
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
39 %prep
40 %if 0
41 %setup -q
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
47
48 %build
49 qmake-qt5 \
50         QMAKE_CXX="%{__cxx}" \
51         QMAKE_CXXFLAGS_RELEASE="%{rpmcxxflags}" \
52         QMAKE_LFLAGS_RELEASE="%{rpmldflags}"
53
54 %{__make}
55
56 %install
57 rm -rf $RPM_BUILD_ROOT
58
59 %{__make} install \
60         INSTALL_ROOT=$RPM_BUILD_ROOT \
61         STRIP=:
62
63 # desktop file
64 desktop-file-install --dir=$RPM_BUILD_ROOT%{_desktopdir} resources/yubioath-desktop.desktop
65 # icons
66 install -d $RPM_BUILD_ROOT%{_pixmapsdir}
67 cp -p resources/icons/yubioath.png $RPM_BUILD_ROOT%{_pixmapsdir}
68
69 %clean
70 rm -rf $RPM_BUILD_ROOT
71
72 %post
73 %update_desktop_database
74
75 %postun
76 %update_desktop_database
77
78 %files
79 %defattr(644,root,root,755)
80 %doc COPYING NEWS README
81 %attr(755,root,root) %{_bindir}/yubioath-desktop
82 %{_desktopdir}/yubioath-desktop.desktop
83 %{_pixmapsdir}/yubioath.png
This page took 0.056295 seconds and 3 git commands to generate.