]> git.pld-linux.org Git - packages/yubioath-desktop.git/blame - yubioath-desktop.spec
- updated to 4.3.4
[packages/yubioath-desktop.git] / yubioath-desktop.spec
CommitLineData
353111f4 1Summary: Yubikey tool for generating OATH event-based HOTP and time-based TOTP codes
cac70163 2Summary(pl.UTF-8): Narzędzie Yubikey do generowania kodów OATH opartych na zdarzeniach (HOTP) i czasie (TOTP)
353111f4 3Name: yubioath-desktop
cac70163 4Version: 4.3.4
353111f4 5Release: 1
cac70163 6License: BSD
353111f4 7Group: X11/Applications
353111f4 8Source0: https://developers.yubico.com/yubioath-desktop/Releases/%{name}-%{version}.tar.gz
cac70163
JB
9# Source0-md5: a4a18ba12d8ce63e94f0c0af80194a8a
10URL: https://developers.yubico.com/yubioath-desktop/
11BuildRequires: Qt5Gui-devel >= 5
12BuildRequires: Qt5Qml-devel >= 5
13BuildRequires: Qt5Quick-devel >= 5
14BuildRequires: Qt5Widgets-devel >= 5
353111f4 15BuildRequires: desktop-file-utils
cac70163
JB
16BuildRequires: libstdc++-devel >= 6:4.7
17BuildRequires: python3 >= 1:3.2
18BuildRequires: python3-modules >= 1:3.2
19BuildRequires: qt5-build >= 5
20BuildRequires: qt5-qmake >= 5
21Requires(post,postun): desktop-file-utils
353111f4
AM
22Requires: pcsc-driver-ccid
23Requires: python-PySide
cac70163
JB
24Requires: yubikey-manager
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
353111f4
AM
26
27%description
28The Yubico Authenticator is a graphical desktop tool and CLI for
29generating Open AuTHentication (OATH) event-based HOTP and time-based
30TOTP one-time password codes, with the help of a YubiKey that protects
31the shared secrets.
32
cac70163
JB
33%description -l pl.UTF-8
34Yubico Authenticator to narzędzie graficzne oraz linii poleceń do
35generowania kodów jednorazowych haseł OATH (Open AuTHentication)
36opartych na zdarzeniach (HOTP) i czasie (TOTP) z pomocą urządzenia
37YubiKey, 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
49qmake-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
57rm -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 64desktop-file-install --dir=$RPM_BUILD_ROOT%{_desktopdir} resources/yubioath-desktop.desktop
353111f4
AM
65# icons
66install -d $RPM_BUILD_ROOT%{_pixmapsdir}
cac70163 67cp -p resources/icons/yubioath.png $RPM_BUILD_ROOT%{_pixmapsdir}
353111f4
AM
68
69%clean
70rm -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
This page took 0.066944 seconds and 4 git commands to generate.