From: Jakub Bogusz Date: Mon, 21 May 2018 17:13:34 +0000 (+0200) Subject: - new X-Git-Tag: auto/th/yubikey-manager-qt-0.5.1-1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=0e0c5fcbe6cd8e3c4a97123c77eb20ffacb25ea9;p=packages%2Fyubikey-manager-qt.git - new --- 0e0c5fcbe6cd8e3c4a97123c77eb20ffacb25ea9 diff --git a/yubikey-manager-qt.spec b/yubikey-manager-qt.spec new file mode 100644 index 0000000..4e71560 --- /dev/null +++ b/yubikey-manager-qt.spec @@ -0,0 +1,65 @@ +Summary: Tool for managing your YubiKey configuration +Summary(pl.UTF-8): Narzędzie do zarządzania urządzeniami YubiKey +Name: yubikey-manager-qt +Version: 0.5.1 +Release: 1 +License: BSD +Group: Applications/System +Source0: https://developers.yubico.com/yubikey-manager-qt/Releases/%{name}-%{version}.tar.gz +# Source0-md5: 0e8c7e09496b18dbd70c619a1c5b733b +URL: https://developers.yubico.com/yubikey-manager-qt/ +BuildRequires: Qt5Core-devel >= 5 +BuildRequires: Qt5Gui-devel >= 5 +BuildRequires: Qt5Qml-devel >= 5 +BuildRequires: Qt5Quick-devel >= 5 +BuildRequires: Qt5Widgets-devel >= 5 +BuildRequires: libstdc++-devel >= 6:4.7 +BuildRequires: qt5-build >= 5 +BuildRequires: qt5-linguist >= 5 +BuildRequires: qt5-qmake >= 5 +Requires: python-cryptography +Requires: python-fido2 +# python-ykman +Requires: yubikey-manager >= 0.7.0 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +This application provides an easy way to perform the most common +configuration tasks on a YubiKey. + +%description +Ta aplikacja pozwala w łatwy sposób wykonać większość zadań +konfiguracyjnych urządzeń YubiKey. + +%prep +# broken tarball (tar stored as .tar.gz) +%setup -q -c -T -n %{name} +%{__tar} xf %{SOURCE0} -C .. + +%build +qmake-qt5 yubikey-manager-qt.pro \ + QMAKE_CXX="%{__cxx}" \ + QMAKE_CXXFLAGS_RELEASE="%{rpmcxxflags}" \ + QMAKE_LFLAGS_RELEASE="%{rpmldflags}" + +%{__make} + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} + +%{__make} install \ + INSTALL_ROOT=$RPM_BUILD_ROOT + +cp -p resources/ykman-gui.desktop $RPM_BUILD_ROOT%{_desktopdir} +cp -p resources/icons/ykman.png $RPM_BUILD_ROOT%{_pixmapsdir} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc COPYING NEWS README +%attr(755,root,root) %{_bindir}/ykman-gui +%{_desktopdir}/ykman-gui.desktop +%{_pixmapsdir}/ykman.png