ce0f22d
Name:           phototonic
ce0f22d
Version:        1.7.20
ce0f22d
Release:        2%{?dist}
ce0f22d
Summary:        Image viewer and organizer
ce0f22d
ce0f22d
License:        GPLv3
ce0f22d
URL:            http://oferkv.github.io/phototonic/
ce0f22d
Source0:        https://github.com/oferkv/phototonic/archive/v%{version}.tar.gz 
ce0f22d
ce0f22d
BuildRequires:  gcc-c++
ce0f22d
BuildRequires:  qt5-qtbase-devel 
ce0f22d
BuildRequires:  qt5-linguist
ce0f22d
BuildRequires:  desktop-file-utils
ce0f22d
BuildRequires:  exiv2-devel
ce0f22d
ce0f22d
%description
ce0f22d
phototonic is a fast and functional image viewer and organizer, inspired by the
ce0f22d
traditional image viewer design (i.e. thumbnails and viewer layouts).
ce0f22d
ce0f22d
ce0f22d
%prep
ce0f22d
%setup -q
ce0f22d
ce0f22d
ce0f22d
%build
ce0f22d
%{qmake_qt5}
ce0f22d
make %{?_smp_mflags}
ce0f22d
ce0f22d
ce0f22d
%install
ce0f22d
make install INSTALL_ROOT=%{buildroot}
ce0f22d
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
ce0f22d
ce0f22d
%files
ce0f22d
%license COPYING
ce0f22d
%doc ChangeLog
ce0f22d
%{_bindir}/%{name}
ce0f22d
%{_datadir}/applications/%{name}.desktop
ce0f22d
%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
ce0f22d
%{_datadir}/icons/hicolor/16x16/apps/%{name}.png
ce0f22d
%{_datadir}/pixmaps/%{name}.png
ce0f22d
%doc
ce0f22d
ce0f22d
%post
ce0f22d
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
ce0f22d
/usr/bin/update-desktop-database &> /dev/null || :
ce0f22d
ce0f22d
%postun
ce0f22d
if [ $1 -eq 0 ] ; then
ce0f22d
    /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
ce0f22d
    /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
ce0f22d
fi
ce0f22d
/usr/bin/update-desktop-database &> /dev/null || :
ce0f22d
ce0f22d
ce0f22d
%posttrans
ce0f22d
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
ce0f22d
ce0f22d
%changelog
ce0f22d
* Tue May 10 2016 Michael Cullen <michael@cullen-online.com> - 1.7.20-2
ce0f22d
- Fixed review comment. Added update-desktop-database calls.
ce0f22d
* Thu May  5 2016 Michael Cullen <michael@cullen-online.com> - 1.7.20-1
ce0f22d
- Pulled in properly tagged release from upstream
ce0f22d
* Mon May  2 2016 Michael Cullen <michael@cullen-online.com> - 1.7.1-1
ce0f22d
- Initial Package