From d98749429b7d9c79c700a7a54b4bc09ee56c2cec Mon Sep 17 00:00:00 2001 From: mosquito Date: Aug 29 2017 16:55:43 +0000 Subject: Initial import (#1485723) Signed-off-by: mosquito --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7c8a347 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/deepin-image-viewer-1.2.15.tar.gz diff --git a/deepin-image-viewer-appdata.xml b/deepin-image-viewer-appdata.xml new file mode 100644 index 0000000..05763e6 --- /dev/null +++ b/deepin-image-viewer-appdata.xml @@ -0,0 +1,32 @@ + + + + deepin-image-viewer.desktop + CC0-1.0 + Deepin Image Viewer + 深度看图 + 深度看图 + Deepin Image Viewer is Deepin Desktop Environment image viewer + 深度看图是一个免费开源的跨平台看图软件 + 深度看图是一个免费开源的跨平台看图软件 + +

+ Deepin Image Viewer is a free and open source cross-platform image viewer. +

+

+ 深度看图是一个免费开源的跨平台看图软件。 +

+
+ https://github.com/linuxdeepin/deepin-image-viewer/ + https://github.com/linuxdeepin/deepin-image-viewer/issues/ + + + + GPL-3.0 + Linux Deepin + + https://www.deepin.org/wp-content/uploads/2016/12/deepin-imageviewer-1.png + https://www.deepin.org/wp-content/uploads/2016/12/deepin-imageviewer-2.png + https://www.deepin.org/wp-content/uploads/2016/12/deepin-imageviewer-3.png + +
diff --git a/deepin-image-viewer.spec b/deepin-image-viewer.spec new file mode 100644 index 0000000..082a276 --- /dev/null +++ b/deepin-image-viewer.spec @@ -0,0 +1,93 @@ +Name: deepin-image-viewer +Version: 1.2.15 +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(Qt5) +BuildRequires: pkgconfig(Qt5X11Extras) +BuildRequires: pkgconfig(Qt5Svg) +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 +* 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 diff --git a/sources b/sources new file mode 100644 index 0000000..e47ea94 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (deepin-image-viewer-1.2.15.tar.gz) = 317876093e327ba10d1cd22aa1f949468e48c49cefeb3092b6e939952575fa2215caa924c0007730e7ddd7b8327275dae5b85fe4bbe62532cf9025cb6eeeec85