diff --git a/.gitignore b/.gitignore index e69de29..c22bf74 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/v1.1.1.tar.gz diff --git a/qtpass.spec b/qtpass.spec new file mode 100644 index 0000000..8567a18 --- /dev/null +++ b/qtpass.spec @@ -0,0 +1,69 @@ +Name: qtpass +Version: 1.1.1 +Release: 2%{?dist} +Summary: Cross-platform GUI for pass + +License: GPLv3 +URL: https://qtpass.org/ +Source0: https://github.com/IJHack/qtpass/archive/v%{version}.tar.gz + +BuildRequires: qt5-qtbase-devel +BuildRequires: desktop-file-utils +BuildRequires: pkgconfig(Qt5Svg) +BuildRequires: qt5-linguist +# for ownership of hicolor directories +Requires: hicolor-icon-theme +Requires: pass +Recommends: git +Recommends: gpg2 +Recommends: pwgen + +%description +QtPass is a cross-platform GUI for pass, the standard Unix password manager. + +%prep +%setup -q + + +%build +%qmake_qt5 PREFIX=%{_bindir} +%make_build + + +%install +make install INSTALL_ROOT=%{buildroot} +desktop-file-install qtpass.desktop +install -Dpm644 artwork/icon.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/qtpass-icon.svg + +%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 || : + +%files +%doc README.md +%license LICENSE +%{_bindir}/qtpass +%{_datadir}/applications/qtpass.desktop +%{_datadir}/icons/hicolor/scalable/apps/qtpass-icon.svg + + +%changelog +* Sat Apr 23 2016 Dave Olsthoorn - 1.1.1-2 +- require hicolor + +* Thu Apr 14 2016 Dave Olsthoorn - 1.1.1-1 +- new version +- Change license field to GPLv3 instead of GPL-3.0 +- Fix require for pass +- Add icon cache scriplets + +* Fri Apr 1 2016 Dave Olsthoorn +- Initial spec file diff --git a/sources b/sources index e69de29..326b3ba 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +1d487160b79793a51fee7acb436e7790 v1.1.1.tar.gz