Name: deepin-image-viewer Version: 1.2.16.5 Release: 1%{?dist} Summary: Deepin Image Viewer License: GPLv3 URL: https://github.com/linuxdeepin/deepin-image-viewer Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz Source1: %{name}-appdata.xml BuildRequires: freeimage-devel BuildRequires: qt5-linguist BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5Concurrent) BuildRequires: pkgconfig(Qt5DBus) BuildRequires: pkgconfig(Qt5Gui) BuildRequires: pkgconfig(Qt5OpenGL) BuildRequires: pkgconfig(Qt5PrintSupport) BuildRequires: pkgconfig(Qt5Sql) BuildRequires: pkgconfig(Qt5Svg) BuildRequires: pkgconfig(Qt5X11Extras) BuildRequires: pkgconfig(dtkwidget) = 2.0 BuildRequires: pkgconfig(libraw) BuildRequires: pkgconfig(libexif) BuildRequires: pkgconfig(libstartup-notification-1.0) BuildRequires: pkgconfig(xcb-util) BuildRequires: desktop-file-utils BuildRequires: libappstream-glib Requires: hicolor-icon-theme %description Deepin Image Viewer %prep %setup -q sed -i 's|lrelease|lrelease-qt5|g' viewer/generate_translations.sh %build %qmake_qt5 PREFIX=%{_prefix} %make_build %install %make_install INSTALL_ROOT=%{buildroot} install -Dm644 %SOURCE1 %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml %check desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop ||: appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/*.appdata.xml %post /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null ||: /usr/bin/update-desktop-database -q ||: %postun if [ $1 -eq 0 ]; then /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null ||: /usr/bin/gtk-update-icon-cache -f -t -q %{_datadir}/icons/hicolor ||: fi /usr/bin/update-desktop-database -q ||: %posttrans /usr/bin/gtk-update-icon-cache -f -t -q %{_datadir}/icons/hicolor ||: %files %doc README.md %license LICENSE %{_bindir}/%{name} %{_qt5_plugindir}/imageformats/*.so %{_datadir}/applications/%{name}.desktop %{_datadir}/dbus-1/services/*.service %{_datadir}/%{name}/ %{_datadir}/dman/%{name}/ %{_datadir}/appdata/%{name}.appdata.xml %{_datadir}/icons/deepin/apps/scalable/%{name}.svg %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg %changelog * Sat Dec 9 2017 mosquito - 1.2.16.5-1 - Update to 1.2.16.5 * Mon Nov 27 2017 mosquito - 1.2.16.4-1 - Update to 1.2.16.4 * Fri Oct 27 2017 mosquito - 1.2.16.1-1 - Update to 1.2.16.1 * Mon Aug 21 2017 mosquito - 1.2.15-1 - Update to 1.2.15 * Fri Jul 14 2017 mosquito - 1.2.14-1.gite77fde5 - Update to 1.2.14 * Fri May 19 2017 mosquito - 1.2.13-1.gita6ac784 - Update to 1.2.13 * Tue Mar 7 2017 mosquito - 1.2.4-1.gitfad9c98 - Update to 1.2.4 * Sat Jan 21 2017 mosquito - 1.2.1-1.git8378500 - Update to 1.2.1 * Tue Jan 17 2017 mosquito - 1.2.0-1.git933325f - Update to 1.2.0 * Fri Jan 06 2017 Jaroslav Stepanek 1.1.3-2 - Fixed build dependecies * Sat Dec 10 2016 Jaroslav Stepanek 1.1.3-1 - Initial package build