%global commit 4df579e4bce482a3587a06d87ed890a39a074597 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global owner Yubico %global svn git Name: yubioath-desktop Version: 5.0.2 Release: 1.%{svn}%{shortcommit}%{?dist} Summary: Yubikey tool for generating OATH event-based HOTP and time-based TOTP codes License: BSD URL: https://github.com/%{owner}/yubioath-desktop Source0: https://github.com/%{owner}/%{name}/archive/%{commit}.tar.gz#/%{name}-%{shortcommit}.tar.gz Source1: %{name}.rpmlintrc BuildRequires: qt5-qtbase-devel qt5-qtdeclarative-devel qt5-qtsvg-devel gcc-c++ BuildRequires: python3 desktop-file-utils qt5-qtquickcontrols2-devel Requires: pyotherside qt5-qtdeclarative qt5-qtquickcontrols pcsc-lite-ccid yubikey-manager ## uses Qt5 private api's these help track that BuildRequires: qt5-qtbase-private-devel %{?_qt5:Requires: %{_qt5}%{?_isa} = %{_qt5_version}} %description The Yubico Authenticator is a graphical desktop tool and CLI for generating Open AuTHentication (OATH) event-based HOTP and time-based TOTP one-time password codes, with the help of a YubiKey that protects the shared secrets. %prep %autosetup -n %{name}-%{commit} sed -i -e "s/python /python3 /" %{name}.pro sed -i -e "1s|^#.*$|#!%{__python3}|g" build_qrc.py py/yubikey.py %build %qmake_qt5 %make_build %install %make_install INSTALL_ROOT=%{buildroot} # desktop file desktop-file-install --dir=%{buildroot}%{_datadir}/applications resources/yubioath-desktop.desktop # icons install -Dpm0644 -t %{buildroot}%{_datadir}/icons/hicolor/128x128/apps resources/icons/*.png %files %license COPYING %doc NEWS README %{_bindir}/* %{_datadir}/icons/hicolor/128x128/apps/* %{_datadir}/applications/* %changelog * Fri Jan 31 2020 Gerald Cox - 5.0.2-1.git4df579e - Upstream release rhbz#1796501 * Fri Jan 31 2020 Fedora Release Engineering - 5.0.1-4.gitc58db92 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Mon Dec 09 2019 Jan Grulich - 5.0.1-3.gitc58db92 - rebuild (qt5) * Mon Oct 21 2019 Gerald Cox - 5.0.1-2.gitc58db92 - Add rpmlintrc - rhbz#1762309 * Wed Oct 16 2019 Gerald Cox - 5.0.1-1.gitc58db92 - Upstream release - rhbz#1762309 * Wed Sep 25 2019 Jan Grulich - 5.0.0-2.git121efe3 - rebuild (qt5) * Mon Sep 23 2019 Gerald Cox - 5.0.0-1.git121efe3b - Upstream release - rhbz#1754707 * Sat Jul 27 2019 Fedora Release Engineering - 4.3.5-8.gitd1187b6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Mon Jun 17 2019 Jan Grulich - 4.3.5-7.gitd1187b6 - rebuild (qt5) * Wed Jun 05 2019 Jan Grulich - 4.3.5-6.gitd1187b6 - rebuild (qt5) * Mon Apr 15 2019 Rex Dieter - 4.3.5-5.gitd1187b6 - track Qt private api usage (#1697330) * Sun Feb 03 2019 Fedora Release Engineering - 4.3.5-4.gitd1187b6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Jan 03 2019 Gerald Cox - 4.3.5-3.gitd1187b6 - Upstream release - rhbz#1655888 * Thu Jan 03 2019 Igor Gnatenko - 4.3.5-2.git0a8c363 - Trivial fixes * Mon Dec 31 2018 Gerald Cox - 4.3.5-1.git0a8c363 - Upstream release rhbz#1655888 * Tue Aug 14 2018 Seth Jennings - 4.3.3-4 - add python-unversioned-command to BuildRequires * Sat Jul 14 2018 Fedora Release Engineering - 4.3.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro HronĨok - 4.3.3-2 - Rebuilt for Python 3.7 * Wed May 2 2018 Seth Jennings - 4.3.3-1 - Upstream release * Sun Mar 18 2018 Iryna Shcherbina - 4.2.0-4 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Fri Feb 09 2018 Fedora Release Engineering - 4.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jan 18 2018 Igor Gnatenko - 4.2.0-2 - Remove obsolete scriptlets * Fri Dec 15 2017 Seth Jennings - 4.2.0-1 - Upstream release. * Mon Aug 21 2017 Seth Jennings - 4.1.3-1 - Upstream release. * Thu Jul 27 2017 Fedora Release Engineering - 3.0.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 3.0.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Tue Sep 27 2016 Seth Jennings - 3.0.1-2 - Fix desktop application executable name * Mon Jul 25 2016 Seth Jennings - 3.0.1-1 - Upstream release. * Tue Jul 19 2016 Fedora Release Engineering - 2.3.0-4 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Fri Feb 05 2016 Fedora Release Engineering - 2.3.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jan 28 2016 Seth Jennings - 2.3.0-2 - Add pyusb as a required package to avoid python ImportError (#1302895). * Fri Nov 20 2015 Seth Jennings - 2.3.0-1 - Upstream release. * Thu Aug 27 2015 Seth Jennings - 2.2.1-1 - Upstream release. * Thu Aug 06 2015 Seth Jennings - 2.1.1-3 - Use __python2 macro. * Thu Aug 06 2015 Seth Jennings - 2.1.1-2 - Add pcsc-lite-ccid requirement * Thu Aug 06 2015 Seth Jennings - 2.1.1-1 - Initial package release.