66fddd6
Name:           deepin-draw
2baaec6
Version:        5.8.0.20
bdd0616
Release:        2%{?dist}
66fddd6
Summary:        A lightweight drawing tool for Linux Deepin
66fddd6
License:        GPLv3
66fddd6
URL:            https://github.com/linuxdeepin/deepin-draw
66fddd6
Source0:        %{url}/archive/%{version}/%{name}-%{version}.tar.gz
66fddd6
2baaec6
# PATCHES FROM SOURCE GIT:
2baaec6
2baaec6
# dwidget include
2baaec6
# Author: Robin Lee <cheeselee@fedoraproject.org>
2baaec6
Patch0001: 0001-dwidget-include.patch
2baaec6
2baaec6
66fddd6
BuildRequires:  gcc-c++
66fddd6
BuildRequires:  freeimage-devel
66fddd6
BuildRequires:  pkgconfig(dtkwidget) >= 2.0.6
66fddd6
BuildRequires:  pkgconfig(dtkwm)
66fddd6
BuildRequires:  pkgconfig(libexif)
66fddd6
BuildRequires:  pkgconfig(xcb-aux)
66fddd6
BuildRequires:  pkgconfig(Qt5)
66fddd6
BuildRequires:  pkgconfig(Qt5DBus)
66fddd6
BuildRequires:  pkgconfig(Qt5Gui)
66fddd6
BuildRequires:  pkgconfig(Qt5Svg)
2baaec6
BuildRequires:  pkgconfig(Qt5Multimedia)
2baaec6
BuildRequires:  pkgconfig(Qt5X11Extras)
66fddd6
BuildRequires:  qt5-linguist
2baaec6
BuildRequires:  desktop-file-utils
297f36f
BuildRequires: make
66fddd6
Requires:       deepin-notifications
66fddd6
Requires:       deepin-qt5integration
66fddd6
66fddd6
%description
66fddd6
A lightweight drawing tool for Linux Deepin.
66fddd6
66fddd6
%prep
2baaec6
%autosetup -p1
2baaec6
sed -i '/include <DGraphicsView>/i #include <QFileDevice>' frame/cgraphicsview.h
2baaec6
sed -i '/include <QPainter>/a #include <QMouseEvent>' widgets/ciconbutton.cpp
66fddd6
66fddd6
%build
2baaec6
export PATH=%{_qt5_bindir}:$PATH
66fddd6
%qmake_qt5 PREFIX=%{_prefix}
66fddd6
%make_build
66fddd6
66fddd6
%install
66fddd6
%make_install INSTALL_ROOT=%{buildroot}
66fddd6
66fddd6
%check
2baaec6
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
66fddd6
66fddd6
%files
66fddd6
%doc README.md
66fddd6
%license LICENSE
66fddd6
%{_bindir}/%{name}
66fddd6
%{_datadir}/%{name}/
66fddd6
%{_datadir}/applications/%{name}.desktop
66fddd6
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
2baaec6
%{_datadir}/mime/packages/%{name}.xml
66fddd6
66fddd6
%changelog
bdd0616
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.8.0.20-2
bdd0616
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
bdd0616
2baaec6
* Thu Nov 12 2020 Robin Lee <cheeselee@fedoraproject.org> - 5.8.0.20-1
2baaec6
- new upstream release: 5.8.0.20
2baaec6
1ade20c
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-5
1ade20c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
1ade20c
76425ca
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-4
76425ca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
76425ca
6cdb06c
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-3
6cdb06c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
6cdb06c
8d81689
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-2
8d81689
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
8d81689
66fddd6
* Fri Jul 20 2018 mosquito <sensor.wen@gmail.com> - 1.0.0-1
66fddd6
- Initial package build