From 4e2f9d74e2dd6b589cd62e61c194d7e3b1333d16 Mon Sep 17 00:00:00 2001 From: Andrew DeMaria Date: Sun, 3 Jan 2016 23:23:36 -0500 Subject: [PATCH] RPM Spec file updates - Added desktop/icon resources - Added required build deps for a clean build --- qtpass.spec | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/qtpass.spec b/qtpass.spec index ea69c1088..5092e7317 100644 --- a/qtpass.spec +++ b/qtpass.spec @@ -8,13 +8,16 @@ Name: qtpass Version: 1.0.5.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: QtPass is a multi-platform GUI for pass, the standard unix password manager. License: GPLv3 URL: https://qtpass.org/ Source0: %{name}-%{version}.tar.gz -BuildRequires: qt5-qtbase-devel +BuildRequires: qt5-qtbase-devel +BuildRequires: qt5-linguist +BuildRequires: desktop-file-utils +BuildRequires: xdg-utils Requires: pass Requires: qt5-qtbase @@ -36,12 +39,32 @@ make %{?_smp_mflags} %install %make_install +install -Dm 0644 artwork/icon.png %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/qtpass-icon.png +desktop-file-install --dir=%{buildroot}%{_datadir}/applications qtpass.desktop %files %doc %{_bindir}/* +%{_datadir}/applications/qtpass.desktop +%{_datadir}/icons/hicolor/64x64/apps/qtpass-icon.png + +%post +/bin/touch --no-create %{_datadir}/icons/hicolor &>/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 + +%posttrans +/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Wed Dec 30 2015 Andrew DeMaria 1.0.5.1-2 +- Added desktop/icon resources +- Added required build deps for a clean build + * Tue Dec 01 2015 serstring=Bram Vandoren - 1.0.5-1 - Initial RPM spec