d987494
Name:           deepin-image-viewer
2390d7a
Version:        1.3.8
2390d7a
Release:        1%{?dist}
d987494
Summary:        Deepin Image Viewer
d987494
License:        GPLv3
d987494
URL:            https://github.com/linuxdeepin/deepin-image-viewer
d987494
Source0:        %{url}/archive/%{version}/%{name}-%{version}.tar.gz
d987494
Source1:        %{name}-appdata.xml
d987494
2390d7a
BuildRequires:  gcc-c++
d987494
BuildRequires:  freeimage-devel
d987494
BuildRequires:  qt5-linguist
82b02ec
BuildRequires:  pkgconfig(Qt5Core)
82b02ec
BuildRequires:  pkgconfig(Qt5Concurrent)
82b02ec
BuildRequires:  pkgconfig(Qt5DBus)
82b02ec
BuildRequires:  pkgconfig(Qt5Gui)
82b02ec
BuildRequires:  pkgconfig(Qt5OpenGL)
82b02ec
BuildRequires:  pkgconfig(Qt5PrintSupport)
82b02ec
BuildRequires:  pkgconfig(Qt5Sql)
d987494
BuildRequires:  pkgconfig(Qt5Svg)
82b02ec
BuildRequires:  pkgconfig(Qt5X11Extras)
f1afc37
BuildRequires:  pkgconfig(dtkwidget) >= 2.0.6
aec7f84
BuildRequires:  pkgconfig(gio-unix-2.0)
d987494
BuildRequires:  pkgconfig(libraw)
d987494
BuildRequires:  pkgconfig(libexif)
d987494
BuildRequires:  pkgconfig(libstartup-notification-1.0)
d987494
BuildRequires:  pkgconfig(xcb-util)
d987494
BuildRequires:  desktop-file-utils
d987494
BuildRequires:  libappstream-glib
d987494
Requires:       hicolor-icon-theme
d987494
d987494
%description
f1afc37
%{summary}.
d987494
d987494
%prep
d987494
%setup -q
d987494
sed -i 's|lrelease|lrelease-qt5|g' viewer/generate_translations.sh
d987494
d987494
%build
d987494
%qmake_qt5 PREFIX=%{_prefix}
d987494
%make_build
d987494
d987494
%install
d987494
%make_install INSTALL_ROOT=%{buildroot}
2390d7a
install -Dm644 %SOURCE1 %{buildroot}%{_metainfodir}/%{name}.appdata.xml
d987494
d987494
%check
d987494
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop ||:
2390d7a
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.appdata.xml
d987494
d987494
%files
d987494
%doc README.md
d987494
%license LICENSE
d987494
%{_bindir}/%{name}
d987494
%{_qt5_plugindir}/imageformats/*.so
d987494
%{_datadir}/dbus-1/services/*.service
d987494
%{_datadir}/%{name}/
d987494
%{_datadir}/dman/%{name}/
2390d7a
%{_metainfodir}/%{name}.appdata.xml
2390d7a
%{_datadir}/applications/%{name}.desktop
d987494
%{_datadir}/icons/deepin/apps/scalable/%{name}.svg
d987494
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
d987494
d987494
%changelog
2390d7a
* Thu Jan 31 2019 mosquito <sensor.wen@gmail.com> - 1.3.8-1
2390d7a
- Update to 1.3.8
2390d7a
4edb02b
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.6-2
4edb02b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
4edb02b
d74cebe
* Wed Dec 12 2018 mosquito <sensor.wen@gmail.com> - 1.3.6-1
d74cebe
- Update to 1.3.6
d74cebe
e4f248e
* Thu Nov 29 2018 mosquito <sensor.wen@gmail.com> - 1.3.2-1
e4f248e
- Update to 1.3.2
e4f248e
86c876d
* Wed Nov 21 2018 mosquito <sensor.wen@gmail.com> - 1.3.1-1
86c876d
- Update to 1.3.1
86c876d
f1afc37
* Fri Jul 27 2018 mosquito <sensor.wen@gmail.com> - 1.2.23-1
f1afc37
- Update to 1.2.23
f1afc37
cc0debf
* Thu Jul 19 2018 Adam Williamson <awilliam@redhat.com> - 1.2.16.8-3
cc0debf
- Rebuild for new libraw
cc0debf
19e15d1
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.16.8-2
19e15d1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
19e15d1
c0750df
* Sat Feb 10 2018 mosquito <sensor.wen@gmail.com> - 1.2.16.8-1
c0750df
- Update to 1.2.16.8
c0750df
d5d19fa
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.16.7-3
d5d19fa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
d5d19fa
61c05e3
* Thu Jan 11 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.2.16.7-2
61c05e3
- Remove obsolete scriptlets
61c05e3
aec7f84
* Thu Dec 28 2017 mosquito <sensor.wen@gmail.com> - 1.2.16.7-1
aec7f84
- Update to 1.2.16.7
aec7f84
82b02ec
* Sat Dec  9 2017 mosquito <sensor.wen@gmail.com> - 1.2.16.5-1
82b02ec
- Update to 1.2.16.5
82b02ec
82b02ec
* Mon Nov 27 2017 mosquito <sensor.wen@gmail.com> - 1.2.16.4-1
82b02ec
- Update to 1.2.16.4
82b02ec
82b02ec
* Fri Oct 27 2017 mosquito <sensor.wen@gmail.com> - 1.2.16.1-1
82b02ec
- Update to 1.2.16.1
82b02ec
d987494
* Mon Aug 21 2017 mosquito <sensor.wen@gmail.com> - 1.2.15-1
d987494
- Update to 1.2.15
d987494
d987494
* Fri Jul 14 2017 mosquito <sensor.wen@gmail.com> - 1.2.14-1.gite77fde5
d987494
- Update to 1.2.14
d987494
d987494
* Fri May 19 2017 mosquito <sensor.wen@gmail.com> - 1.2.13-1.gita6ac784
d987494
- Update to 1.2.13
d987494
d987494
* Tue Mar  7 2017 mosquito <sensor.wen@gmail.com> - 1.2.4-1.gitfad9c98
d987494
- Update to 1.2.4
d987494
d987494
* Sat Jan 21 2017 mosquito <sensor.wen@gmail.com> - 1.2.1-1.git8378500
d987494
- Update to 1.2.1
d987494
d987494
* Tue Jan 17 2017 mosquito <sensor.wen@gmail.com> - 1.2.0-1.git933325f
d987494
- Update to 1.2.0
d987494
d987494
* Fri Jan 06 2017 Jaroslav <cz.guardian@gmail.com> Stepanek 1.1.3-2
d987494
- Fixed build dependecies
d987494
d987494
* Sat Dec 10 2016 Jaroslav <cz.guardian@gmail.com> Stepanek 1.1.3-1
d987494
- Initial package build