|
|
62201d0 |
Name: deepin-screenshot
|
|
|
b519d4a |
Version: 5.0.0
|
|
|
6283c60 |
Release: 5%{?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
|
|
|
6283c60 |
# follow changes from Arch
|
|
|
6283c60 |
Patch0: https://raw.githubusercontent.com/archlinux/svntogit-community/e244b11755511b0eb84636302993a84a7bc7273c/trunk/deepin-screenshot-no-notification.patch
|
|
|
62201d0 |
|
|
|
4ddef6e |
BuildRequires: cmake
|
|
|
c973769 |
BuildRequires: pkgconfig(dtkwidget) >= 2.0.6
|
|
|
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
|
|
|
6283c60 |
# fix for Qt 5.15
|
|
|
6283c60 |
sed -i '1i #include <QPainterPath>' src/widgets/shapeswidget.cpp
|
|
|
5cf33ca |
# Disable using deepin-turbo, which is not yet available in Fedora
|
|
|
5cf33ca |
sed -i 's/deepin-turbo-invoker.*deepin/deepin/' \
|
|
|
5cf33ca |
src/dbusservice/com.deepin.Screenshot.service deepin-screenshot.desktop
|
|
|
62201d0 |
|
|
|
62201d0 |
%build
|
|
|
31e5217 |
%cmake -DCMAKE_INSTALL_PREFIX=%{_prefix}
|
|
|
31e5217 |
%cmake_build
|
|
|
62201d0 |
|
|
|
62201d0 |
%install
|
|
|
31e5217 |
%cmake_install
|
|
|
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}/appdata/%{name}.appdata.xml
|
|
|
f9ac3e3 |
%{_datadir}/dbus-1/services/com.deepin.Screenshot.service
|
|
|
62201d0 |
%{_datadir}/applications/%{name}.desktop
|
|
|
f5735e9 |
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
|
|
|
62201d0 |
|
|
|
62201d0 |
%changelog
|
|
|
6283c60 |
* Fri Nov 13 2020 Robin Lee <cheeselee@fedoraproject.org> - 5.0.0-5
|
|
|
6283c60 |
- Rebuild for DTK5
|
|
|
6283c60 |
|
|
|
31e5217 |
* Fri Aug 7 2020 Robin Lee <cheeselee@fedoraproject.org> - 5.0.0-4
|
|
|
31e5217 |
- Improve compatibility with new CMake macro
|
|
|
31e5217 |
|
|
|
d2a6b7f |
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.0-4
|
|
|
d2a6b7f |
- Second attempt - Rebuilt for
|
|
|
d2a6b7f |
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
d2a6b7f |
|
|
|
02e9016 |
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.0-3
|
|
|
02e9016 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
02e9016 |
|
|
|
7b9ffa7 |
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.0-2
|
|
|
7b9ffa7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
7b9ffa7 |
|
|
|
b519d4a |
* Mon Aug 05 2019 Robin Lee <cheeselee@fedoraproject.org> - 5.0.0-1
|
|
|
b519d4a |
- Release 5.0.0
|
|
|
b519d4a |
|
|
|
f6cc445 |
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.8-3
|
|
|
f6cc445 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
f6cc445 |
|
|
|
5cf33ca |
* Thu Feb 28 2019 Robin Lee <cheeselee@fedoraproject.org> - 4.1.8-2
|
|
|
5cf33ca |
- Disable using deepin-turbo, which is not yet available in Fedora
|
|
|
5cf33ca |
|
|
|
e77c296 |
* Tue Feb 26 2019 mosquito <sensor.wen@gmail.com> - 4.1.8-1
|
|
|
e77c296 |
- Update to 4.1.8
|
|
|
e77c296 |
|
|
|
32cb4b3 |
* Thu Jan 31 2019 mosquito <sensor.wen@gmail.com> - 4.1.7-1
|
|
|
0721606 |
- Update to 4.1.7
|
|
|
0721606 |
|
|
|
47f9978 |
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.5-3
|
|
|
47f9978 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
47f9978 |
|
|
|
0e772ef |
* Wed Jan 23 2019 Björn Esser <besser82@fedoraproject.org> - 4.1.5-2
|
|
|
0e772ef |
- Append curdir to CMake invokation. (#1668512)
|
|
|
0e772ef |
|
|
|
e177648 |
* Sun Dec 23 2018 mosquito <sensor.wen@gmail.com> - 4.1.5-1
|
|
|
e177648 |
- Update to 4.1.5
|
|
|
e177648 |
|
|
|
f5735e9 |
* Thu Nov 29 2018 mosquito <sensor.wen@gmail.com> - 4.1.4-1
|
|
|
f5735e9 |
- Update to 4.1.4
|
|
|
f5735e9 |
|
|
|
4ddef6e |
* Wed Nov 21 2018 mosquito <sensor.wen@gmail.com> - 4.1.2-1
|
|
|
4ddef6e |
- Update to 4.1.2
|
|
|
4ddef6e |
|
|
|
327ae43 |
* Fri Jul 20 2018 mosquito <sensor.wen@gmail.com> - 4.0.16-1
|
|
|
327ae43 |
- Update to 4.0.16
|
|
|
327ae43 |
|
|
|
0e55097 |
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.10.4-4
|
|
|
0e55097 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
0e55097 |
|
|
|
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
|