Skip to content

Commit

Permalink
Merge pull request #137 from muff1nman/master
Browse files Browse the repository at this point in the history
RPM Spec file updates
  • Loading branch information
annejan committed Jan 4, 2016
2 parents e2f7d28 + 4e2f9d7 commit cf7f640
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions qtpass.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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 <[email protected]> 1.0.5.1-2
- Added desktop/icon resources
- Added required build deps for a clean build

* Tue Dec 01 2015 serstring=Bram Vandoren <[email protected]> - 1.0.5-1
- Initial RPM spec

0 comments on commit cf7f640

Please sign in to comment.