From 5a9e5cbfff75629116e7291e8114d64a07d70ec7 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Jun 25 2018 16:28:22 +0000 Subject: Install desktop file --- diff --git a/yubikey-piv-manager.spec b/yubikey-piv-manager.spec index a28a2e0..bdba331 100644 --- a/yubikey-piv-manager.spec +++ b/yubikey-piv-manager.spec @@ -1,6 +1,6 @@ Name: yubikey-piv-manager Version: 1.4.2 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Tool for configuring your PIV-enabled YubiKey # BSD (2 clause) @@ -19,6 +19,7 @@ URL: https://developers.yubico.com/%{name}/ Source0: https://developers.yubico.com/%{name}/Releases/%{name}-%{version}.tar.gz BuildArch: noarch +BuildRequires: desktop-file-utils Requires: python%{python3_pkgversion}-%{name} %description @@ -48,6 +49,10 @@ Python library for configuring a PIV-enabled YubiKey. %install %py3_install +mkdir -p %{buildroot}%{_datadir}/applications +desktop-file-install --dir=%{buildroot}%{_datadir}/applications resources/pivman.desktop +mkdir -p %{buildroot}%{_datadir}/icons +install -p -m 0644 resources/pivman.xpm %{buildroot}%{_datadir}/icons/pivman.xpm mkdir -p %{buildroot}%{_mandir}/man1 install -p -m 0644 man/pivman.1 %{buildroot}%{_mandir}/man1/pivman.1 @@ -58,6 +63,8 @@ install -p -m 0644 man/pivman.1 %{buildroot}%{_mandir}/man1/pivman.1 %license COPYING %doc NEWS %{_bindir}/pivman +%{_datadir}/applications/pivman.desktop +%{_datadir}/icons/pivman.xpm %{_mandir}/man1/pivman.1* %files -n python%{python3_pkgversion}-%{name} @@ -66,6 +73,9 @@ install -p -m 0644 man/pivman.1 %{buildroot}%{_mandir}/man1/pivman.1 %{python3_sitelib}/* %changelog +* Mon Jun 25 2018 Orion Poplawski - 1.4.2-5 +- Install desktop file + * Tue Jun 19 2018 Miro HronĨok - 1.4.2-4 - Rebuilt for Python 3.7