diff options
-rw-r--r-- | qtpass.spec | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/qtpass.spec b/qtpass.spec index ea69c108..5092e731 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 <lostonamountain@gmail.com> 1.0.5.1-2 +- Added desktop/icon resources +- Added required build deps for a clean build + * Tue Dec 01 2015 serstring=Bram Vandoren <bram.vandoren@ster.kuleuven.be> - 1.0.5-1 - Initial RPM spec |