diff --git a/.gitignore b/.gitignore index e69de29..57a2a65 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/yubioath-desktop-2.1.1.tar.gz diff --git a/gpgkey-6FBA95E8.gpg b/gpgkey-6FBA95E8.gpg new file mode 100644 index 0000000..ceb7403 Binary files /dev/null and b/gpgkey-6FBA95E8.gpg differ diff --git a/sources b/sources index e69de29..9a5abfb 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +49e0ba9c7d7510153d3b5b06cf39d1c5 yubioath-desktop-2.1.1.tar.gz diff --git a/yubioath-desktop-2.1.1.tar.gz.sig b/yubioath-desktop-2.1.1.tar.gz.sig new file mode 100644 index 0000000..9b00018 Binary files /dev/null and b/yubioath-desktop-2.1.1.tar.gz.sig differ diff --git a/yubioath-desktop.spec b/yubioath-desktop.spec new file mode 100644 index 0000000..ddcc196 --- /dev/null +++ b/yubioath-desktop.spec @@ -0,0 +1,83 @@ +%global debug_package %{nil} + +Name: yubioath-desktop +Version: 2.1.1 +Release: 3%{?dist} +Summary: Yubikey tool for generating OATH event-based HOTP and time-based TOTP codes +BuildArch: noarch + +License: GPLv3+ +URL: https://developers.yubico.com/%{name}/ +Source0: https://developers.yubico.com/%{name}/Releases/%{name}-%{version}.tar.gz +Source1: https://developers.yubico.com/%{name}/Releases/%{name}-%{version}.tar.gz.sig +Source2: gpgkey-6FBA95E8.gpg + +BuildRequires: gnupg2 python2-devel desktop-file-utils +Requires: python-crypto pyscard python-pyside ykpers pcsc-lite-ccid +Requires(post): desktop-file-utils +Requires(postun): desktop-file-utils + +%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 +gpgv2 --quiet --keyring %{SOURCE2} %{SOURCE1} %{SOURCE0} +%setup -q + +%build +%{__python2} setup.py build + +%install +%{__python2} setup.py install --root=%{buildroot} + +# man pages +mkdir -p %{buildroot}%{_mandir}/man1 +cp %{_builddir}/%{buildsubdir}/man/*.1 %{buildroot}%{_mandir}/man1 +gzip %{buildroot}%{_mandir}/man1/yubioath.1 +gzip %{buildroot}%{_mandir}/man1/yubioath-cli.1 + +# desktop file +desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{_builddir}/%{buildsubdir}/resources/yubioath.desktop + +# icons +mkdir -p %{buildroot}%{_datadir}/pixmaps +cp %{_builddir}/%{buildsubdir}/resources/yubioath.xpm %{buildroot}%{_datadir}/pixmaps +mkdir -p %{buildroot}%{_datadir}/icons/hicolor/128x128/apps +cp %{_builddir}/%{buildsubdir}/resources/yubioath-desktop.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps + +%files +%license COPYING +%doc ChangeLog NEWS README +%{python_sitelib}/yubioath/ +%{python_sitelib}/yubioath_desktop* +%{_bindir}/* +%{_mandir}/man1/* +%{_datadir}/icons/hicolor/128x128/apps/* +%{_datadir}/pixmaps/* +%{_datadir}/applications/* + +%post +/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : +/usr/bin/update-desktop-database &> /dev/null || : + +%postun +if [ $1 -eq 0 ] ; then + /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null + /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : +fi +/usr/bin/update-desktop-database &> /dev/null || : + +%posttrans +/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : + +%changelog +* 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.