62201d0
Name:           deepin-screenshot
f9ac3e3
Version:        4.0.10.4
d7b6edf
Release:        3%{?dist}
62201d0
Summary:        Deepin Screenshot Tool
62201d0
Summary(zh_CN): 深度截图工具
62201d0
License:        GPLv3
62201d0
Url:            https://github.com/linuxdeepin/deepin-screenshot
62201d0
Source0:        %{url}/archive/%{version}/%{name}-%{version}.tar.gz
62201d0
Source1:        %{name}-appdata.xml
62201d0
62201d0
BuildRequires:  pkgconfig(dtkwidget) = 2.0
f9ac3e3
BuildRequires:  pkgconfig(dtkwm)
62201d0
BuildRequires:  pkgconfig(xtst)
62201d0
BuildRequires:  pkgconfig(xcb-util)
f9ac3e3
BuildRequires:  pkgconfig(Qt5Core)
f9ac3e3
BuildRequires:  pkgconfig(Qt5DBus)
f9ac3e3
BuildRequires:  pkgconfig(Qt5Gui)
f9ac3e3
BuildRequires:  pkgconfig(Qt5Network)
f9ac3e3
BuildRequires:  pkgconfig(Qt5Widgets)
62201d0
BuildRequires:  pkgconfig(Qt5X11Extras)
62201d0
BuildRequires:  desktop-file-utils
62201d0
BuildRequires:  libappstream-glib
62201d0
Requires:       desktop-file-utils
62201d0
Requires:       hicolor-icon-theme
62201d0
Recommends:     deepin-shortcut-viewer
62201d0
62201d0
%description
62201d0
Provide a quite easy-to-use screenshot tool. Features:
62201d0
  * Global hotkey to triggle screenshot tool
62201d0
  * Take screenshot of a selected area
62201d0
  * Easy to add text and line drawings onto the screenshot
62201d0
62201d0
%description -l zh_CN
62201d0
简单易用的截图工具. 特性:
62201d0
  * 支持全局热键激活截图工具
62201d0
  * 支持区域截图
62201d0
  * 支持为截图添加文本和图形
62201d0
62201d0
%prep
62201d0
%setup -q
62201d0
62201d0
%build
62201d0
%qmake_qt5 PREFIX=%{_prefix}
62201d0
%make_build
62201d0
62201d0
%install
62201d0
%make_install INSTALL_ROOT=%{buildroot}
62201d0
install -Dm644 %SOURCE1 %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml
62201d0
62201d0
%check
62201d0
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop ||:
62201d0
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/*.appdata.xml
62201d0
62201d0
%preun
62201d0
if [ $1 -eq 0 ]; then
62201d0
  /usr/sbin/alternatives --remove x-window-screenshot %{_bindir}/%{name}
62201d0
fi
62201d0
62201d0
%post
62201d0
if [ $1 -eq 1 ]; then
62201d0
  /usr/sbin/alternatives --install %{_bindir}/x-window-screenshot \
62201d0
    x-window-screenshot %{_bindir}/%{name} 20
62201d0
fi
62201d0
62201d0
%files
62201d0
%doc README.md
62201d0
%license LICENSE
62201d0
%{_bindir}/%{name}
62201d0
%{_datadir}/dman/%{name}/
62201d0
%{_datadir}/appdata/%{name}.appdata.xml
f9ac3e3
%{_datadir}/dbus-1/services/com.deepin.Screenshot.service
62201d0
%{_datadir}/applications/%{name}.desktop
62201d0
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
62201d0
%{_datadir}/icons/deepin/apps/scalable/%{name}.svg
62201d0
62201d0
%changelog
d7b6edf
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.10.4-3
d7b6edf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
d7b6edf
16de0ad
* Thu Jan 11 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.0.10.4-2
16de0ad
- Remove obsolete scriptlets
16de0ad
f9ac3e3
* Mon Nov 27 2017 mosquito <sensor.wen@gmail.com> - 4.0.10.4-1
f9ac3e3
- Update to 4.0.10.4
f9ac3e3
f9ac3e3
* Fri Oct 27 2017 mosquito <sensor.wen@gmail.com> - 4.0.10-1
f9ac3e3
- Update to 4.0.10
f9ac3e3
62201d0
* Mon Aug 21 2017 mosquito <sensor.wen@gmail.com> - 4.0.9-1
62201d0
- Update to 4.0.9
62201d0
62201d0
* Fri Jul 14 2017 mosquito <sensor.wen@gmail.com> - 4.0.8-1.gitb7483cf
62201d0
- Update to 4.0.8
62201d0
62201d0
* Fri May 19 2017 mosquito <sensor.wen@gmail.com> - 4.0.0-1.gitcb50df2
62201d0
- Update to 4.0.0
62201d0
62201d0
* Tue Jan 17 2017 mosquito <sensor.wen@gmail.com> - 3.1.10-1.gitb0cc9f8
62201d0
- Update to 3.1.10
62201d0
62201d0
* Fri Jul  3 2015 mosquito <sensor.wen@gmail.com> - 3.0.2-1.git753410c
62201d0
- Update version to 3.0.2-1.git753410c
62201d0
62201d0
* Wed Dec 31 2014 mosquito <sensor.wen@gmail.com> - 2.1git20141231-1
62201d0
- Update version to 2.1git20141231
62201d0
62201d0
* Mon Dec 15 2014 mosquito <sensor.wen@gmail.com> - 2.1git20141212-1
62201d0
- Update version to 2.1git20141212
62201d0
62201d0
* Tue Nov  4 2014 mosquito <sensor.wen@gmail.com> - 2.1git20141104-1
62201d0
- Update version to 2.1git20141104
62201d0
62201d0
* Mon Oct  6 2014 mosquito <sensor.wen@gmail.com> - 2.1git20140926-2
62201d0
- Fixed depends
62201d0
62201d0
* Sun Oct  5 2014 mosquito <sensor.wen@gmail.com> - 2.1git20140926-1
62201d0
- Initial build